aboutsummaryrefslogtreecommitdiff
path: root/src/cli (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-01Update NodeJS LTS version in run_command.zig (#2533)Gravatar Jake Boone 1-1/+1
2023-03-28`bun --watch` and `bun test --watch` (#2500)Gravatar Jarred Sumner 1-0/+16
* --watch wip * Upgrade for latest zig * Implement `bun --watch` * Implement `bun test --watch` * Auto restart on crash in --watch * :clock1: :clock2: :clock3: :clock330: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-22Fix types (#2453)Gravatar Colin McDonnell 1-2/+2
* WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs
2023-03-19[bun test] Implement `--rerun-each` flag to run each test N timesGravatar Jarred Sumner 1-38/+54
2023-03-14Condense snapshot outputGravatar Jarred Sumner 1-20/+27
2023-03-14Implement `toMatchSnapshot()` (#2294)Gravatar Dylan Conway 1-0/+48
* buggy snapshot * error output for failed snapshot * missing first * hints * open dir once, better cleanup * update flag * truncate on update * object and class snapshot formatting * array formatting * no function name, single item is empty array * string objects, maps, sets, promise * avoid using invalid memory * handle number objects * handle extending `Number` * boolean objects * snapshot tests and test updates * snapshot format for buffers * safer snapshot parsing * property matchers setup * strings and tests * generate classes with empty prototype * optional `propertyMatchers` parameter * new test folder structure * strings.eqlLong * globalObject.throwPretty() and expect.any tests * add updateSnapshot flag to help * move snapshot format out of `printErrorlikeObject` * empty object snapshot format * separate typed array, remove trailing comma * use `isCell`, object trailing commas * handle unicode * todo for primitive constructors * switch to `JSC.Node.Syscall.open` and `JSC.Maybe` * use js parser for snapshot files * deinit ast, log parse error * copy/paste most of `exports.ZigConsoleClient` * remove snapshot option * remove ordered properties option * remove snapshot format option from `exports.zig` * remove extra newlines * change mode * update test runner output * escape backticks faster * `bunx jest` in temp dir * remove buffered writer * add `toMatchSnapshot` to types * cleanup, switch to `pread` * cli `--update` flag * `--update-snapshots` * remove string object format
2023-03-04fix(bunx): can't resolve executable for scoped packages (#2293)Gravatar Fran Zekan 1-1/+3
Fixes #2292
2023-03-03fix(bunx): Show usage when calling bunx without arguments (#2295)Gravatar Fran Zekan 1-17/+26
* Make sure to return a helpful error message if no args are passed to bunx * Add tests for bunx without args
2023-03-01Revert "Update clap (#2238)"Gravatar Jarred Sumner 1-22/+22
This reverts commit 7b9a17f9d7106ffd8e553a5192aba60d14ea5e9c.
2023-02-28Expose JSC::Options via `BUN_JSC_` prefixGravatar Jarred Sumner 1-1/+1
Example usage: BUN_JSC_logGC=1 bun file.js
2023-02-28Update clap (#2238)Gravatar Justin Whear 1-22/+22
* remove vendored clap * Update to latest zig-clap Major changes: * Instead of vendoring zig-clap and adding changes, this uses Hejsil/zig-clap directly as a submodule * `cli.zig` and related files have been updated to use new API (no more `flag()` or `option()`) * A workaround for the Run and Auto commands has been implemented that allows us to use the official upstream Minor change: * `-i` now has the long option `--install-fallback`; I didn't spend much time thinking about this name, so suggestions weclome. * deinit jsBundleArgs
2023-02-28Implement `preload` support (like `node -r ` except in a config file) (#2231)Gravatar Jarred Sumner 2-4/+26
* Update Makefile * Introduce `preload` * Add a test * Support entry points --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-26fix ANSI escape codes piped from `stdout` to file (#2202)Gravatar Alex Lam S.L 1-1/+1
2023-02-25improve `bun pm ls` (#2192)Gravatar Alex Lam S.L 1-42/+73
2023-02-25docs: consistent indentation for post install commands (#2175)Gravatar John Reilly 1-1/+1
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 5-21/+20
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 11-44/+44
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-22wiptest -> test (#2131)Gravatar Dylan Conway 1-2/+7
* +/- for object diff, quote more strings * wiptest -> test * quote strings fix
2023-02-09[bun:test] Auto-import jest globals in test filesGravatar Jarred Sumner 1-0/+1
2023-02-06[WIP] fix corner cases with aliases dependencies (#2000)Gravatar Alex Lam S.L 1-23/+14
* fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb`
2023-01-30report invalid input file as test failure (#1938)Gravatar Alex Lam S.L 1-0/+1
fixes #1935
2023-01-30[bunx] fix version parsing (#1937)Gravatar Alex Lam S.L 1-3/+2
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-17feat(cli): Support `HTTPS_PROXY`, `HTTP_PROXY`, and `NO_PROXY` #1440 (#1814)Gravatar Ciro Spaciari 2-64/+24
* WIP: http_proxy implemented, first steps for https_proxy #1440 * add HTTP_PROXY support to upgrade_command and WIP: tunneling * WIP async handshake, stuck on WANT_READ, try to defer + check * create and upgrade with proxy working, TLS and non-TLS to proxy TLS working * bun install/upgrade/create working with http(s)_proxy #1440 * add NO_PROXY support #1440 * remove commented code and add TODO * fix getHttpProxy no_proxy * fix formatting * refactor catch and getHttpProxy, fix empty strngs in env for proxy * allow optimization for handleResponseBody
2023-01-16Make entire test line dimGravatar Jarred Sumner 1-2/+2
2023-01-16[bun:test] Fix dim, fix missing spaceGravatar Jarred Sumner 1-4/+2
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 4-4/+4
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-14fix bugs (#1795)Gravatar Alex Lam S.L 1-3/+8
- segfault reading stacktrace from `fs/promises` rejections - `Promise` rejection within `describe()` ends testing abruptly - `FSSink.write()` incorrectly handles `objectMode` - `FSSink.write()` throws wrong error codes
2023-01-13[bun:test] Always dim skipGravatar Jarred Sumner 1-1/+1
2023-01-13move more thingsGravatar Jarred SUmner 9-35/+35
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 7-7/+7
2023-01-12fix(bun-test): test title in results (#1753)Gravatar Ethan Burrell 1-2/+6
* fix(bun-test): test title in results * missed case * clean up import * respond to reviews
2023-01-10 use `strings.hasPrefixComptime()` (#1755)Gravatar Alex Lam S.L 1-69/+49
2023-01-09Update test_command.zigGravatar Jarred Sumner 1-2/+2
2023-01-09fixupGravatar Jarred Sumner 1-5/+5
2023-01-09Update test_command.zigGravatar Jarred Sumner 1-3/+3
2023-01-09RenameGravatar Jarred Sumner 1-18/+21
2023-01-09Update test_command.zigGravatar Jarred Sumner 1-6/+8
2023-01-09[bun:test] Implement `test.skip`Gravatar Jarred Sumner 1-21/+84
2023-01-06fix typo in install.sh (#1737)Gravatar Ikko Eltociear Ashimine 1-1/+1
infomation -> information
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 12-64/+74
* @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-23always more packages at new depthGravatar Dylan Conway 1-1/+1
2022-12-23fix bun pm ls connectors when node_modules is lastGravatar Dylan Conway 1-1/+1
2022-12-23darkenbun-v0.4.0Gravatar Jarred Sumner 1-2/+2
2022-12-23add node_modules to bin pathGravatar Dylan Conway 1-2/+2
2022-12-22Make `bun pm ls` only show top-level by defaultGravatar Jarred Sumner 1-2/+29