aboutsummaryrefslogtreecommitdiff
path: root/src/cli/run_command.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-28Upgrade to latest Node.js version (#6158)Gravatar Jarred Sumner 1-1/+1
* Upgrade to latest reported Node.js version * Upgrade --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18`bun run` fix missing script error on empty file (#5025)Gravatar Julian 1-1/+0
* Fix empty file not found bug * Add tests * fix test --------- Co-authored-by: Jeremy Funk <jeremy@kombo.dev> Co-authored-by: dave caruso <me@paperdave.net>
2023-09-15Make `bun run --silent` omit `"error: "..." exited with code 1` (#5459)Gravatar Jarred Sumner 1-12/+23
* Make --silent behave as expected * Make the "tsconfig.json extends" error a debug level --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-12Fix some bugs blocking Turborepo from using `bun run` (#5071)Gravatar Jarred Sumner 1-2/+6
* Clean up some error handling when loading `tsconfig.json` * [bun run] don't parse tsconfig.json for package.json scripts * Make this error message better * Bump * Don't print build errors twice * Handle quotes in error messages a little better * Add a couple tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-11fix loading env from `.env.production` and friends (#4630)Gravatar Dylan Conway 1-2/+2
* reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables
2023-09-04no need to chmod (#4490)Gravatar Dylan Conway 1-2/+0
2023-08-28just kernel32 things (#4354)Gravatar Jarred Sumner 1-11/+20
* just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-11Deprecate loading `node_modules.bun` (#4131)Gravatar Jarred Sumner 1-13/+4
* Deprecate loading `node_modules.bun` * realpath * regenerate schema * More * more * Update cli.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-10don't check for trailing slash, var streamGravatar Dylan Conway 1-2/+1
2023-08-10run files without extensions (#4113)Gravatar Dylan Conway 1-0/+17
* run script without extension * process stdio write fix
2023-08-06Running missing scripts exits with non-0 (#4026)Gravatar Yash Sharma 1-1/+1
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local>
2023-07-30Support `bun .` to run the entry point (#3891)Gravatar Jarred Sumner 1-2/+21
* Support `bun .` * Fix tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 1-4/+4
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-13Impl. fix (#3630)Gravatar Tiramify (A.K. Daniel) 1-1/+1
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-1/+1
* progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-13workaround quote escape issues for `bun run` (#3290)Gravatar Alex Lam S.L 1-0/+18
fixes #53
2023-05-27Implement process.env.npm_lifecycle_event (#3097)Gravatar Tiramify (A.K. Daniel) 1-0/+1
* Update run_command.zig * Update env.test.ts * Add files via upload * Update run-process-env.test.ts * Update env.test.ts * Update harness.ts
2023-05-24Load `.env.test`, set NODE_ENV=test in `bun test`, load ↵Gravatar Jarred Sumner 1-2/+2
`.env.{test,production,development}.local` (#3037) * Support `.env.test` & `.env.{test,production,development}.local` * Fix bug preventing inlining of process.env.NODE_ENV by default * Update env_loader.zig * add env tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: dave caruso <me@paperdave.net>
2023-05-08Fix bug in Bun.build() where it wouldn't pick up changes to directories on ↵Gravatar Jarred Sumner 1-3/+4
rebuilds (#2824) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-24In `bun run`, rewrite usages of `npx` to `bun x` instead of `bunx` to ↵Gravatar Jarred Sumner 1-1/+1
workaround missing symlink
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-2/+2
2023-04-01Update NodeJS LTS version in run_command.zig (#2533)Gravatar Jake Boone 1-1/+1
2023-02-28Implement `preload` support (like `node -r ` except in a config file) (#2231)Gravatar Jarred Sumner 1-4/+25
* Update Makefile * Introduce `preload` * Add a test * Support entry points --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-6/+6
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-1/+1
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-29Add helperGravatar Jarred Sumner 1-2/+2
2023-01-28Support running WASI (WebAssembly) files using `bun run` (#1929)Gravatar Jarred Sumner 1-2/+2
* another micro bench * Support running WASI --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-27sentinelGravatar Jarred Sumner 1-2/+2
2023-01-26Remove usages of assumeSentinelGravatar Jarred SUmner 1-3/+3
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 1-1/+1
2023-01-14fix life-cycle script execution (#1799)Gravatar Alex Lam S.L 1-57/+43
- change current working directory for workspaces - add `node_modules/.bin` to `PATH` before running
2023-01-13move more thingsGravatar Jarred SUmner 1-5/+5
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2023-01-10 use `strings.hasPrefixComptime()` (#1755)Gravatar Alex Lam S.L 1-69/+49
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-3/+3
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-22`npx` -> `bunx`Gravatar Jarred Sumner 1-0/+14
2022-12-22don't log for ctrl + cGravatar Jarred Sumner 1-4/+8
2022-12-15Fix missing error when command not foundGravatar Jarred Sumner 1-1/+1
2022-12-15[bun run] Include signal code on errorGravatar Jarred Sumner 1-85/+48
2022-12-15[bun run] Introduce `--bun` flag to run in bun instead of nodeGravatar Jarred Sumner 1-72/+192
2022-12-15[bun run] Use `execve` instead of `posix_spawn` when bun no longer needs to ↵Gravatar Jarred Sumner 1-20/+78
run script/bin When we launch a script & there's nothing left to do, we should replace the process image with the new process instead of keeping the bun process alive while the other script is running.
2022-12-09Exclude other ts declaration file extensions (#1596)Gravatar Colin McDonnell 1-0/+2
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-1/+1
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-3/+3
2022-11-13Fix incorrect exit status messageGravatar Jarred Sumner 1-3/+6
2022-11-10[bun run] Fix potential crash when a command terminates abnormallyGravatar Jarred Sumner 1-4/+17
2022-09-19Pass through arguments unmodified after `bun run <script>` or `bun <script>`Gravatar Jarred Sumner 1-44/+3
Fixes https://github.com/oven-sh/bun/issues/231
2022-09-01Delete some dead codeGravatar Jarred Sumner 1-1/+0
2022-09-01[bun run] Silence `.env` loaded logGravatar Jarred Sumner 1-2/+5
Fixes https://github.com/oven-sh/bun/issues/1192
2022-08-20wip support #!Gravatar Jarred Sumner 1-1/+6