@nx-devkit/prepare-for-release 0.1.10 → 0.1.12
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.
|
@@ -222,7 +222,7 @@ function readNpmAuthToken(registry, cwd) {
|
|
|
222
222
|
const url = new URL(registry);
|
|
223
223
|
const registryKey = `//${url.host}${url.pathname.replace(/\/+$/, "")}`;
|
|
224
224
|
const keyRe = new RegExp(`${registryKey.replace(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`)}/:_authToken=(\\S+)`);
|
|
225
|
-
const candidates = [join(cwd, ".npmrc"), join(
|
|
225
|
+
const home = process.env.HOME || homedir(), candidates = [join(cwd, ".npmrc"), join(home, ".npmrc")];
|
|
226
226
|
for (const rcPath of candidates) {
|
|
227
227
|
let text;
|
|
228
228
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-devkit/prepare-for-release",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Nx plugin that bootstraps npm publishing: 0.0.0 placeholder releases for unpublished packages plus OIDC trusted-publishing setup.",
|
|
6
6
|
"keywords": [
|