@bobfrankston/npmglobalize 1.0.103 → 1.0.104

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.
@@ -38,7 +38,8 @@
38
38
  "Bash(globalize:*)",
39
39
  "Bash(wztest:*)",
40
40
  "Bash(xargs grep:*)",
41
- "Bash(cmd.exe:*)"
41
+ "Bash(cmd.exe:*)",
42
+ "Bash(cd y:/dev/utils/npmglobalize && npx npmglobalize)"
42
43
  ]
43
44
  }
44
45
  }
package/lib.js CHANGED
@@ -3159,8 +3159,8 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
3159
3159
  return false;
3160
3160
  }
3161
3161
  // Determine what was published
3162
- const finalAccess = currentAccess || (isScoped ? 'restricted' : 'public');
3163
- const accessLabel = finalAccess === 'restricted' ? 'PRIVATE' : 'PUBLIC';
3162
+ const finalAccess = effectiveNpmVisibility || currentAccess || (isScoped ? 'restricted' : 'public');
3163
+ const accessLabel = (finalAccess === 'restricted' || finalAccess === 'private') ? 'PRIVATE' : 'PUBLIC';
3164
3164
  console.log(colors.green(`✓ Published to npm as ${accessLabel}`));
3165
3165
  }
3166
3166
  else {
@@ -3273,8 +3273,8 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
3273
3273
  console.log(colors.green('✓ Release Summary'));
3274
3274
  console.log(colors.green('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));
3275
3275
  const finalPkg = readPackageJson(cwd);
3276
- const finalAccess = currentAccess || (isScoped ? 'restricted' : 'public');
3277
- const accessLabel = finalAccess === 'restricted' ? 'PRIVATE' : 'PUBLIC';
3276
+ const finalAccess = effectiveNpmVisibility || currentAccess || (isScoped ? 'restricted' : 'public');
3277
+ const accessLabel = (finalAccess === 'restricted' || finalAccess === 'private') ? 'PRIVATE' : 'PUBLIC';
3278
3278
  console.log(` Package: ${colors.green(finalPkg.name)}`);
3279
3279
  console.log(` Version: ${colors.green('v' + finalPkg.version)}`);
3280
3280
  console.log(` Published: ${colors.green('✓')} (${accessLabel})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",