@caelis/caelis 0.34.0 → 0.36.0
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/update-handoff.js +6 -1
- package/package.json +7 -7
package/lib/update-handoff.js
CHANGED
|
@@ -156,14 +156,19 @@ function npmInstallInvocation(
|
|
|
156
156
|
if (!commandLine) {
|
|
157
157
|
throw new Error('missing Windows npm command line');
|
|
158
158
|
}
|
|
159
|
+
const utf8CommandLine =
|
|
160
|
+
`chcp 65001 >nul 2>&1 & ${commandLine}`;
|
|
159
161
|
return {
|
|
160
162
|
command: env.ComSpec || 'cmd.exe',
|
|
161
|
-
args: ['/d', '/s', '/c',
|
|
163
|
+
args: ['/d', '/s', '/c', utf8CommandLine],
|
|
162
164
|
options: {
|
|
163
165
|
env,
|
|
164
166
|
// Go has already encoded this as one cmd.exe command line. Node's
|
|
165
167
|
// normal Windows argv quoting would add backslashes before its
|
|
166
168
|
// embedded quotes, making cmd.exe look for a literal \"npm.cmd\".
|
|
169
|
+
// Switch cmd.exe to UTF-8 before invoking npm so native diagnostics
|
|
170
|
+
// use the same encoding as npm's Node process. Use "&" so a system
|
|
171
|
+
// without code page 65001 still attempts the prepared update command.
|
|
167
172
|
windowsVerbatimArguments: true,
|
|
168
173
|
},
|
|
169
174
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelis/caelis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "caelis CLI distributed via npm",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"publish-release": "node ./scripts/publish-release.mjs"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@caelis/caelis-darwin-arm64": "0.
|
|
41
|
-
"@caelis/caelis-darwin-x64": "0.
|
|
42
|
-
"@caelis/caelis-linux-arm64": "0.
|
|
43
|
-
"@caelis/caelis-linux-x64": "0.
|
|
44
|
-
"@caelis/caelis-windows-arm64": "0.
|
|
45
|
-
"@caelis/caelis-windows-x64": "0.
|
|
40
|
+
"@caelis/caelis-darwin-arm64": "0.36.0",
|
|
41
|
+
"@caelis/caelis-darwin-x64": "0.36.0",
|
|
42
|
+
"@caelis/caelis-linux-arm64": "0.36.0",
|
|
43
|
+
"@caelis/caelis-linux-x64": "0.36.0",
|
|
44
|
+
"@caelis/caelis-windows-arm64": "0.36.0",
|
|
45
|
+
"@caelis/caelis-windows-x64": "0.36.0"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public",
|