nativescript 9.0.0-alpha.10 → 9.0.0-alpha.12
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/commands/config.js
CHANGED
|
@@ -75,7 +75,7 @@ class ConfigSetCommand {
|
|
|
75
75
|
const convertedValue = this.getConvertedValue(value);
|
|
76
76
|
const existingKey = current !== undefined;
|
|
77
77
|
const keyDisplay = color_1.color.green(key);
|
|
78
|
-
const currentDisplay = color_1.color.yellow(current);
|
|
78
|
+
const currentDisplay = current ? color_1.color.yellow(current) : "";
|
|
79
79
|
const updatedDisplay = color_1.color.cyan(convertedValue);
|
|
80
80
|
this.$logger.info(`${existingKey ? "Updating" : "Setting"} ${keyDisplay}${existingKey ? ` from ${currentDisplay} ` : " "}to ${updatedDisplay}`);
|
|
81
81
|
try {
|
package/lib/nativescript-cli.js
CHANGED
|
@@ -5,6 +5,34 @@ require("./bootstrap");
|
|
|
5
5
|
const shelljs = require("shelljs");
|
|
6
6
|
shelljs.config.silent = true;
|
|
7
7
|
shelljs.config.fatal = true;
|
|
8
|
+
if (process.platform === "win32") {
|
|
9
|
+
const realcp = shelljs.cp;
|
|
10
|
+
shelljs.cp = (...args) => {
|
|
11
|
+
if (args.length === 3) {
|
|
12
|
+
args[1] = replaceDashes(args[1]);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
args[0] = replaceDashes(args[0]);
|
|
16
|
+
}
|
|
17
|
+
if (args.length == 2) {
|
|
18
|
+
realcp(args[0], args[1]);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
realcp(args[0], args[1], args[2]);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function replaceDashes(values) {
|
|
25
|
+
if (Array.isArray(values)) {
|
|
26
|
+
for (let i = 0; i < values.length; ++i) {
|
|
27
|
+
values[i] = replaceDashes(values[i]);
|
|
28
|
+
}
|
|
29
|
+
return values;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return values.replace(/\\/g, "/");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
8
36
|
const errors_1 = require("./common/errors");
|
|
9
37
|
const helpers_1 = require("./common/helpers");
|
|
10
38
|
const yok_1 = require("./common/yok");
|
|
@@ -284,7 +284,7 @@ class BundlerCompilerService extends events_1.EventEmitter {
|
|
|
284
284
|
const cliArgs = await this.buildEnvCommandLineParams(envData, platformData, projectData, prepareData);
|
|
285
285
|
const envParams = isVite
|
|
286
286
|
? [
|
|
287
|
-
`--mode=${
|
|
287
|
+
`--mode=${prepareData.release ? "production" : "development"}`,
|
|
288
288
|
`--watch`,
|
|
289
289
|
"--",
|
|
290
290
|
...cliArgs,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"main": "./lib/nativescript-cli-lib.js",
|
|
4
|
-
"version": "9.0.0-alpha.
|
|
4
|
+
"version": "9.0.0-alpha.12",
|
|
5
5
|
"author": "NativeScript <oss@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|