aboutsummaryrefslogtreecommitdiff
path: root/src/cli/run_command.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2022-08-03[bun install] Support lifecycle hooks for cwd's package.jsonGravatar Jarred Sumner 1-164/+174
`bun install` will now run prepare & install `"scripts"` for the root package.json (not dependencies) This makes things like `husky` work and possibly `patch-package`
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-8/+1
(#535) * fix: add missing newline * refactor: std.process.exit -> Global.exit * fix: std.os.abort -> Global.exit I'm not sure about this one. Please verify. * cleanup: remove unnecessary `Output.flush`s
2022-07-09fix: update build files to latest Zig versionGravatar sno2 1-4/+4
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-1/+1
2022-05-30Improve error messages when you mistype commands/files/scriptsGravatar Jarred Sumner 1-4/+17
2022-03-18[bun install] Do not set an `$npm_config_prefix`Gravatar Jarred Sumner 1-8/+0
2022-03-18[bun run] fix missing spaceGravatar Jarred Sumner 1-1/+1
2022-03-14Switch to std.HashMap for DirEntry storeGravatar Jarred Sumner 1-8/+10
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-12/+12
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-3/+3
2022-03-02[bun run] Set more environment variablesGravatar Jarred Sumner 1-0/+31
2022-02-27WASMGravatar Jarred Sumner 1-2/+2
2022-02-11`std.os.`exit -> `Global.exit` so stderr is always flushedGravatar Jarred Sumner 1-6/+6
2022-02-10[bun run] Fix exit code when running a binGravatar Jarred Sumner 1-1/+1
2022-02-10[bun run] Fix exit code when script failsGravatar Jarred Sumner 1-1/+2
2022-01-03dead codeGravatar Jarred Sumner 1-2/+0
2022-01-02copy: replace Bun with bun (#99)Gravatar luke miles 1-1/+1
Most CLI tools have the style convention of referring to themselves in lowercase. It is, after all, the name that users type in when using the tool. This PR maintains that convention in bun. "Drop the uppercase B, it's cleaner"
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-7/+13
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-28More defensively search for shells to use if one is not found in the pathGravatar Jarred Sumner 1-0/+22
2021-12-28[bun run] Fix bug with absolute paths to js-like filesGravatar Jarred Sumner 1-14/+22
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-1/+1
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-11-07[bun run] Remove unnecessary codeGravatar Jarred Sumner 1-7/+0
2021-11-07[bun run] Filter out builtin commands from showing up at the topGravatar Jarred Sumner 1-17/+13
2021-11-07[bun run] Filter out js files that start with `.` from completionsGravatar Jarred Sumner 1-1/+1
2021-11-07[bun run] Filter out `post*` and `pre*` from the completionsGravatar Jarred Sumner 1-1/+17
2021-11-05[bun run] Fix issue with \\" \\" in `scripts`Gravatar Jarred Sumner 1-0/+7
2021-11-05Update run_command.zigGravatar Jarred Sumner 1-2/+2
2021-11-05[bun run] Exclude .config.* files from showing up as runnable with Bun.jsGravatar Jarred Sumner 1-1/+5
2021-11-05[bun run] Fix bug with yarn getting replaced for `-` commandsGravatar Jarred Sumner 1-0/+20
2021-11-05[bun run] Improve `fish` completions by adding a descriptionGravatar Jarred Sumner 1-2/+60
2021-11-04[bun run][bun create] Do not follow symlinks when exec'ing a child processGravatar Jarred Sumner 1-17/+18
2021-11-04[bun run] Fix bug with quotes and spacesGravatar Jarred Sumner 1-93/+207
Fixes #53
2021-11-02[internal] Global.configureAllocator()Gravatar Jarred Sumner 1-0/+4