aboutsummaryrefslogtreecommitdiff
path: root/test/cli/install (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 5-90/+90
* 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-03Upgrade webkit (#6277)Gravatar Dylan Conway 1-1/+0
* `reportExtraMemoryAllocated` parameters changed * bump webkit * Update Dockerfile * format
2023-10-03Fix bunx command for github package #5974 (#6042)Gravatar axel escalada 1-0/+40
* 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-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-28Add local tarball install #5812 (#6118)Gravatar axel escalada 1-1/+46
* 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-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-25Fix create command with template prefixed with @ char #6007 (#6013)Gravatar axel escalada 1-0/+31
* fix create command with template prefixed with @ char * add typescript test for create command * format test
2023-09-24Correctly fix #5888 (#6000)Gravatar Jarred Sumner 2-2/+7
* 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-23fix(lockfile): ensure all bytes of union are initialized before ↵Gravatar Ai Hoshino 1-1/+64
serialization. (#5957)
2023-09-20[bun install] Add `-E` as alias of `--exact` (#5104)Gravatar Jonah Snider 1-0/+55
* [bun install] Add `-E` as alias of `--exact` * Add test for -E flag
2023-09-20Fix path used in bunx (#5785)Gravatar Jarred Sumner 1-0/+20
* 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-19fix(cli): `bun pm cache rm` command not work (#4571)Gravatar WingLim 1-1/+88
* 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-19Get artifactory to work (#5744)Gravatar Jarred Sumner 2-20/+23
* 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 4-13/+16
* 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-09-15Make `bun run --silent` omit `"error: "..." exited with code 1` (#5459)Gravatar Jarred Sumner 1-24/+66
* 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-12Fix some bugs blocking Turborepo from using `bun run` (#5071)Gravatar Jarred Sumner 1-0/+58
* 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-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 2-11/+156
* 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-26Fix the crash when importing a module that does not exist. (#4348)Gravatar Ai Hoshino 1-0/+22
Close: #4240
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-07implement `bun update` (#4046)Gravatar Alex Lam S.L 1-0/+259
- 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-06[install] handle `bun add` of existing `peerDependencies` correctly (#4028)Gravatar Alex Lam S.L 2-6/+90
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-30Support `bun .` to run the entry point (#3891)Gravatar Jarred Sumner 1-4/+68
* Support `bun .` * Fix tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
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-07-17Fix test with incorrect textGravatar Jarred Sumner 1-3/+3
2023-07-04[install] fix run-time module loading (#3510)Gravatar Alex Lam S.L 1-16/+92
- fix version buffer confusion - improve workaround to handle cached modules fixes #3507
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 2-8/+52
fixes #3430
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 2-79/+97
2023-06-26[bun install] Implement `--exact` flag (#3409)Gravatar Jarred Sumner 1-0/+55
* [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[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-22revamp dotEnv parser (#3347)Gravatar Alex Lam S.L 1-4/+12
- fixes `strings.indexOfAny()` - fixes OOB array access fixes #411 fixes #2823 fixes #3042