-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(publish): accept publishConfig.tag to override highes semver check
Setting `tag` in `publishConfig` constitutes a "non default" scenario.
- Loading branch information
Showing
3 changed files
with
45 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
*/ | ||
'use strict' | ||
exports[`test/lib/commands/publish.js TAP _auth config default registry > new package version 1`] = ` | ||
+ [email protected] | ||
+ @npmcli/[email protected] | ||
` | ||
|
||
exports[`test/lib/commands/publish.js TAP bare _auth and registry config > new package version 1`] = ` | ||
|
@@ -15,15 +15,15 @@ exports[`test/lib/commands/publish.js TAP bare _auth and registry config > new p | |
|
||
exports[`test/lib/commands/publish.js TAP dry-run > must match snapshot 1`] = ` | ||
Array [ | ||
"package: [email protected]", | ||
"package: @npmcli/[email protected]", | ||
"Tarball Contents", | ||
"87B package.json", | ||
"95B package.json", | ||
"Tarball Details", | ||
"name: test-package", | ||
"name: @npmcli/test-package", | ||
"version: 1.0.0", | ||
"filename: test-package-1.0.0.tgz", | ||
"filename: npmcli-test-package-1.0.0.tgz", | ||
"package size: {size}", | ||
"unpacked size: 87 B", | ||
"unpacked size: 95 B", | ||
"shasum: {sha}", | ||
"integrity: {integrity} | ||
"total files: 1", | ||
|
@@ -76,7 +76,7 @@ exports[`test/lib/commands/publish.js TAP has token auth for scope configured re | |
` | ||
|
||
exports[`test/lib/commands/publish.js TAP ignore-scripts > new package version 1`] = ` | ||
+ [email protected] | ||
+ @npmcli/[email protected] | ||
` | ||
|
||
exports[`test/lib/commands/publish.js TAP json > must match snapshot 1`] = ` | ||
|
@@ -87,14 +87,14 @@ Array [ | |
|
||
exports[`test/lib/commands/publish.js TAP json > new package json 1`] = ` | ||
{ | ||
"id": "[email protected]", | ||
"name": "test-package", | ||
"id": "@npmcli/[email protected]", | ||
"name": "@npmcli/test-package", | ||
"version": "1.0.0", | ||
"size": "{size}", | ||
"unpackedSize": 87, | ||
"unpackedSize": 95, | ||
"shasum": "{sha}", | ||
"integrity": "{integrity}", | ||
"filename": "test-package-1.0.0.tgz", | ||
"filename": "npmcli-test-package-1.0.0.tgz", | ||
"files": [ | ||
{ | ||
"path": "package.json", | ||
|
@@ -249,7 +249,7 @@ Object { | |
` | ||
|
||
exports[`test/lib/commands/publish.js TAP no auth dry-run > must match snapshot 1`] = ` | ||
+ [email protected] | ||
+ @npmcli/[email protected] | ||
` | ||
|
||
exports[`test/lib/commands/publish.js TAP no auth dry-run > warns about auth being needed 1`] = ` | ||
|
@@ -259,7 +259,7 @@ Array [ | |
` | ||
|
||
exports[`test/lib/commands/publish.js TAP prioritize CLI flags over publishConfig > new package version 1`] = ` | ||
+ [email protected] | ||
+ @npmcli/[email protected] | ||
` | ||
|
||
exports[`test/lib/commands/publish.js TAP public access > must match snapshot 1`] = ` | ||
|
@@ -285,7 +285,7 @@ exports[`test/lib/commands/publish.js TAP public access > new package version 1` | |
` | ||
|
||
exports[`test/lib/commands/publish.js TAP re-loads publishConfig.registry if added during script process > new package version 1`] = ` | ||
+ [email protected] | ||
+ @npmcli/[email protected] | ||
` | ||
|
||
exports[`test/lib/commands/publish.js TAP respects publishConfig.registry, runs appropriate scripts > new package version 1`] = ` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters