@bobfrankston/npmglobalize 1.0.144 → 1.0.146
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/lib.js +22 -5
- package/package.json +9 -9
package/lib.js
CHANGED
|
@@ -3561,8 +3561,16 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
3561
3561
|
console.log(colors.green(`✓ Installed globally: ${pkgName}@${pkgVersion}`));
|
|
3562
3562
|
}
|
|
3563
3563
|
else {
|
|
3564
|
-
|
|
3565
|
-
|
|
3564
|
+
// Registry install failed — check if it's an auth issue
|
|
3565
|
+
const auth = checkNpmAuth();
|
|
3566
|
+
if (!auth.authenticated) {
|
|
3567
|
+
console.error(colors.red(` Registry install failed — npm auth problem: ${auth.error || 'unknown'}`));
|
|
3568
|
+
console.error(colors.yellow(` Run 'npm login' to fix, then: npm install -g ${pkgName}@${pkgVersion}`));
|
|
3569
|
+
}
|
|
3570
|
+
else {
|
|
3571
|
+
console.error(colors.red(`✗ Global install failed`));
|
|
3572
|
+
console.error(colors.yellow(` Try running manually: npm install -g ${pkgName}@${pkgVersion}`));
|
|
3573
|
+
}
|
|
3566
3574
|
}
|
|
3567
3575
|
}
|
|
3568
3576
|
else {
|
|
@@ -4266,9 +4274,18 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
4266
4274
|
console.log(colors.green(`✓ Installed globally: ${pkgName}@${pkgVersion}`));
|
|
4267
4275
|
}
|
|
4268
4276
|
else {
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4277
|
+
// Registry install failed — check if it's an auth issue
|
|
4278
|
+
const auth = checkNpmAuth();
|
|
4279
|
+
if (!auth.authenticated) {
|
|
4280
|
+
console.error(colors.red(`✗ Global install failed — npm auth problem: ${auth.error || 'unknown'}`));
|
|
4281
|
+
console.error(colors.yellow(` Run 'npm login' to fix, then: npm install -g ${pkgName}@${pkgVersion}`));
|
|
4282
|
+
recordBuildIssue(pkgName, 'warning', `Global install failed (${auth.error || 'auth issue'}) — run 'npm login'`);
|
|
4283
|
+
}
|
|
4284
|
+
else {
|
|
4285
|
+
console.error(colors.red(`✗ Global install failed`));
|
|
4286
|
+
console.error(colors.yellow(` Try running manually: npm install -g ${pkgName}@${pkgVersion}`));
|
|
4287
|
+
recordBuildIssue(pkgName, 'warning', 'Global install failed');
|
|
4288
|
+
}
|
|
4272
4289
|
}
|
|
4273
4290
|
}
|
|
4274
4291
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/npmglobalize",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.146",
|
|
4
4
|
"description": "Transform file: dependencies to npm versions for publishing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"url": "https://github.com/BobFrankston/npmglobalize.git"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@bobfrankston/freezepak": "^0.1.
|
|
35
|
-
"@bobfrankston/importgen": "^0.1.
|
|
36
|
-
"@bobfrankston/themecolors": "^0.1.
|
|
37
|
-
"@bobfrankston/userconfig": "^1.0.
|
|
34
|
+
"@bobfrankston/freezepak": "^0.1.7",
|
|
35
|
+
"@bobfrankston/importgen": "^0.1.33",
|
|
36
|
+
"@bobfrankston/themecolors": "^0.1.5",
|
|
37
|
+
"@bobfrankston/userconfig": "^1.0.7",
|
|
38
38
|
"@npmcli/package-json": "^7.0.4",
|
|
39
39
|
"json5": "^2.2.3",
|
|
40
40
|
"libnpmversion": "^8.0.3",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
},
|
|
60
60
|
".transformedSnapshot": {
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@bobfrankston/freezepak": "^0.1.
|
|
63
|
-
"@bobfrankston/importgen": "^0.1.
|
|
64
|
-
"@bobfrankston/themecolors": "^0.1.
|
|
65
|
-
"@bobfrankston/userconfig": "^1.0.
|
|
62
|
+
"@bobfrankston/freezepak": "^0.1.7",
|
|
63
|
+
"@bobfrankston/importgen": "^0.1.33",
|
|
64
|
+
"@bobfrankston/themecolors": "^0.1.5",
|
|
65
|
+
"@bobfrankston/userconfig": "^1.0.7",
|
|
66
66
|
"@npmcli/package-json": "^7.0.4",
|
|
67
67
|
"json5": "^2.2.3",
|
|
68
68
|
"libnpmversion": "^8.0.3",
|