@bobfrankston/npmglobalize 1.0.235 → 1.0.236
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 +11 -2
- package/package.json +1 -1
package/lib.js
CHANGED
|
@@ -7993,12 +7993,17 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
7993
7993
|
if (currentAccess === 'public') {
|
|
7994
7994
|
console.log(colors.yellow(`Package '${pkg.name}' is currently PUBLIC on npm. Converting to private...`));
|
|
7995
7995
|
if (!dryRun) {
|
|
7996
|
-
|
|
7996
|
+
// 2026-09-23 01:15 EDT — Claude Code (Fable 5.1): silent:true so npm's output is
|
|
7997
|
+
// CAPTURED (stdio 'inherit' captures nothing, and v1.0.235's 403 detection never
|
|
7998
|
+
// fired on httppoly). The captured text is echoed below on failure, so nothing is lost.
|
|
7999
|
+
const accessResult = await runCommandAsync('npm', ['access', 'set', 'status=restricted', pkg.name], { cwd, silent: true });
|
|
7997
8000
|
if (accessResult.success) {
|
|
7998
8001
|
console.log(colors.green(`✓ Changed ${pkg.name} to PRIVATE on npm`));
|
|
7999
8002
|
currentAccess = 'restricted';
|
|
8000
8003
|
}
|
|
8001
8004
|
else {
|
|
8005
|
+
if (accessResult.stderr.trim())
|
|
8006
|
+
console.error(colors.dim(accessResult.stderr.trim()));
|
|
8002
8007
|
console.error(colors.red(explainAccessChangeFailure(pkg.name, 'restricted', accessResult)));
|
|
8003
8008
|
if (!force)
|
|
8004
8009
|
return false;
|
|
@@ -8016,12 +8021,16 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
8016
8021
|
if (currentAccess === 'restricted') {
|
|
8017
8022
|
console.log(colors.yellow(`Package '${pkg.name}' is currently PRIVATE on npm. Converting to public...`));
|
|
8018
8023
|
if (!dryRun) {
|
|
8019
|
-
|
|
8024
|
+
// 2026-09-23 01:15 EDT — Claude Code (Fable 5.1): silent:true to capture npm's
|
|
8025
|
+
// output for the 403 detection; echoed on failure. Same as the restricted branch.
|
|
8026
|
+
const accessResult = await runCommandAsync('npm', ['access', 'set', 'status=public', pkg.name], { cwd, silent: true });
|
|
8020
8027
|
if (accessResult.success) {
|
|
8021
8028
|
console.log(colors.green(`✓ Changed ${pkg.name} to PUBLIC on npm`));
|
|
8022
8029
|
currentAccess = 'public';
|
|
8023
8030
|
}
|
|
8024
8031
|
else {
|
|
8032
|
+
if (accessResult.stderr.trim())
|
|
8033
|
+
console.error(colors.dim(accessResult.stderr.trim()));
|
|
8025
8034
|
console.error(colors.red(explainAccessChangeFailure(pkg.name, 'public', accessResult)));
|
|
8026
8035
|
if (!force)
|
|
8027
8036
|
return false;
|