Dylan Conway
7dbe01b822
fix bun link in workspace package ( #6631 )
...
* link workspace package
* add test
* more complete test
2023-10-22 19:28:52 -07:00
Jarred Sumner
756eee087a
Sort list of dependencies and fix test ( #6616 )
...
* fix findBestMatch so it finds the best match and not the first match
* update complex-workspaces to include lines-and-columns ^1.1.6
* PR feedback
* PR feedback
* This test doesn't reproduce the original issue
* Support pre release versions the same way
* Add a test that reproduces the original issue
* Sort the list of package versions before serializing to disk
* Remove test that didnt reproduce it
* Fix the count
* Fix 0 and 1 and sorting order
* Fix assertions and ordering
---------
Co-authored-by: Dylan Greene <dgreene@medallia.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-20 03:55:40 -07:00
Dylan Greene
184528e4eb
fix findBestMatch so it finds the best match and not the first match ( #6611 )
...
* fix findBestMatch so it finds the best match and not the first match
* update complex-workspaces to include lines-and-columns ^1.1.6
* PR feedback
* PR feedback
2023-10-20 02:18:37 -07:00
Liz
f6b694ee2c
fix(install): dont replace git urls when already present ( #6607 )
...
* fix: dont replace git urls when already present
* fix: set request e_string
* test: add test for git url duplication
2023-10-19 21:28:59 -07:00
Dylan Conway
bb623196a3
fix install add ( #6609 )
...
* fix add package
* update test
* initWithCLI once
* skip searching for workspaces if package json was created
2023-10-19 19:17:38 -07:00
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
dave caruso
98d19fa624
fix(runtime): make some things more stable (partial jsc debug build) ( #5881 )
...
* make our debug assertions work
* install bun-webkit-debug
* more progress
* ok
* progress...
* more debug build stuff
* ok
* a
* asdfghjkl
* fix(runtime): fix bad assertion failure in JSBufferList
* ok
* stuff
* upgrade webkit
* Update src/bun.js/bindings/JSDOMWrapperCache.h
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* fix message for colin's changes
* okay
* fix cjs prototype
* implement mainModule
* i think this fixes it all
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-16 21:22:43 -07:00
Igor Shapiro
01e04e3341
fix(test): when tests run with --only the nested describe blocks `.on… ( #5616 )
2023-10-16 16:33:02 -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
Ashcon Partovi
9308e1bf09
Support bun run --if-present ( #6248 )
...
* Support --if-present
Closes #5670
* More robust tests, handle more cases
2023-10-03 17:39:45 -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
Ai Hoshino
1445775d64
fix(runtime): exclude unevaluated module in require.cache ( #5903 )
...
Close : #5898
2023-09-22 18:40:06 -07:00
dave caruso
25e69c71e7
Implement module.parent ( #5889 )
...
* Make module.parent work
* yay
* oops
* yay
2023-09-21 22:09:55 -07:00
Colin McDonnell
b218c40a5d
Hide env elapsed time when loglevel=info ( #5882 )
...
* Hide env elapsed time when loglevel=info
* Updates
* Update
* Fix test
2023-09-21 20:07:25 -07:00
dave caruso
b7951511a3
fix(run): interpret extensionless files as typescript ( #5711 )
...
* test
* gadsgsagdsa
* add better err msg
* r
* oops
* ok
2023-09-20 19:48:46 -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
Julian
1b949d4f5a
bun run fix missing script error on empty file (#5025 )
...
* Fix empty file not found bug
* Add tests
* fix test
---------
Co-authored-by: Jeremy Funk <jeremy@kombo.dev >
Co-authored-by: dave caruso <me@paperdave.net >
2023-09-18 20:14:32 -07:00
Liz
0647216687
fix: provide empty string to 0 length process environment variables ( #5679 )
...
* fix: provide empty string to len 0 process env vars
For process loaded env vars, its a bug to give them the literal value '""'
if the provided length is 0.
* fix: add test and remove unneeded branch
Removes the redundant branch for empty env vars and adds a test for the
process specific case.
* fix: remove empty_string_value
Removes the constant in favor of using the empty values or passing the
literal "".
* style: format env.test.ts
2023-09-18 18:14:29 -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
dave caruso
4f8edb825f
fix(runtime): require cache should not include unevaluated ESM modules. ( #5233 )
2023-09-13 16:57:59 -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