nativescript 9.0.0-alpha.11 → 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.
@@ -8,7 +8,7 @@
8
8
  "karma-chai": "0.1.0",
9
9
  "karma-jasmine": "4.0.2",
10
10
  "karma-qunit": "4.2.1",
11
- "@types/karma-chai": "0.1.7",
11
+ "@types/karma-chai": "0.1.8",
12
12
  "@types/mocha": "10.0.10",
13
13
  "@types/jasmine": "5.1.9",
14
14
  "@types/qunit": "2.19.13",
@@ -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 {
@@ -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");
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.11",
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": {