Alex Lam S.L
06503663b1
[install] handle workspace:[alias@]range ( #3819 )
2023-07-26 15:35:47 -07:00
Alex Lam S.L
961312eab0
[install] fix workspace override of aliased npm dependency ( #3784 )
2023-07-24 17:01:43 -07:00
Alex Lam S.L
d8135e85ca
more tests for #3754 ( #3774 )
2023-07-23 21:19:10 -07:00
Alex Lam S.L
07e08b086a
[install] improve workspace substitution of npm dependencies ( #3754 )
...
- respect semver ranges
2023-07-22 20:05:24 -07:00
Alex Lam S.L
9f031b3642
[install] handle duplicated workspace declarations gracefully ( #3662 )
...
fixes #3644
2023-07-17 16:06:31 -07:00
Jarred Sumner
58824ea743
Fix test with incorrect text
2023-07-17 04:44:56 -07:00
Alex Lam S.L
3d0ffc48cb
[install] fix run-time module loading ( #3510 )
...
- fix version buffer confusion
- improve workaround to handle cached modules
fixes #3507
2023-07-04 02:09:58 -07:00
Alex Lam S.L
2a73d3c793
[install] handle workspace: specifier correctly ( #3474 )
...
fixes #3430
2023-06-30 10:03:53 -07:00
Alex Lam S.L
0de5bb22af
[install] workaround run-time module loading issue ( #3432 )
2023-06-28 01:20:59 -07:00
Jarred Sumner
28f27f733b
[bun install] Implement --exact flag ( #3409 )
...
* [bun install] Implement `--exact` flag
* Rename to --save-exact
* Rename --exact to --save-exact
* Update bun-add.test.ts
* We're going with --exact as the flag name
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-26 15:51:57 -07:00
Alex Lam S.L
318879d174
[install] support trustedDependencies ( #3288 )
...
* [install] support trustedDependencies
closes #2073
* use `strings.indexOfChar()`
* use hashes instead of strings
* utilise `inline else`
2023-06-26 11:55:26 -07:00
Tiago Teixeira
d8817c2d32
Add support for install with --frozen-lockfile ( #3365 )
...
* Add support for install with --frozen-lockfile
* Add test
* Add test for frozenLockfile in config file
2023-06-25 16:43:39 -07:00
Alex Lam S.L
33903ea892
[install] fix hang in bun install --production ( #3406 )
2023-06-26 01:43:58 +03:00
Alex Lam S.L
ca1fe3c602
revamp dotEnv parser ( #3347 )
...
- fixes `strings.indexOfAny()`
- fixes OOB array access
fixes #411
fixes #2823
fixes #3042
2023-06-22 17:05:54 -07:00
Keyhan Vakil
9a8d9b5e91
add --save argument to install ( #3277 )
2023-06-11 07:10:55 -07:00
Alex Lam S.L
dbcaa02d89
[install] fix life cycle scripts execution ( #3235 )
...
[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-06-10 03:30:43 +03:00
ytakhs
6565bd89d5
Fix to retain a newline after removing a package ( #3231 )
2023-06-09 08:42:38 -07:00
Alex Lam S.L
4c566f56c1
[install] fix .bin linking ( #3067 )
...
- causes intermittent `bun install` failures on `bun-types`
2023-05-25 21:58:30 -07:00
Alex Lam S.L
31c967206a
extend test time-outs ( #3048 )
...
- avoid intermittent failures due to network latencies
2023-05-24 08:33:18 -07:00
Alex Lam S.L
5fd838b9e4
bun add from root folder when call within workspaces (#2841 )
...
- ignore invalid `package.json` from parent directories
- `echo` new lines from `make` targets correctly
2023-05-10 17:22:01 +03:00
Alex Lam S.L
4ccca13001
[install] operator on root package of workspaces ( #2834 )
...
- parse `bunfig.toml` from same directory as `package.json`
- handle `--cwd` correctly
fixes #2592
2023-05-10 08:26:29 +03:00
Alex Lam S.L
c05a6744bb
[install] handle devDependencies of local folders ( #2781 )
...
fixes #2653
2023-05-01 06:41:33 +03:00
Alex Lam S.L
dd03a4f95d
[install] handle repeated install of GitHub dependency correctly ( #2780 )
...
fixes #2602
2023-04-30 09:45:08 -07:00
Alex Lam S.L
6e16bb67eb
[install] fix bun add on non-aliased dependency ( #2728 )
2023-04-24 17:56:43 -07:00
Jarred Sumner
f3ab445c3f
Use absolute paths more
2023-04-03 18:12:51 -07:00
Jarred Sumner
ae849528b8
Fix test failure
2023-04-03 18:11:14 -07:00
Alex Lam S.L
74cacffb0c
[install] fix stale pointer with tarball URLs ( #2520 )
...
* [install] fix stale pointer with tarball URLs
fixes #2512
* `alloc()` & `free()` instead of fixed-size buffer
2023-03-30 21:54:56 -07:00
Alex Lam S.L
977446ef3c
[install] fix re-install of git dependency ( #2519 )
...
- add tests for re-install of npm alias & GitHub URL
2023-03-30 19:50:23 -07:00
Alex Lam S.L
758daa7367
[install] fix re-run of tarball URL from lockfile ( #2507 )
2023-03-29 20:38:19 -07:00
Alex Lam S.L
0a91490226
[install] support tarball URLs ( #2497 )
...
closes #2448
2023-03-28 13:45:00 -07:00
Alex Lam S.L
319efe9c7b
[install] fix tests ( #2488 )
...
- avoid creating spurious directories next to test scripts
2023-03-25 21:51:03 -07:00
Jarred Sumner
52d27659a2
Fixes #2462 ( #2463 )
2023-03-23 15:49:42 +02:00
Colin McDonnell
a5f92224b5
Fix types ( #2453 )
...
* 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-22 15:01:01 -07:00
Jarred Sumner
1a25af5e3d
Implement simple workspaces glob support in bun install ( #2435 )
...
* [bun install] Implement `packages/*`-style globs
* Fix incorrect assertion
* 💅
* 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-20 05:57:23 -07:00
Jarred Sumner
5a23d17620
Several bug fixes ( #2427 )
...
* Fix test
* Fix segfault when unexpected type is passed in `expect().toThrow`
* Fix issues with request constructor
* Don't bother cloning headers when its empty
* woops
* more tests
* fix incorrect test
* Make the fetch error messages better
* Update response.zig
* Fix test that failed on macOS
* Fix test
* Remove extra hash table lookups
* Support running dummy registry directly
cc @alexlamsl
* Update test
* Update test
* fixup
* Workaround crash in test runner
* Fixup test
* Fixup test
* Update os.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-19 14:08:20 -07:00
Alex Lam S.L
acd361855a
[install] sanitise against malformed bun.lockb ( #2397 )
...
* [install] sanitise against malformed `bun.lockb`
fixes #2392
* fix `prettier` checks in unrelated files
2023-03-15 08:49:52 -07:00
Ashcon Partovi
f7e4eb8369
Reorganize tests ( #2332 )
2023-03-07 12:22:34 -08:00