@bobfrankston/npmglobalize 1.0.68 → 1.0.70

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.
Files changed (2) hide show
  1. package/lib.js +7 -2
  2. package/package.json +2 -2
package/lib.js CHANGED
@@ -39,7 +39,7 @@ function removeNulFiles(dir, visited = new Set()) {
39
39
  const entries = fs.readdirSync(dir, { withFileTypes: true });
40
40
  for (const entry of entries) {
41
41
  const full = path.join(dir, entry.name);
42
- if (entry.isDirectory() && !entry.isSymbolicLink()) {
42
+ if (entry.isDirectory() && !entry.isSymbolicLink() && entry.name !== 'node_modules') {
43
43
  count += removeNulFiles(full, visited);
44
44
  }
45
45
  else if (entry.name === 'nul') {
@@ -1647,7 +1647,12 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
1647
1647
  return false;
1648
1648
  }
1649
1649
  console.log(`Will publish '${pkg.name}' to PUBLIC npm registry.`);
1650
- console.log(colors.yellow(` To use, run: npm install ${pkg.name}`));
1650
+ if (pkg.bin) {
1651
+ console.log(colors.yellow(` CLI tool - to install globally: npm install -g ${pkg.name}`));
1652
+ }
1653
+ else {
1654
+ console.log(colors.yellow(` Library - to use in projects: npm install ${pkg.name}`));
1655
+ }
1651
1656
  }
1652
1657
  else {
1653
1658
  // No explicit setting - preserve current state or use defaults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "author": "Bob Frankston",
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@types/node": "^25.0.9",
25
+ "@types/node": "^25.2.1",
26
26
  "@types/npm-package-arg": "^6.1.4",
27
27
  "@types/pacote": "^11.1.8"
28
28
  },