pxnpm 6.1.8 → 6.1.10
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/bin/pxnpm.cjs +22 -0
- package/dist/pxnpm.cjs +1 -1
- package/dist/pxnpmrc +0 -1
- package/package.json +1 -1
package/bin/pxnpm.cjs
CHANGED
|
@@ -2,12 +2,34 @@
|
|
|
2
2
|
const rawArgs = process.argv && process.argv.slice(2);
|
|
3
3
|
const rawAction = rawArgs && rawArgs[0];
|
|
4
4
|
const isPublish = rawAction === "login" || rawAction === "publish";
|
|
5
|
+
const isUpdate = rawAction === "update";
|
|
5
6
|
|
|
6
7
|
if (isPublish) {
|
|
7
8
|
process.argv.push('--registry')
|
|
8
9
|
process.argv.push('https://registry-pxnpm.rdc.q7b.site:20023')
|
|
9
10
|
}
|
|
10
11
|
|
|
12
|
+
if (isUpdate) {
|
|
13
|
+
const rawPack = rawArgs && rawArgs[1];
|
|
14
|
+
if (rawPack === "ark") {
|
|
15
|
+
const rawVersion = rawArgs && rawArgs[2];
|
|
16
|
+
|
|
17
|
+
if (!rawVersion) {
|
|
18
|
+
console.error(`ERROR: enter the ark version to be updated, for example 'pxnpm update ark 1.0.0'`)
|
|
19
|
+
process.exit(1)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (process.argv.length !== 5) {
|
|
23
|
+
console.error(`ERROR: The command format is incorrect, for example 'pxnpm update ark 1.0.0'`)
|
|
24
|
+
process.exit(1)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
process.argv[3] = `arkc@${rawVersion}`
|
|
28
|
+
process.argv[4] = `ark-plus@${rawVersion}`
|
|
29
|
+
process.argv[5] = `-r`
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
11
33
|
const [major, minor] = process.version.slice(1).split('.')
|
|
12
34
|
const COMPATIBILITY_PAGE = `Visit https://r.pxnpm.io/comp to see the list of past pxnpm versions with respective Node.js version support.`
|
|
13
35
|
|
package/dist/pxnpm.cjs
CHANGED
|
@@ -8149,7 +8149,7 @@ var require_defaults = __commonJS({
|
|
|
8149
8149
|
"package-lock": true,
|
|
8150
8150
|
"package-lock-only": false,
|
|
8151
8151
|
parseable: false,
|
|
8152
|
-
"prefer-offline":
|
|
8152
|
+
"prefer-offline": true,
|
|
8153
8153
|
"prefer-online": false,
|
|
8154
8154
|
prefix: globalPrefix,
|
|
8155
8155
|
production: process.env.NODE_ENV === "production",
|
package/dist/pxnpmrc
CHANGED