@bobfrankston/npmglobalize 1.0.162 → 1.0.163
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 +9 -2
- package/package.json +9 -9
package/lib.js
CHANGED
|
@@ -4667,8 +4667,15 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
|
|
|
4667
4667
|
console.log(colors.dim(' --clean-nested-modules: nothing to clean'));
|
|
4668
4668
|
}
|
|
4669
4669
|
}
|
|
4670
|
-
// Create tarball first
|
|
4671
|
-
|
|
4670
|
+
// Create tarball first. Retry once on spurious Ctrl+C: a Ctrl+C
|
|
4671
|
+
// broadcast to the console group (e.g. from another tool sharing the
|
|
4672
|
+
// console) makes cmd.exe print "Terminate batch job (Y/N)?" and kill
|
|
4673
|
+
// npm.cmd. Our process survives, so a retry usually succeeds.
|
|
4674
|
+
let packResult = runCommand('npm', ['pack'], { cwd, silent: true });
|
|
4675
|
+
if (!packResult.success && /Terminate batch job|\^C/.test(packResult.output + packResult.stderr)) {
|
|
4676
|
+
console.error(colors.yellow(' npm pack interrupted by spurious Ctrl+C — retrying once...'));
|
|
4677
|
+
packResult = runCommand('npm', ['pack'], { cwd, silent: true });
|
|
4678
|
+
}
|
|
4672
4679
|
// Restore stashed node_modules now that pack is done — must happen
|
|
4673
4680
|
// before any subsequent install -g symlinks to these dep targets.
|
|
4674
4681
|
if (stashedDepModules.length > 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/npmglobalize",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.163",
|
|
4
4
|
"description": "Transform file: dependencies to npm versions for publishing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"url": "https://github.com/BobFrankston/npmglobalize.git"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@bobfrankston/freezepak": "^0.1.
|
|
35
|
-
"@bobfrankston/importgen": "^0.1.
|
|
34
|
+
"@bobfrankston/freezepak": "^0.1.8",
|
|
35
|
+
"@bobfrankston/importgen": "^0.1.35",
|
|
36
36
|
"@bobfrankston/npmglobalize": "^1.0.153",
|
|
37
|
-
"@bobfrankston/themecolors": "^0.1.
|
|
38
|
-
"@bobfrankston/userconfig": "^1.0.
|
|
37
|
+
"@bobfrankston/themecolors": "^0.1.6",
|
|
38
|
+
"@bobfrankston/userconfig": "^1.0.8",
|
|
39
39
|
"@npmcli/package-json": "^7.0.4",
|
|
40
40
|
"json5": "^2.2.3",
|
|
41
41
|
"libnpmversion": "^8.0.3",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
".transformedSnapshot": {
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@bobfrankston/freezepak": "^0.1.
|
|
65
|
-
"@bobfrankston/importgen": "^0.1.
|
|
64
|
+
"@bobfrankston/freezepak": "^0.1.8",
|
|
65
|
+
"@bobfrankston/importgen": "^0.1.35",
|
|
66
66
|
"@bobfrankston/npmglobalize": "^1.0.153",
|
|
67
|
-
"@bobfrankston/themecolors": "^0.1.
|
|
68
|
-
"@bobfrankston/userconfig": "^1.0.
|
|
67
|
+
"@bobfrankston/themecolors": "^0.1.6",
|
|
68
|
+
"@bobfrankston/userconfig": "^1.0.8",
|
|
69
69
|
"@npmcli/package-json": "^7.0.4",
|
|
70
70
|
"json5": "^2.2.3",
|
|
71
71
|
"libnpmversion": "^8.0.3",
|