@bobfrankston/npmglobalize 1.0.69 → 1.0.71

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.
@@ -11,7 +11,8 @@
11
11
  "Bash(cmd /c \"del \\\\?\\\\Y:\\\\dev\\\\utils\\\\npmglobalize\\\\nul\")",
12
12
  "Bash(dir /T:W \"y:\\\\dev\\\\utils\\\\npmglobalize\\\\lib.*\")",
13
13
  "Bash(ls:*)",
14
- "Bash(dir:*)"
14
+ "Bash(dir:*)",
15
+ "Bash(findstr:*)"
15
16
  ]
16
17
  }
17
18
  }
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') {
@@ -1458,8 +1458,15 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
1458
1458
  return false;
1459
1459
  }
1460
1460
  }
1461
- else if (init && !gitStatus.hasRemote) {
1462
- // Git repo exists but no remote - create GitHub repo
1461
+ else if (!gitStatus.hasRemote) {
1462
+ // Git repo exists but no remote - need to create GitHub repo
1463
+ if (!init) {
1464
+ const ok = await confirm('No git remote configured. Create GitHub repository?', true);
1465
+ if (!ok) {
1466
+ console.log('Aborted. Run with --init to set up GitHub repository.');
1467
+ return false;
1468
+ }
1469
+ }
1463
1470
  const success = await initGit(cwd, gitVisibility, dryRun);
1464
1471
  if (!success)
1465
1472
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
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
  },