@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.
- package/.claude/settings.local.json +2 -1
- package/lib.js +10 -3
- 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') {
|
|
@@ -1458,8 +1458,15 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
1458
1458
|
return false;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
else if (
|
|
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.
|
|
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.
|
|
25
|
+
"@types/node": "^25.2.1",
|
|
26
26
|
"@types/npm-package-arg": "^6.1.4",
|
|
27
27
|
"@types/pacote": "^11.1.8"
|
|
28
28
|
},
|