aboutsummaryrefslogtreecommitdiff
path: root/src/install/lockfile.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-21[install] support SCP-style `git` dependencies (#2124)Gravatar Alex Lam S.L 1-16/+23
- try HTTPS first before SSH - improve package name resolution - improve report messages fixes #2119
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-14[install] improve `package.json` validation (#2074)Gravatar Alex Lam S.L 1-27/+91
- report error and exit gracefully instead of crashing
2023-02-11fix segfault during non-install script execution (#2045)Gravatar Alex Lam S.L 1-1/+1
2023-02-10[install] fix duplicate check on `peerDependencies` (#2039)Gravatar Alex Lam S.L 1-8/+7
fixes #2037
2023-02-08[install] assorted fixes & improvements (#2011)Gravatar Alex Lam S.L 1-66/+72
- 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 1-238/+179
* 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 1-104/+50
* resolve duplicate npm dependencies correctly fixes #1952 * modify the correct reference
2023-01-31[bun add] various fixes (#1953)Gravatar Alex Lam S.L 1-5/+5
2023-01-30[bunx] fix version parsing (#1937)Gravatar Alex Lam S.L 1-1/+0
2023-01-28normalise `bun add` package specifiers (#1924)Gravatar Alex Lam S.L 1-8/+14
- fix invalid buffer references fixes #1920
2023-01-28fix corner cases with aliased dependencies (#1927)Gravatar Alex Lam S.L 1-2/+12
2023-01-28[WIP] append GitHub package after fully parsed (#1911)Gravatar Alex Lam S.L 1-11/+10
2023-01-26valgrindGravatar Jarred SUmner 1-4/+5
2023-01-25be more carefulGravatar Jarred Sumner 1-10/+21
2023-01-25Fix "failed to resolve" bug 🫠Gravatar Jarred Sumner 1-2/+1
2023-01-25Add logGravatar Jarred Sumner 1-0/+3
2023-01-24one less allocGravatar Jarred Sumner 1-1/+9
2023-01-21Fix test failure due to UBGravatar Jarred Sumner 1-16/+7
2023-01-21minor clean-ups (#1869)Gravatar Alex Lam S.L 1-3/+1
- use `Lockfile.str()` more - allow `child-process-stdio.test.js` to run with `bun-debug`
2023-01-21Remove UB with `semver.String`Gravatar Jarred Sumner 1-6/+18
Thanks @MasterQ32
2023-01-20Bugfixes to install (#1848)Gravatar Jarred Sumner 1-5/+16
2023-01-19repopulate `alias_map` correctly (#1847)Gravatar Alex Lam S.L 1-20/+30
2023-01-19Fix UAF when opening workspacesGravatar Jarred Sumner 1-2/+0
2023-01-19Improve error message when a workspace is not foundGravatar Jarred Sumner 1-9/+60
2023-01-19fix stale references upon `Lockfile` tree cloning (#1845)Gravatar Alex Lam S.L 1-0/+12
2023-01-18support npm dependency aliasing (#1837)Gravatar Alex Lam S.L 1-36/+10
* support npm dependency aliasing * fix variable name
2023-01-14fix life-cycle script execution (#1799)Gravatar Alex Lam S.L 1-15/+33
- change current working directory for workspaces - add `node_modules/.bin` to `PATH` before running
2023-01-14support installation of NPM workspaces (#1764)Gravatar Alex Lam S.L 1-129/+276
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
2022-12-30More assertionsGravatar Jarred Sumner 1-5/+11
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-15/+15
* @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[install] fix remaining corner cases with dependency resolution (#1649)Gravatar Alex Lam S.L 1-45/+20
2022-12-22[install] avoid dependency conflicts between siblings (#1647)Gravatar Alex Lam S.L 1-26/+27
- consider `peerDependencies` when hoisting packages
2022-12-22fix `bun install` dependency resolution (#1643)Gravatar Alex Lam S.L 1-10/+28
- avoid conflicts due to hoisted placement when parent and child depends on different versions of the same package
2022-12-13add `bun pm ls` for printing lockfiles (#1612)Gravatar Dylan Conway 1-1/+1
* list directory structure from lockfile * dim connectors and versions
2022-12-13missing id when over 8 packagesGravatar Dylan Conway 1-3/+7
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-8/+8
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+0
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-08[bun install] Support `bin` with `bun link`Gravatar Jarred Sumner 1-0/+122
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-2/+183
(#1459) * Update bundler.zig * WIP * Update README.md * Update README.md * wip * Support running scripts without package.json * Add `--no-auto-install` and `--prefer-offline` flags * WIP * wip * Update headers-handwritten.h * WIP * Build fixes * Fix UAF * Update install.zig * Must call .allocate() * Micro-optimization: only call .timestamp() once per tick when installing packages * Support progress bar * Extend the timestamp for package staleness checks to 1 day * Add `--prefer-latest`, `-i` CLI Flags * Fix crash * Support line text manually being set on an Error instance * Add a few more fields for error messages * Fix bug when counting 8 character strings in string builder * Implement error handling for automatic package installs! * Fix crash * Make it say module when there's a slash * Update module_loader.zig * Ban dependency versions in import specifiers when a package.json is present * Remove unused field * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-07[bun install] Implement `bun link`Gravatar Jarred Sumner 1-2/+3
2022-08-05[BREAKING][bun install] Invalidate all the lockfilesGravatar Jarred Sumner 1-1/+5
2022-08-05[bun install] Support private registries & private scopesGravatar Jarred Sumner 1-7/+12
2022-08-03[bun install] Support lifecycle hooks for cwd's package.jsonGravatar Jarred Sumner 1-2/+67
`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`