Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
This will allow users to specify a folder in which to save their
tarballs.
PR-URL: https://github.com/npm/cli/pull/3420
Credit: @wraithgar
Close: #3420
Reviewed-by: @ruyadorno
|
|
* use new npxCache option
|
|
This adds a new `npxCache` flatOption for libnpmexec to look for to put
its `_npx` content. libnpmexec will have to be patched to use that
value, and continue to pass `flatOptions.cache` to pacote et al.
The `flatOptions.cache` is the one that is intended to be passed down
into other modules, as it has the `_cacache` suffix attached. What was
happening before was that `npx` was creating a new alternate cache one
directory up from where everything else was, and also putting the `_npx`
content there. It is possible this is the source of at least some of
our "npx doesn't find the right versions" bugs.
PR-URL: https://github.com/npm/cli/pull/3430
Credit: @wraithgar
Close: #3430
Reviewed-by: @ruyadorno
|
|
`npm ls --prod` is currently not omitting devDependencies for configured
workspaces, this changes it by properly checking for the tweaked
`currentDepth` value instead of root check that was in place.
Fixes: https://github.com/npm/cli/issues/3382
PR-URL: https://github.com/npm/cli/pull/3429
Credit: @ruyadorno
Close: #3429
Reviewed-by: @wraithgar
|
|
* fix: implement cache modes correctly
|
|
The behavior for installing global versions if found has never been part
of npm@7.
PR-URL: https://github.com/npm/cli/pull/3418
Credit: @wraithgar
Close: #3418
Reviewed-by: @lukekarrys
|
|
* fix(inventory) handle old and british forms of 'license'
* fix: removes [_complete] check to apply correct metadata
* ensure node.fsParent is not set to node itself
* fix extraneous deps on load-actual
|
|
npm-package-arg is doing things more properly now so the tests should
reflect that
PR-URL: https://github.com/npm/cli/pull/3426
Credit: @wraithgar
Close: #3426
Reviewed-by: @ruyadorno
|
|
* fix: Make file: URLs (mostly) RFC 8909 compliant
|
|
This enables using the virtual tree instead of node_modules.
PR-URL: https://github.com/npm/cli/pull/3408
Credit: @G-Rath
Close: #3408
Reviewed-by: @isaacs
|
|
* fix(retrieve-tag): pass match in a way git accepts
|
|
PR-URL: https://github.com/npm/cli/pull/3423
Credit: @gurdiga
Close: #3423
Reviewed-by: @ruyadorno
|
|
Also includes a preliminary refactor to consolidate workspace logic now
that every command that supports workspaces has it implemented.
PR-URL: https://github.com/npm/cli/pull/3417
Credit: @wraithgar
Close: #3417
Reviewed-by: @ruyadorno
|
|
No more requiring npm as a singleton. This will now allow us to move
forward with the other refactoring we need to always use the npm object
itself in tests, not a mocked one.
PR-URL: https://github.com/npm/cli/pull/3388
Credit: @wraithgar
Close: #3388
Reviewed-by: @ruyadorno
|
|
- Setup ./packages/* as workspaces
- Moved source from: https://github.com/npm/libnpmdiff to
./packages/libnpmdiff
- Added CI target for workspaces
Relates to: https://github.com/npm/statusboard/issues/362
PR-URL: https://github.com/npm/cli/pull/3386
Credit: @ruyadorno
Close: #3386
Reviewed-by: @wraithgar
|
|
`npm link <pkg>` is meant to be used as a way to link a local package to
an install tree and it's very surprising to users that it may prune
extraneous deps from the project.
This change switches the default behavior to avoid pruning deps when
reifying the dependencies in npm link.
Fixes: https://github.com/npm/cli/issues/2554
PR-URL: https://github.com/npm/cli/pull/3399
Credit: @ruyadorno
Close: #3399
Reviewed-by: @ljharb, @nlf
|
|
|
|
|
|
|
|
Added examples of using `npm init` to bootstrap a new workspace and a
section on how to add/manage dependencies to workspaces.
PR-URL: https://github.com/npm/cli/pull/3392
Credit: @ruyadorno
Close: #3392
Reviewed-by: @wraithgar
|
|
Refactored a bit so that we can more easily change the `top` and
`prefix` params that were being used, and are different under the
workspace context.
PR-URL: https://github.com/npm/cli/pull/3368
Credit: @wraithgar
Close: #3368
Reviewed-by: @ruyadorno
|
|
setCredentialsByURI was clobbering the saving of the scope:registry
config
PR-URL: https://github.com/npm/cli/pull/3383
Credit: @wraithgar
Close: #3383
Reviewed-by: @nlf
|
|
We have a fairly small number of things that we wish to ship in our
package, and they're all nicely arranged in a small number of folders.
Instead of having a sprawling .npmignore file, we should just get with
the recommended best practice, and use a "files" list in package.json.
PR-URL: https://github.com/npm/cli/pull/3365
Credit: @isaacs
Close: #3365
Reviewed-by: @wraithgar
|
|
We bundle our deps, but we don't need to bundle docs, changelogs,
editorconfigs, test coverage reports, .github workflow definitions,
lint configurations, and all the rest, which we never use.
This cuts about 10% off of our publish artifact file size.
```
$ ls -laF npm-7.16.0-*.tgz
-rw-r--r-- 1 isaacs staff 7174497 Jun 3 13:01 npm-7.16.0-release-next.tgz
-rw-r--r-- 1 isaacs staff 6782377 Jun 3 13:00 npm-7.16.0-trim-node-modules.tgz
$ ls -laF npm-7.16.0-*.tar
-rw-r--r-- 1 isaacs staff 19020288 Jun 3 13:01 npm-7.16.0-release-next.tar
-rw-r--r-- 1 isaacs staff 17474048 Jun 3 13:00 npm-7.16.0-trim-node-modules.tar
```
PR-URL: https://github.com/npm/cli/pull/3362
Credit: @isaacs
Close: #3362
Reviewed-by: @nlf
|
|
There is code in all of these places we control so it should be linted
PR-URL: https://github.com/npm/cli/pull/3367
Credit: @wraithgar
Close: #3367
Reviewed-by: @isaacs
|
|
the repo
PR-URL: https://github.com/npm/cli/pull/3364
Credit: @nlf
Close: #3364
Reviewed-by: @wraithgar
|
|
|
|
* fix: add git remote pull
* wip: update workflow
* wip: update to npm/node
* wip: upstream sync
* wip: revert standard pull
* wip: revert to nodejs/node
|
|
|
|
|
|
fix: work around negotiator's lazy loading
|
|
Since loglevel is the first place people usually look to find out why
their scripts have no output when they are in the background, this will
help point them to the config that addresses that situation.
PR-URL: https://github.com/npm/cli/pull/3360
Credit: @wraithgar
Close: #3360
Reviewed-by: @isaacs
|
|
This prevents npm from hanging for an update notification if the server
is slow to respond or the cache file is slow to write.
Failure mode is just that we notify more often than needed, which is not
so bad.
PR-URL: https://github.com/npm/cli/pull/3348
Credit: @isaacs
Close: #3348
Reviewed-by: @wraithgar
|
|
Removes documentation for '--scripts-prepend-node-path' as this was removed in npm@7
PR-URL: https://github.com/npm/cli/pull/3353
Credit: @gimli01
Close: #3353
Reviewed-by: @wraithgar
|
|
make-fetch-happen@9.0.1
* breaking: complete refactor of caching. cache will no longer grow
endlessly with duplicate requests. cache will be used in cases where
it should have been but wasn't before. it will cache multiple
content-types of the same url. it will dedupe existing caches of
their unused entries.
* fix: support url-encoded proxy authorization
* fix: do not lazy-load proxy agents or agentkeepalive. fixes the
intermittent failures to update npm on slower connections.
npm-registry-fetch@11.0.0
* breaking: drop handling of deprecated warning headers
* docs: fix header type for npm-command
* docs: update registry param
* feat: improved logging of cache status
|
|
* fix: trim whitespace from fetchSpec
* fix: handle file: when root directory begins with a special character
|
|
PR-URL: https://github.com/npm/cli/pull/3345
Credit: @isaacs
Close: #3345
Reviewed-by: @wraithgar
|
|
PR-URL: https://github.com/npm/cli/pull/3344
Credit: @gimli01
Close: #3344
Reviewed-by: @darcyclarke
|
|
- Add `./docs` as a workspace
- Reinstate `./docs/package.json` to manage docs deps
- Ignore `docs/content` markdown source folder from published tarball
- Tweaked `make docs` to use `npm run` to run docs build step
- Tweaked "bundle and gitignore" script to ignore symlinks in nm folder
- Removed outdated `package.json` comment
Relates to: https://github.com/npm/statusboard/issues/362
PR-URL: https://github.com/npm/cli/pull/3342
Credit: @ruyadorno
Close: #3342
Reviewed-by: @wraithgar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|