aboutsummaryrefslogtreecommitdiff
path: root/src/install (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-15[install] sanitise against malformed `bun.lockb` (#2397)Gravatar Alex Lam S.L 1-19/+17
* [install] sanitise against malformed `bun.lockb` fixes #2392 * fix `prettier` checks in unrelated files
2023-03-04[install] use `latest` tagged version if in range (#2302)Gravatar Alex Lam S.L 1-4/+6
2023-03-01Revert "Update clap (#2238)"Gravatar Jarred Sumner 1-75/+72
This reverts commit 7b9a17f9d7106ffd8e553a5192aba60d14ea5e9c.
2023-03-01Revert "Add `-D`, `--dev` flags for bun install (#2240)"Gravatar Jarred Sumner 1-9/+9
This reverts commit ec20fae57f96a835562b154730957ecc4015ba31.
2023-02-28Add `-D`, `--dev` flags for bun install (#2240)Gravatar Justin Whear 1-9/+9
* 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. * add --development and --optional to bun install * Add support for `-D`, `--dev` in bun install, fix `--save`
2023-02-28Update clap (#2238)Gravatar Justin Whear 1-72/+75
* 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-27resolve duplicated dependency correctly (#2213)Gravatar Alex Lam S.L 1-146/+123
2023-02-26Don't parse shasum twiceGravatar Jarred Sumner 1-6/+0
2023-02-24fix `compiler_rt` linking failure on `x86_64` (#2163)Gravatar Alex Lam S.L 1-38/+25
- minor code tweaks
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 8-187/+191
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 6-57/+57
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-23fix illegal memory reference in `bun link` (#2147)Gravatar Alex Lam S.L 1-14/+17
2023-02-21[install] support SCP-style `git` dependencies (#2124)Gravatar Alex Lam S.L 4-90/+179
- try HTTPS first before SSH - improve package name resolution - improve report messages fixes #2119
2023-02-17use `bun.logger` instead of `bun.Output` (#2099)Gravatar Alex Lam S.L 3-98/+142
2023-02-17[install] support git dependencies (#2094)Gravatar Alex Lam S.L 5-266/+748
2023-02-16Support yarn-like `"workspaces"."packages": string[]` (#2086)Gravatar Jarred Sumner 1-95/+206
* [workspaces] Support yarn-like `"workspaces"."packages": string[]` * Add a test * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-15Don't crash on null version stringGravatar Jarred Sumner 1-1/+1
2023-02-15feat(fetch) AbortSignal (#2019)Gravatar Ciro Spaciari 1-2/+2
* add fetch abort signal * get aborted (still segfaults) * bidings.zig u0 error * still GC/memory error * fix start crash * fix AbortSignal fromJS * change fromJS to obj.as * addAbortSignalEventListenner * handle abort types, and add tests * fix tests * add custom reason test * merge 2 substring methods, use MAKE_STATIC_STRING_IMPL * fix create AbortError and TimeoutError, move globalThis and exception creation to main thread * fix tests and rebuild headers * no need to check with substring reason is already an exception * no need to check with substring reason is already an exception * fix dumb error inverting conditions for check reason * fix custom reason behavior
2023-02-14[install] link network-delayed `.bin` scripts correctly (#2076)Gravatar Alex Lam S.L 2-15/+20
2023-02-14[install] improve `package.json` validation (#2074)Gravatar Alex Lam S.L 3-89/+140
- report error and exit gracefully instead of crashing
2023-02-12[install] support `git://github.com/` dependencies (#2059)Gravatar Alex Lam S.L 1-4/+13
2023-02-11fix segfault during non-install script execution (#2045)Gravatar Alex Lam S.L 4-181/+59
2023-02-10[install] fix duplicate check on `peerDependencies` (#2039)Gravatar Alex Lam S.L 1-8/+7
fixes #2037
2023-02-08[install] pick `latest` tagged version by default (#2016)Gravatar Alex Lam S.L 2-17/+6
* [install] pick `latest` tagged version by default fixes #1993 * update `package.json` the same way as `npm
2023-02-08[install] assorted fixes & improvements (#2011)Gravatar Alex Lam S.L 6-211/+231
- take `peerDependencies` into account during package placement - do not recursively resolve `workspaces` (matches `npm`) - link binaries to non-root packages correctly - prune empty nodes during dependency tree construction - support non-standard `workspace:` specifier
2023-02-06cleanupGravatar Jarred Sumner 1-3/+9
2023-02-06minor cleanupGravatar Jarred Sumner 1-5/+8
2023-02-06Add bounds checkGravatar Jarred Sumner 1-1/+1
2023-02-06[WIP] fix corner cases with aliases dependencies (#2000)Gravatar Alex Lam S.L 4-345/+277
* fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb`
2023-02-01resolve duplicate npm dependencies correctly (#1970)Gravatar Alex Lam S.L 2-141/+89
* resolve duplicate npm dependencies correctly fixes #1952 * modify the correct reference
2023-01-31[bun add] various fixes (#1953)Gravatar Alex Lam S.L 2-42/+40
2023-01-30Fix crash in `bun install <package-name>` (#1947)Gravatar Jarred Sumner 1-25/+29
* Fix crash in `bun install <package-name>` when <package-name> already exists * Prettier * Add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-30[bunx] fix version parsing (#1937)Gravatar Alex Lam S.L 2-2/+0
2023-01-28[bun add] fix more corner cases (#1930)Gravatar Alex Lam S.L 1-51/+35
2023-01-28parse `git+https://github.com/` as GitHub URLs (#1926)Gravatar Alex Lam S.L 2-28/+58
fixes #1921
2023-01-28normalise `bun add` package specifiers (#1924)Gravatar Alex Lam S.L 2-51/+87
- fix invalid buffer references fixes #1920
2023-01-28fix corner cases with aliased dependencies (#1927)Gravatar Alex Lam S.L 2-17/+19
2023-01-28[WIP] append GitHub package after fully parsed (#1911)Gravatar Alex Lam S.L 5-100/+108
2023-01-28Make the parser error in bun install look betterGravatar Jarred Sumner 1-0/+5
2023-01-27sentinelGravatar Jarred Sumner 1-1/+1
2023-01-26Remove usages of assumeSentinelGravatar Jarred SUmner 1-8/+5
2023-01-26valgrindGravatar Jarred SUmner 2-12/+13
2023-01-26parse package-spec from CLI correctly (#1895)Gravatar Alex Lam S.L 2-79/+68
* parse package-spec from CLI correctly fixes #861 * copy separately for `UpdateRequest.name` fix GItHub URL reporting in results update tests to reflect latest code changes * better fix for GitHub URL display issue
2023-01-25[bun install] Support verifying GitHub dependenciesGravatar Jarred Sumner 1-102/+153
2023-01-25[bun install] Include the resolved version for github dependencies in the hashGravatar Jarred Sumner 1-1/+4
2023-01-25[bun install] For `github` dependencies, write a `.bun-tag` to mark the revisionGravatar Jarred Sumner 2-0/+77
2023-01-25Fix "failed to resolve"Gravatar Jarred Sumner 2-30/+77
2023-01-25be more carefulGravatar Jarred Sumner 8-87/+177
2023-01-25Fix "failed to resolve" bug 🫠Gravatar Jarred Sumner 1-2/+1
2023-01-25Add logGravatar Jarred Sumner 1-0/+3