nativescript 8.8.0-alpha.0 → 8.8.0-alpha.1

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.
@@ -73,6 +73,7 @@ class BasePackageManager {
73
73
  yield this.$childProcess.spawnFromEvent(npmExecutable, params, "close", {
74
74
  cwd: opts.cwd,
75
75
  stdio: stdioValue,
76
+ shell: this.$hostInfo.isWindows,
76
77
  });
77
78
  const { isInstallingAllDependencies } = opts;
78
79
  if (isInstallingAllDependencies) {
@@ -137,7 +137,7 @@ class TypingsCommand {
137
137
  const dtsGeneratorPath = path.resolve(this.$projectData.projectDir, "platforms", "android", "build-tools", "dts-generator.jar");
138
138
  if (!this.$fs.exists(dtsGeneratorPath)) {
139
139
  this.$logger.warn("No platforms folder found, preparing project now...");
140
- yield this.$childProcess.spawnFromEvent(this.$hostInfo.isWindows ? "ns.cmd" : "ns", ["prepare", "android"], "exit", { stdio: "inherit" });
140
+ yield this.$childProcess.spawnFromEvent(this.$hostInfo.isWindows ? "ns.cmd" : "ns", ["prepare", "android"], "exit", { stdio: "inherit", shell: this.$hostInfo.isWindows });
141
141
  }
142
142
  const asArray = (input) => {
143
143
  if (!input) {
@@ -152,7 +152,7 @@ class AndroidVirtualDeviceService {
152
152
  ];
153
153
  }
154
154
  if (canExecuteAvdManagerCommand) {
155
- result = yield this.$childProcess.trySpawnFromCloseEvent(this.pathToAvdManagerExecutable, ["list", "avds"]);
155
+ result = yield this.$childProcess.trySpawnFromCloseEvent(this.pathToAvdManagerExecutable, ["list", "avds"], { shell: this.$hostInfo.isWindows });
156
156
  }
157
157
  else if (this.pathToAndroidExecutable &&
158
158
  this.$fs.exists(this.pathToAndroidExecutable)) {
@@ -31,7 +31,7 @@ class ApplicationManagerBase extends events_1.EventEmitter {
31
31
  reinstallApplication(appIdentifier, packageFilePath, buildData) {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const isApplicationInstalled = yield this.isApplicationInstalled(appIdentifier);
34
- if (isApplicationInstalled) {
34
+ if (isApplicationInstalled && (buildData === null || buildData === void 0 ? void 0 : buildData.clean)) {
35
35
  yield this.uninstallApplication(appIdentifier);
36
36
  }
37
37
  yield this.installApplication(packageFilePath, appIdentifier, buildData);
@@ -127,7 +127,8 @@ class ApplicationManagerBase extends events_1.EventEmitter {
127
127
  this.emit("debuggableViewChanged", appIdentifier, view);
128
128
  }
129
129
  });
130
- this.lastAvailableDebuggableAppViews[appIdentifier] = currentlyAvailableViews;
130
+ this.lastAvailableDebuggableAppViews[appIdentifier] =
131
+ currentlyAvailableViews;
131
132
  });
132
133
  });
133
134
  }
@@ -23,7 +23,11 @@ class GradleCommandService {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
24
  const { message, cwd, stdio, spawnOptions } = options;
25
25
  this.$logger.info(message);
26
- const childProcessOptions = { cwd, stdio: stdio || "inherit" };
26
+ const childProcessOptions = {
27
+ cwd,
28
+ stdio: stdio || "inherit",
29
+ shell: this.$hostInfo.isWindows,
30
+ };
27
31
  const gradleExecutable = (_a = options.gradlePath) !== null && _a !== void 0 ? _a : (this.$hostInfo.isWindows ? "gradlew.bat" : "./gradlew");
28
32
  const result = yield this.executeCommandSafe(gradleExecutable, gradleArgs, childProcessOptions, spawnOptions);
29
33
  return result;
@@ -472,6 +472,7 @@ class AndroidPluginBuildService {
472
472
  yield this.$childProcess.spawnFromEvent(gradlew, localArgs, "close", {
473
473
  cwd: pluginBuildSettings.pluginDir,
474
474
  stdio: "inherit",
475
+ shell: this.$hostInfo.isWindows,
475
476
  });
476
477
  }
477
478
  catch (err) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
- "preferGlobal": true,
4
- "version": "8.8.0-alpha.0",
3
+ "main": "./lib/nativescript-cli-lib.js",
4
+ "version": "8.8.0-alpha.1",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -10,7 +10,6 @@
10
10
  "nsc": "./bin/tns",
11
11
  "ns": "./bin/tns"
12
12
  },
13
- "main": "./lib/nativescript-cli-lib.js",
14
13
  "files": [
15
14
  "bin/*",
16
15
  "config",
@@ -117,7 +116,6 @@
117
116
  "xml2js": "0.6.2",
118
117
  "yargs": "17.7.1"
119
118
  },
120
- "analyze": true,
121
119
  "devDependencies": {
122
120
  "@types/archiver": "^5.3.2",
123
121
  "@types/byline": "^4.2.33",
@@ -171,13 +169,6 @@
171
169
  "sinon": "15.0.3",
172
170
  "source-map-support": "0.5.21"
173
171
  },
174
- "license": "Apache-2.0",
175
- "engines": {
176
- "node": ">=10.0.0"
177
- },
178
- "lint-staged": {
179
- "*.ts": "prettier --write"
180
- },
181
172
  "bundleDependencies_comment1": "These dependencies are bundled in the CLI and are not installed from npm to avoid deprecation warnings.",
182
173
  "bundleDependencies_comment2": "Eventually we'll remove them as we replaced their functionality.",
183
174
  "bundleDependencies_comment3": "note: @npmcli/move-file is a transient dep of pacote - we dont use it directly.",
@@ -185,6 +176,9 @@
185
176
  "@npmcli/move-file",
186
177
  "stringify-package"
187
178
  ],
179
+ "optionalDependencies": {
180
+ "fsevents": "*"
181
+ },
188
182
  "overrides": {
189
183
  "jimp": {
190
184
  "xml2js": "0.6.2"
@@ -192,5 +186,13 @@
192
186
  "npm-watch": {
193
187
  "nodemon": "3.0.3"
194
188
  }
189
+ },
190
+ "analyze": true,
191
+ "license": "Apache-2.0",
192
+ "engines": {
193
+ "node": ">=14.0.0"
194
+ },
195
+ "lint-staged": {
196
+ "*.ts": "prettier --write"
195
197
  }
196
198
  }
@@ -1,15 +0,0 @@
1
- # Changers Lorgs!
2
-
3
- ## 1.0
4
-
5
- Full rewrite. Essentially a brand new module.
6
-
7
- - Return a promise instead of taking a callback.
8
- - Use native `fs.mkdir(path, { recursive: true })` when available.
9
- - Drop support for outdated Node.js versions. (Technically still works on
10
- Node.js v8, but only 10 and above are officially supported.)
11
-
12
- ## 0.x
13
-
14
- Original and most widely used recursive directory creation implementation
15
- in JavaScript, dating back to 2010.
@@ -1,65 +0,0 @@
1
- # v3.0
2
-
3
- - Add `--preserve-root` option to executable (default true)
4
- - Drop support for Node.js below version 6
5
-
6
- # v2.7
7
-
8
- - Make `glob` an optional dependency
9
-
10
- # 2.6
11
-
12
- - Retry on EBUSY on non-windows platforms as well
13
- - Make `rimraf.sync` 10000% more reliable on Windows
14
-
15
- # 2.5
16
-
17
- - Handle Windows EPERM when lstat-ing read-only dirs
18
- - Add glob option to pass options to glob
19
-
20
- # 2.4
21
-
22
- - Add EPERM to delay/retry loop
23
- - Add `disableGlob` option
24
-
25
- # 2.3
26
-
27
- - Make maxBusyTries and emfileWait configurable
28
- - Handle weird SunOS unlink-dir issue
29
- - Glob the CLI arg for better Windows support
30
-
31
- # 2.2
32
-
33
- - Handle ENOENT properly on Windows
34
- - Allow overriding fs methods
35
- - Treat EPERM as indicative of non-empty dir
36
- - Remove optional graceful-fs dep
37
- - Consistently return null error instead of undefined on success
38
- - win32: Treat ENOTEMPTY the same as EBUSY
39
- - Add `rimraf` binary
40
-
41
- # 2.1
42
-
43
- - Fix SunOS error code for a non-empty directory
44
- - Try rmdir before readdir
45
- - Treat EISDIR like EPERM
46
- - Remove chmod
47
- - Remove lstat polyfill, node 0.7 is not supported
48
-
49
- # 2.0
50
-
51
- - Fix myGid call to check process.getgid
52
- - Simplify the EBUSY backoff logic.
53
- - Use fs.lstat in node >= 0.7.9
54
- - Remove gently option
55
- - remove fiber implementation
56
- - Delete files that are marked read-only
57
-
58
- # 1.0
59
-
60
- - Allow ENOENT in sync method
61
- - Throw when no callback is provided
62
- - Make opts.gently an absolute path
63
- - use 'stat' if 'lstat' is not available
64
- - Consistent error naming, and rethrow non-ENOENT stat errors
65
- - add fiber implementation
@@ -1,16 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- <a name="1.0.1"></a>
6
- ## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2)
12
-
13
-
14
-
15
- <a name="1.0.0"></a>
16
- # 1.0.0 (2018-07-18)