Dylan Conway
d187563d36
use npm alias in dependencies ( #6545 )
...
* aliased package in dependencies
* other buf
* make sure version works
* make sure overrides don't override alias
* tests
* update
* comments
2023-10-17 16:34:03 -07:00
Dylan Conway
9b5e66453b
fix installing dependencies that match workspace versions ( #6494 )
...
* check if dependency matches workspace version
* test
* Update lockfile.zig
* set resolution to workspace package id
2023-10-13 20:37:48 -07:00
Dylan Conway
4bb753295d
use a different package
2023-10-12 19:35:00 -07:00
Dylan Conway
892593c73b
fix install test
2023-10-12 15:17:03 -07:00
Dylan Conway
691cf338c2
fix editing package json when adding github dependency ( #6432 )
...
* fix package name added to package json
* check for github tag
* remove alloc
* some tests
* fix test
2023-10-12 15:02:05 -07:00
dave caruso
969da088f5
fix(install): re-evaluate overrides when removed
2023-10-12 02:03:02 -07:00
dave caruso
2fbb95142a
feat(install): support npm overrides/yarn resolutions, one level deep only ( #6435 )
...
* disable zig fmt on generated ResolvedSourceTag.zig
* overrides
* it works
* ok
* a
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-12 00:44:15 -07:00
Dylan Conway
755e16d962
fix #6416 ( #6430 )
...
* make sure latest is checked after prerelease
* test and fix
* test for when latest matches prerelease
2023-10-11 20:41:12 -07:00
dave caruso
1bf28e0d77
feat(install): automatically migrate package-lock.json to bun.lockb ( #6352 )
...
* work so far
* stuff
* a
* basics work
* stuff
* yoo
* build lockfile
* correct
* f
* a
* install fixture havent tested
* i made it worse
* lol
* be more reasonable
* make the test easier to pass because bun install doesn't handle obscure lockfile edge cases :/
* a
* works now
* ok
* a
* a
* cool
* nah
* fix stuff
* l
* a
* idfk
* LAME
* prettier errors
* does this fix tests?
* Add more safety checks to Integrity
* Add another check
* More careful lifetime handling
* Fix linux debugger issue
* a
* tmp dir and snapshot test
---------
Co-authored-by: Jarred SUmner <jarred@jarredsumner.com >
2023-10-11 02:27:07 -07:00
Arden Sinclair
39446ebdb8
Fix lifecycle scripts not running on reinstallation ( #6376 )
...
* Include trusted dependencies in lockfile
* Add a remote dependency to lifecycle script test
2023-10-10 21:13:42 -07:00
Dylan Conway
05781dd91e
make peer dependencies install by default ( #6396 )
...
* peer dependencies
* default true
* add test
* cleanup
* some tests
* skip peer deps if they are non optional
* remove debug print, fix build
* iterate peer dependencies
2023-10-10 20:05:58 -07:00
Dylan Conway
96aa9c0a38
fix a couple install tests
2023-10-06 22:06:28 -07:00
Dylan Conway
46736d5ecb
format
2023-10-06 22:02:55 -07:00
Justin "J.R." Hill
5c37d5293c
test(bun install): cover http(s) non-github case ( #6190 )
2023-10-05 16:12:07 -07:00
Jake Boone
7ef4cd26ac
Use singular nouns when appropriate on install messages ( #2543 )
...
* 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-05 15:59:02 -07:00
Dylan Conway
4a2e1574e4
fix semver and repository host bugs ( #6312 )
...
* 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-04 22:46:21 -07:00
Dylan Conway
98e9e9b112
Upgrade webkit ( #6277 )
...
* `reportExtraMemoryAllocated` parameters changed
* bump webkit
* Update Dockerfile
* format
2023-10-03 19:56:33 -07:00
axel escalada
0ca9a7889a
Fix bunx command for github package #5974 ( #6042 )
...
* fix bunx command for github package
* refactor fmt package to use it when the path is seted
* use labeled block to assign const instead of use 'undefined'
2023-10-03 11:49:24 -07:00
Dylan Conway
745b6b94ee
Store workspace package versions ( #6258 )
...
* 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-03 02:17:21 -07:00
Ashcon Partovi
15880308b7
Fix bun install reading Github API from wrong environment variable ( #6247 )
...
* Fix `bun install` reading Github API from wrong environment variable
* Update src/install/install.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-02 18:00:17 -07:00
axel escalada
e1117c6ae5
Add local tarball install #5812 ( #6118 )
...
* check if the value passed for add command is a local tarball and install it, test for local tarball
* use bunExe()
* use absolute path to copy tarball
* fmt ts
2023-09-28 19:07:51 -07:00
Justin "J.R." Hill
1d6d639352
fix(bun install): Handle vercel and github tarball path dependencies ( #6122 )
...
* 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-27 19:22:50 -07:00
Dylan Conway
4d2b442a33
Update bun-install.test.ts
2023-09-26 22:19:33 -07:00
Dylan Conway
0268807be2
fix workspace dependency install ( #6092 )
...
* handle `*`
* test
* always use the package name
* more tests
* install dependency in each
2023-09-26 21:53:14 -07:00
axel escalada
bbc70d2b73
Fix create command with template prefixed with @ char #6007 ( #6013 )
...
* fix create command with template prefixed with @ char
* add typescript test for create command
* format test
2023-09-25 05:22:47 -07:00
Jarred Sumner
3f463786a5
Correctly fix #5888 ( #6000 )
...
* 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-24 17:43:59 -07:00
Ai Hoshino
a5908e9f27
fix(lockfile): ensure all bytes of union are initialized before serialization. ( #5957 )
2023-09-23 20:09:45 -07:00
Jonah Snider
67defd95af
[bun install] Add -E as alias of --exact ( #5104 )
...
* [bun install] Add `-E` as alias of `--exact`
* Add test for -E flag
2023-09-20 11:14:55 -07:00
Jarred Sumner
5d09a06100
Fix path used in bunx ( #5785 )
...
* Fix path used in bunx
* Add test
* Use a different package
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-20 01:00:29 -07:00
WingLim
ddb1189b2d
fix(cli): bun pm cache rm command not work ( #4571 )
...
* fix(cli): rm arg is in positionals[1]
* chore(cli): add cache remove test
* chore: remvoe unnecessary join
* chore: run formatter
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-09-19 16:54:54 -07:00
Jarred Sumner
8677ae9fb1
Get artifactory to work ( #5744 )
...
* 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-19 08:01:47 -07:00
Jarred Sumner
cc54b62fac
Encode slashes in package names in the registry manifest request ( #5716 )
...
* 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-18 23:27:02 -07:00
Ai Hoshino
bab9889601
fix(config): support for registry url without trailing slash ( #5662 )
...
* 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-09-18 04:32:02 -07:00
Jarred Sumner
56c471a005
Make bun run --silent omit "error: "..." exited with code 1 ( #5459 )
...
* Make --silent behave as expected
* Make the "tsconfig.json extends" error a debug level
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 04:21:43 -07:00
Jarred Sumner
6e4f746ace
Fix some bugs blocking Turborepo from using bun run ( #5071 )
...
* Clean up some error handling when loading `tsconfig.json`
* [bun run] don't parse tsconfig.json for package.json scripts
* Make this error message better
* Bump
* Don't print build errors twice
* Handle quotes in error messages a little better
* Add a couple tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-12 03:35:29 -07:00
Julian
59edbe645c
bun install correctly join dependency URLs (#4421 )
...
* 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-31 17:36:03 -07:00
Ai Hoshino
9334fbe9b4
fix(install): resolve semver matching with pre-release tags. ( #4412 )
...
Close : #4398
2023-08-30 18:49:09 -07:00
Alex Lam S.L
037463fc48
[install] fix stale root life-cycle script in lockfile ( #4411 )
...
fixes #4319
2023-08-30 17:35:28 -07:00
Ai Hoshino
910daeff27
Fix the crash when importing a module that does not exist. ( #4348 )
...
Close : #4240
2023-08-26 01:14:40 -07:00
Alex Lam S.L
213f5bef9d
[install] fix stale life-cycle scripts from lockfile ( #4307 )
...
fixes #4269
2023-08-24 17:18:51 -07:00
Alex Lam S.L
e115638cba
[install] fix crash when installing package that uses loose semver pre-release ( #4302 )
...
- also fix parsing of `1.2.3pre+build`
fixes #4266
2023-08-24 17:17:48 -07:00
Alex Lam S.L
a32097aa9f
implement bun update ( #4046 )
...
- analogous to `npm update`
- `bun update <name>` to refresh specified package under `package.json`
- `bun update` to refresh all package to latest versions
2023-08-07 20:11:32 -07:00
Alex Lam S.L
b93f304c06
[install] handle bun add of existing peerDependencies correctly ( #4028 )
2023-08-06 17:42:08 -07:00
Alex Lam S.L
190ba6b743
[install] handle workspace:* correctly ( #3994 )
...
- parse as path so it works on unversioned workspaces
- fix missed storage of workspace version
fixes #3985
2023-08-04 18:21:13 -07:00
Alex Lam S.L
ff315a3bf2
[install] store resolved workspace path in lockfile ( #3974 )
...
- resolve cwd consistently
- speed up package diff
- update `test/bun.lockb`
fixes #3685
fixes #3958
2023-08-04 23:28:42 +03:00
Alex Lam S.L
9a2c3dea88
[install] fix stale bun.lockb on workspaces ( #3945 )
...
- handle workspaces under `--production` correctly
- fix `Makefile`
2023-08-03 12:37:29 -07:00
Jarred Sumner
54a2d89bd2
Support bun . to run the entry point ( #3891 )
...
* Support `bun .`
* Fix tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-30 07:54:17 -07:00
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