aboutsummaryrefslogtreecommitdiff
path: root/test/cli/install/bun-install.test.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-06fix a couple install testsGravatar Dylan Conway 1-8/+8
2023-10-06formatGravatar Dylan Conway 1-1/+2
2023-10-05test(bun install): cover http(s) non-github case (#6190)Gravatar Justin "J.R." Hill 1-0/+48
2023-10-05Use singular nouns when appropriate on install messages (#2543)Gravatar Jake Boone 1-63/+63
* Use singular nouns when appropriate on install messages * Fix one more pluralization * Fix bun-add tests for "1 package installed" * Fix bun install/remove/update tests for "1 package installed"
2023-10-04fix semver and repository host bugs (#6312)Gravatar Dylan Conway 1-2/+208
* releases before prereleases * handle different repo hosts * remove log * Update bun-install.test.ts * test for `bun add` * gitlab test * use comptime hash map, another test case * don't need length * bump timeout, use tld * infer git dependencies for https and ssh
2023-10-03Store workspace package versions (#6258)bun-v1.0.4Gravatar Dylan Conway 1-0/+79
* Store workspace package versions in the lockfile * more logging * wip * keep information from workspace name array and cache * hash key * remove cache, compare workspaces with initially loaded * uncomment sort * remove comments * remove allocation * package json * test `bun add <package>` without workspace prefix * Update test/cli/install/bun-install.test.ts Co-authored-by: Markus Staab <maggus.staab@googlemail.com> --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2023-10-02Fix `bun install` reading Github API from wrong environment variable (#6247)Gravatar Ashcon Partovi 1-0/+59
* Fix `bun install` reading Github API from wrong environment variable * Update src/install/install.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-27fix(bun install): Handle vercel and github tarball path dependencies (#6122)Gravatar Justin "J.R." Hill 1-0/+56
* fix(bun install): Handle vercel and github tarball path dependencies * test(bun install): test tarball path with when * Simplify github tarball detection --------- Co-authored-by: bun <noreply@oven.sh>
2023-09-26Update bun-install.test.tsGravatar Dylan Conway 1-263/+327
2023-09-26fix workspace dependency install (#6092)Gravatar Dylan Conway 1-0/+408
* handle `*` * test * always use the package name * more tests * install dependency in each
2023-09-24Correctly fix #5888 (#6000)Gravatar Jarred Sumner 1-1/+1
* Update our MultiArrayList * More consistent CI * Fix serialization issue * Update bun.lockb * Update bun.lockb * fixup * Fix `Bin{}` * `bun update` should not cache the manifest * Make bun install tests more consistent * This differs by platform evidently --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Get artifactory to work (#5744)Gravatar Jarred Sumner 1-11/+10
* Get artifactory to work * Cleanup url normalization a ltitle more * Clean up tests * prettier --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18Encode slashes in package names in the registry manifest request (#5716)Gravatar Jarred Sumner 1-5/+5
* Encode slashes in package names in the registry manifest request Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com> * Update dummy.registry.ts * Fix tests * Add guide for Azure Artifacts * Update azure-artifacts.md * Update azure-artifacts.md * Typo --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
2023-09-18fix(config): support for registry url without trailing slash (#5662)Gravatar Ai Hoshino 1-4/+6
* fix(config): support for registry URLs without trailing slash Close: #4589, #5368 * Update src/bunfig.zig * Update src/bunfig.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 1-1/+148
* use WTF to join registry strings * show dependency error messages, better join error We actually report errors when enqueuing dependencies now. I also made the join URLs error message read better. It'd be cleaner to handle it all in one place, but there's currently no way to propagate the data up. * starting on registry URL tests * added more registry URL tests * [install] prevent optional/peer deps from failing builds Couldn't get the peer dependency test to work, but the code is there. * ran prettier * changed error note to use realname, updated tests * ran prettier again...
2023-08-30fix(install): resolve semver matching with pre-release tags. (#4412)Gravatar Ai Hoshino 1-0/+44
Close: #4398
2023-08-30[install] fix stale root life-cycle script in lockfile (#4411)Gravatar Alex Lam S.L 1-1/+169
fixes #4319
2023-08-24[install] fix stale life-cycle scripts from lockfile (#4307)Gravatar Alex Lam S.L 1-0/+100
fixes #4269
2023-08-24[install] fix crash when installing package that uses loose semver ↵Gravatar Alex Lam S.L 1-0/+135
pre-release (#4302) - also fix parsing of `1.2.3pre+build` fixes #4266
2023-08-04[install] handle `workspace:*` correctly (#3994)Gravatar Alex Lam S.L 1-0/+102
- parse as path so it works on unversioned workspaces - fix missed storage of workspace version fixes #3985
2023-08-04[install] store resolved workspace path in lockfile (#3974)Gravatar Alex Lam S.L 1-24/+140
- resolve cwd consistently - speed up package diff - update `test/bun.lockb` fixes #3685 fixes #3958
2023-08-03[install] fix stale `bun.lockb` on workspaces (#3945)Gravatar Alex Lam S.L 1-0/+33
- handle workspaces under `--production` correctly - fix `Makefile`
2023-07-26[install] handle `workspace:[alias@]range` (#3819)Gravatar Alex Lam S.L 1-0/+120
2023-07-24[install] fix workspace override of aliased npm dependency (#3784)Gravatar Alex Lam S.L 1-0/+106
2023-07-23more tests for #3754 (#3774)Gravatar Alex Lam S.L 1-0/+110
2023-07-22[install] improve workspace substitution of npm dependencies (#3754)Gravatar Alex Lam S.L 1-30/+241
- respect semver ranges
2023-07-17[install] handle duplicated workspace declarations gracefully (#3662)Gravatar Alex Lam S.L 1-0/+172
fixes #3644
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 1-0/+44
fixes #3430
2023-06-26[install] support trustedDependencies (#3288)Gravatar Alex Lam S.L 1-1/+73
* [install] support trustedDependencies closes #2073 * use `strings.indexOfChar()` * use hashes instead of strings * utilise `inline else`
2023-06-25Add support for install with --frozen-lockfile (#3365)Gravatar Tiago Teixeira 1-0/+49
* Add support for install with --frozen-lockfile * Add test * Add test for frozenLockfile in config file
2023-06-26[install] fix hang in `bun install --production` (#3406)Gravatar Alex Lam S.L 1-10/+39
2023-06-10[install] fix life cycle scripts execution (#3235)Gravatar Alex Lam S.L 1-0/+87
[install] fix life cycle scripts execution - scripts from dependencies did not run during re-installation - `bun.lockb` now contains data on life cycle scripts - handle prior lockfile format by reading missing info from every `package.json` - suppress spurious log output from tests
2023-05-25[install] fix `.bin` linking (#3067)Gravatar Alex Lam S.L 1-2/+157
- causes intermittent `bun install` failures on `bun-types`
2023-05-24extend test time-outs (#3048)Gravatar Alex Lam S.L 1-6/+6
- avoid intermittent failures due to network latencies
2023-05-10`bun add` from root folder when call within workspaces (#2841)Gravatar Alex Lam S.L 1-0/+57
- ignore invalid `package.json` from parent directories - `echo` new lines from `make` targets correctly
2023-05-10[install] operator on root package of workspaces (#2834)Gravatar Alex Lam S.L 1-0/+160
- parse `bunfig.toml` from same directory as `package.json` - handle `--cwd` correctly fixes #2592
2023-05-01[install] handle `devDependencies` of local folders (#2781)Gravatar Alex Lam S.L 1-0/+106
fixes #2653
2023-04-03Fix test failureGravatar Jarred Sumner 1-15/+18
2023-03-30[install] fix stale pointer with tarball URLs (#2520)Gravatar Alex Lam S.L 1-0/+80
* [install] fix stale pointer with tarball URLs fixes #2512 * `alloc()` & `free()` instead of fixed-size buffer
2023-03-30[install] fix re-install of git dependency (#2519)Gravatar Alex Lam S.L 1-0/+464
- add tests for re-install of npm alias & GitHub URL
2023-03-29[install] fix re-run of tarball URL from lockfile (#2507)Gravatar Alex Lam S.L 1-2/+295
2023-03-28[install] support tarball URLs (#2497)Gravatar Alex Lam S.L 1-0/+190
closes #2448
2023-03-20Implement simple `workspaces` glob support in bun install (#2435)Gravatar Jarred Sumner 1-5/+50
* [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * remove extraneous console.log * Fix pointer to stack memory * Add a test with a scoped package name from a glob workspace * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-15[install] sanitise against malformed `bun.lockb` (#2397)Gravatar Alex Lam S.L 1-11/+11
* [install] sanitise against malformed `bun.lockb` fixes #2392 * fix `prettier` checks in unrelated files
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 1-0/+2757