enhanced-publish 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -15,6 +15,9 @@ function getPackageInfo() {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @param {{ name: string, version: string }} pkg
|
|
20
|
+
*/
|
|
18
21
|
async function existsPackageInRegistry(pkg) {
|
|
19
22
|
return await pacote.packument(pkg.name).then(
|
|
20
23
|
(packument) => {
|
|
@@ -40,7 +43,7 @@ async function run() {
|
|
|
40
43
|
|
|
41
44
|
const pkg = getPackageInfo()
|
|
42
45
|
|
|
43
|
-
const semverWithPreidRegex = /^\d+\.\d+\.\d+(?:-([a-
|
|
46
|
+
const semverWithPreidRegex = /^\d+\.\d+\.\d+(?:-([a-z0-9]+)(?:\.\d+)+)?$/
|
|
44
47
|
const semverMatches = semverWithPreidRegex.exec(pkg.version)
|
|
45
48
|
|
|
46
49
|
if (process.argv.includes("--only-prerelease")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enhanced-publish",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Npm publish command with lerna's from-package publish behaviour.",
|
|
5
5
|
"repository": "github:js-soft/enhanced-npm-publish",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"index.js"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"pacote": "^21.0.
|
|
13
|
+
"pacote": "^21.0.3"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|