nativescript 8.1.5 → 8.2.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/config/test-deps-versions-generated.json +1 -1
- package/lib/android-tools-info.js +2 -2
- package/lib/base-package-manager.js +3 -2
- package/lib/commands/appstore-list.js +1 -1
- package/lib/commands/build.js +1 -1
- package/lib/commands/clean.js +7 -3
- package/lib/commands/create-project.js +2 -2
- package/lib/commands/debug.js +3 -3
- package/lib/commands/deploy.js +1 -1
- package/lib/commands/fonts.js +1 -1
- package/lib/commands/generate.js +1 -1
- package/lib/commands/plugin/build-plugin.js +2 -0
- package/lib/commands/plugin/create-plugin.js +4 -4
- package/lib/commands/plugin/list-plugins.js +2 -2
- package/lib/commands/post-install.js +1 -1
- package/lib/commands/run.js +3 -3
- package/lib/commands/test-init.js +1 -1
- package/lib/commands/test.js +2 -1
- package/lib/commands/typings.js +35 -27
- package/lib/common/commands/device/list-devices.js +18 -7
- package/lib/common/commands/preuninstall.js +2 -2
- package/lib/common/commands/proxy/proxy-set.js +6 -6
- package/lib/common/dispatchers.js +1 -1
- package/lib/common/errors.js +2 -2
- package/lib/common/file-system.js +17 -17
- package/lib/common/helpers.js +6 -5
- package/lib/common/host-info.js +1 -1
- package/lib/common/http-client.js +1 -1
- package/lib/common/logger/layouts/cli-layout.js +1 -1
- package/lib/common/logger/logger.js +1 -1
- package/lib/common/mobile/android/android-application-manager.js +6 -6
- package/lib/common/mobile/android/android-debug-bridge.js +4 -4
- package/lib/common/mobile/android/android-device-file-system.js +3 -3
- package/lib/common/mobile/android/android-device-hash-service.js +4 -4
- package/lib/common/mobile/android/android-device.js +1 -1
- package/lib/common/mobile/android/android-emulator-services.js +6 -6
- package/lib/common/mobile/android/android-virtual-device-service.js +7 -7
- package/lib/common/mobile/android/genymotion/genymotion-service.js +3 -3
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +2 -2
- package/lib/common/mobile/device-log-provider-base.js +1 -1
- package/lib/common/mobile/ios/device/ios-application-manager.js +2 -2
- package/lib/common/mobile/ios/device/ios-device-operations.js +2 -2
- package/lib/common/mobile/ios/device/ios-device.js +1 -1
- package/lib/common/mobile/ios/ios-device-base.js +1 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +3 -3
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +1 -1
- package/lib/common/mobile/mobile-core/android-process-service.js +1 -1
- package/lib/common/mobile/mobile-core/devices-service.js +22 -20
- package/lib/common/services/auto-completion-service.js +3 -3
- package/lib/common/services/hooks-service.js +2 -2
- package/lib/common/services/json-file-settings-service.js +1 -1
- package/lib/common/services/lock-service.js +2 -2
- package/lib/common/services/messages-service.js +1 -1
- package/lib/common/services/net-service.js +1 -1
- package/lib/common/services/qr.js +2 -2
- package/lib/common/services/settings-service.js +1 -1
- package/lib/common/services/xcode-select-service.js +1 -1
- package/lib/common/yok.js +2 -2
- package/lib/constants.js +8 -6
- package/lib/controllers/build-controller.js +6 -1
- package/lib/controllers/company-insights-controller.js +1 -1
- package/lib/controllers/debug-controller.js +3 -3
- package/lib/controllers/migrate-controller.js +16 -16
- package/lib/controllers/platform-controller.js +32 -6
- package/lib/controllers/prepare-controller.js +6 -6
- package/lib/controllers/preview-app-controller.js +3 -3
- package/lib/controllers/run-controller.js +4 -3
- package/lib/data/build-data.js +2 -0
- package/lib/declarations.d.ts +6 -0
- package/lib/definitions/android-plugin-migrator.d.ts +12 -0
- package/lib/definitions/build.d.ts +4 -1
- package/lib/definitions/gradle.d.ts +1 -0
- package/lib/definitions/platform.d.ts +12 -3
- package/lib/detached-processes/cleanup-js-subprocess.js +1 -1
- package/lib/detached-processes/file-log-service.js +1 -1
- package/lib/device-path-provider.js +1 -1
- package/lib/nativescript-cli.js +2 -2
- package/lib/node-package-manager.js +15 -10
- package/lib/options.js +4 -1
- package/lib/package-manager.js +17 -17
- package/lib/pnpm-package-manager.js +12 -8
- package/lib/project-data.js +3 -3
- package/lib/services/analytics/analytics-broker.js +1 -1
- package/lib/services/analytics/analytics-service.js +5 -5
- package/lib/services/analytics/google-analytics-provider.js +2 -2
- package/lib/services/analytics-settings-service.js +4 -4
- package/lib/services/android/android-bundle-tool-service.js +2 -2
- package/lib/services/android/gradle-build-args-service.js +3 -0
- package/lib/services/android/gradle-build-service.js +3 -1
- package/lib/services/android/gradle-command-service.js +2 -3
- package/lib/services/android-device-debug-service.js +3 -3
- package/lib/services/android-plugin-build-service.js +33 -13
- package/lib/services/android-project-service.js +35 -10
- package/lib/services/apple-portal/apple-portal-session-service.js +1 -1
- package/lib/services/assets-generation/assets-generation-service.js +2 -2
- package/lib/services/cleanup-service.js +2 -2
- package/lib/services/cocoapods-service.js +2 -1
- package/lib/services/doctor-service.js +3 -3
- package/lib/services/extensibility-service.js +4 -4
- package/lib/services/files-hash-service.js +1 -1
- package/lib/services/hmr-status-service.js +1 -1
- package/lib/services/ios-debugger-port-service.js +2 -2
- package/lib/services/ios-device-debug-service.js +4 -4
- package/lib/services/ios-project-service.js +6 -6
- package/lib/services/ios-provision-service.js +3 -3
- package/lib/services/ip-service.js +1 -1
- package/lib/services/itmstransporter-service.js +3 -3
- package/lib/services/karma-execution.js +1 -1
- package/lib/services/livesync/android-device-livesync-service.js +2 -2
- package/lib/services/livesync/android-livesync-service.js +2 -2
- package/lib/services/livesync/device-livesync-service-base.js +2 -2
- package/lib/services/livesync/ios-device-livesync-service.js +1 -1
- package/lib/services/livesync/ios-livesync-service.js +1 -1
- package/lib/services/livesync/platform-livesync-service-base.js +2 -2
- package/lib/services/livesync/playground/preview-app-files-service.js +1 -1
- package/lib/services/livesync/playground/preview-qr-code-service.js +1 -1
- package/lib/services/log-parser-service.js +1 -1
- package/lib/services/log-source-map-service.js +1 -1
- package/lib/services/pacote-service.js +1 -1
- package/lib/services/performance-service.js +1 -1
- package/lib/services/platform/add-platform-service.js +1 -1
- package/lib/services/platform/prepare-native-platform-service.js +2 -2
- package/lib/services/platform-environment-requirements.js +1 -1
- package/lib/services/plugins-service.js +2 -2
- package/lib/services/project-changes-service.js +2 -2
- package/lib/services/project-cleanup-service.js +3 -1
- package/lib/services/project-config-service.js +6 -6
- package/lib/services/project-data-service.js +9 -9
- package/lib/services/project-name-service.js +1 -1
- package/lib/services/project-service.js +7 -7
- package/lib/services/project-templates-service.js +1 -1
- package/lib/services/test-execution-service.js +1 -1
- package/lib/services/test-initialization-service.js +2 -2
- package/lib/services/webpack/webpack-compiler-service.js +6 -5
- package/lib/services/webpack/webpack.d.ts +1 -1
- package/lib/sys-info.js +5 -5
- package/lib/tools/node-modules/node-modules-builder.js +2 -2
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +13 -6
- package/lib/yarn-package-manager.js +13 -8
- package/package.json +6 -6
- package/vendor/aab-tool/README.txt +1 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- package/vendor/gradle-plugin/build.gradle +127 -34
- package/vendor/gradle-plugin/gradle.properties +2 -0
|
@@ -113,7 +113,7 @@ class AddPlatformService {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
__decorate([
|
|
116
|
-
decorators_1.performanceLog()
|
|
116
|
+
(0, decorators_1.performanceLog)()
|
|
117
117
|
], AddPlatformService.prototype, "addNativePlatform", null);
|
|
118
118
|
exports.AddPlatformService = AddPlatformService;
|
|
119
119
|
yok_1.injector.register("addPlatformService", AddPlatformService);
|
|
@@ -80,8 +80,8 @@ class PrepareNativePlatformService {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
__decorate([
|
|
83
|
-
decorators_1.performanceLog(),
|
|
84
|
-
helpers_1.hook("prepareNativeApp")
|
|
83
|
+
(0, decorators_1.performanceLog)(),
|
|
84
|
+
(0, helpers_1.hook)("prepareNativeApp")
|
|
85
85
|
], PrepareNativePlatformService.prototype, "prepareNativePlatform", null);
|
|
86
86
|
exports.PrepareNativePlatformService = PrepareNativePlatformService;
|
|
87
87
|
yok_1.injector.register("prepareNativePlatformService", PrepareNativePlatformService);
|
|
@@ -80,7 +80,7 @@ class PlatformEnvironmentRequirements {
|
|
|
80
80
|
}
|
|
81
81
|
PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE = "Your environment is not configured properly and you will not be able to execute local builds.";
|
|
82
82
|
__decorate([
|
|
83
|
-
helpers_1.hook("checkEnvironment")
|
|
83
|
+
(0, helpers_1.hook)("checkEnvironment")
|
|
84
84
|
], PlatformEnvironmentRequirements.prototype, "checkEnvironmentRequirements", null);
|
|
85
85
|
exports.PlatformEnvironmentRequirements = PlatformEnvironmentRequirements;
|
|
86
86
|
yok_1.injector.register("platformEnvironmentRequirements", PlatformEnvironmentRequirements);
|
|
@@ -146,7 +146,7 @@ class PluginsService {
|
|
|
146
146
|
const notInstalledDependencies = allDependencies
|
|
147
147
|
.map((dep) => {
|
|
148
148
|
this.$logger.trace(`Checking if ${dep} is installed...`);
|
|
149
|
-
const pathToPackage = package_path_helper_1.resolvePackagePath(dep, {
|
|
149
|
+
const pathToPackage = (0, package_path_helper_1.resolvePackagePath)(dep, {
|
|
150
150
|
paths: [projectData.projectDir],
|
|
151
151
|
});
|
|
152
152
|
if (pathToPackage) {
|
|
@@ -343,7 +343,7 @@ This framework comes from ${dependencyName} plugin, which is installed multiple
|
|
|
343
343
|
return path.join(projectDir, "package.json");
|
|
344
344
|
}
|
|
345
345
|
getPackageJsonFilePathForModule(moduleName, projectDir) {
|
|
346
|
-
const pathToJsonFile = package_path_helper_1.resolvePackageJSONPath(moduleName, {
|
|
346
|
+
const pathToJsonFile = (0, package_path_helper_1.resolvePackageJSONPath)(moduleName, {
|
|
347
347
|
paths: [projectDir],
|
|
348
348
|
});
|
|
349
349
|
return pathToJsonFile;
|
|
@@ -198,7 +198,7 @@ class ProjectChangesService {
|
|
|
198
198
|
getProjectFileStrippedHash(projectDir, platformData) {
|
|
199
199
|
const projectFilePath = path.join(projectDir, constants_1.PACKAGE_JSON_FILE_NAME);
|
|
200
200
|
const projectFileContents = this.$fs.readJson(projectFilePath);
|
|
201
|
-
return helpers_1.getHash(JSON.stringify(projectFileContents));
|
|
201
|
+
return (0, helpers_1.getHash)(JSON.stringify(projectFileContents));
|
|
202
202
|
}
|
|
203
203
|
isProjectFileChanged(projectDir, platformData) {
|
|
204
204
|
const projectFileStrippedContentsHash = this.getProjectFileStrippedHash(projectDir, platformData);
|
|
@@ -259,7 +259,7 @@ class ProjectChangesService {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
__decorate([
|
|
262
|
-
helpers_1.hook("checkForChanges")
|
|
262
|
+
(0, helpers_1.hook)("checkForChanges")
|
|
263
263
|
], ProjectChangesService.prototype, "checkForChanges", null);
|
|
264
264
|
exports.ProjectChangesService = ProjectChangesService;
|
|
265
265
|
yok_1.injector.register("projectChangesService", ProjectChangesService);
|
|
@@ -18,10 +18,10 @@ class ProjectCleanupService {
|
|
|
18
18
|
this.$logger = $logger;
|
|
19
19
|
this.$projectHelper = $projectHelper;
|
|
20
20
|
this.$terminalSpinnerService = $terminalSpinnerService;
|
|
21
|
-
this.spinner = this.$terminalSpinnerService.createSpinner();
|
|
22
21
|
}
|
|
23
22
|
clean(pathsToClean) {
|
|
24
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
this.spinner = this.$terminalSpinnerService.createSpinner();
|
|
25
25
|
let success = true;
|
|
26
26
|
for (const pathToClean of pathsToClean) {
|
|
27
27
|
const isCleaned = yield this.cleanPath(pathToClean).catch((error) => {
|
|
@@ -30,6 +30,7 @@ class ProjectCleanupService {
|
|
|
30
30
|
});
|
|
31
31
|
success = success && isCleaned;
|
|
32
32
|
}
|
|
33
|
+
console.log();
|
|
33
34
|
return success;
|
|
34
35
|
});
|
|
35
36
|
}
|
|
@@ -68,6 +69,7 @@ class ProjectCleanupService {
|
|
|
68
69
|
return success;
|
|
69
70
|
}
|
|
70
71
|
this.$logger.trace(`Path '${filePath}' not found, skipping.`);
|
|
72
|
+
this.spinner.info(`Skipping ${displayPath} because it doesn't exist.`);
|
|
71
73
|
return success;
|
|
72
74
|
});
|
|
73
75
|
}
|
|
@@ -190,12 +190,12 @@ export default {
|
|
|
190
190
|
try {
|
|
191
191
|
const transformer = new config_transformer_1.ConfigTransformer(configContent);
|
|
192
192
|
const newContent = transformer.setValue(key, value);
|
|
193
|
-
const prettierOptions = (yield prettier_1.resolveConfig(this.projectHelper.projectDir, { editorconfig: true })) || {
|
|
193
|
+
const prettierOptions = (yield (0, prettier_1.resolveConfig)(this.projectHelper.projectDir, { editorconfig: true })) || {
|
|
194
194
|
semi: false,
|
|
195
195
|
singleQuote: true,
|
|
196
196
|
};
|
|
197
197
|
this.$logger.trace("updating config, prettier options: ", prettierOptions);
|
|
198
|
-
this.$fs.writeFile(configFilePath, prettier_1.format(newContent, Object.assign(Object.assign({}, prettierOptions), { parser: "typescript" })));
|
|
198
|
+
this.$fs.writeFile(configFilePath, (0, prettier_1.format)(newContent, Object.assign(Object.assign({}, prettierOptions), { parser: "typescript" })));
|
|
199
199
|
}
|
|
200
200
|
catch (error) {
|
|
201
201
|
this.$logger.error(`Failed to update config.` + error);
|
|
@@ -320,16 +320,16 @@ You may add \`nsconfig.json\` to \`.gitignore\` as the CLI will regenerate it as
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
__decorate([
|
|
323
|
-
decorators_1.cache()
|
|
323
|
+
(0, decorators_1.cache)()
|
|
324
324
|
], ProjectConfigService.prototype, "warnUsingLegacyNSConfig", null);
|
|
325
325
|
__decorate([
|
|
326
|
-
decorators_1.exported("projectConfigService")
|
|
326
|
+
(0, decorators_1.exported)("projectConfigService")
|
|
327
327
|
], ProjectConfigService.prototype, "readConfig", null);
|
|
328
328
|
__decorate([
|
|
329
|
-
decorators_1.exported("projectConfigService")
|
|
329
|
+
(0, decorators_1.exported)("projectConfigService")
|
|
330
330
|
], ProjectConfigService.prototype, "getValue", null);
|
|
331
331
|
__decorate([
|
|
332
|
-
decorators_1.exported("projectConfigService")
|
|
332
|
+
(0, decorators_1.exported)("projectConfigService")
|
|
333
333
|
], ProjectConfigService.prototype, "setValue", null);
|
|
334
334
|
exports.ProjectConfigService = ProjectConfigService;
|
|
335
335
|
yok_1.injector.register("projectConfigService", ProjectConfigService);
|
|
@@ -190,7 +190,7 @@ class ProjectDataService {
|
|
|
190
190
|
if (this.$fs.exists(nsConfigPath)) {
|
|
191
191
|
const nsConfigContent = this.$fs.readText(nsConfigPath);
|
|
192
192
|
try {
|
|
193
|
-
result = helpers_1.parseJson(nsConfigContent);
|
|
193
|
+
result = (0, helpers_1.parseJson)(nsConfigContent);
|
|
194
194
|
}
|
|
195
195
|
catch (e) {
|
|
196
196
|
this.$logger.trace("The `nsconfig` content is not a valid JSON. Parse error: ", e);
|
|
@@ -387,7 +387,7 @@ class ProjectDataService {
|
|
|
387
387
|
const isTag = !coerced;
|
|
388
388
|
if (runtimePackage.version.includes("tgz") || isRange || isTag) {
|
|
389
389
|
try {
|
|
390
|
-
const runtimePackageJsonPath = package_path_helper_1.resolvePackageJSONPath(runtimePackage.name, {
|
|
390
|
+
const runtimePackageJsonPath = (0, package_path_helper_1.resolvePackageJSONPath)(runtimePackage.name, {
|
|
391
391
|
paths: [projectDir],
|
|
392
392
|
});
|
|
393
393
|
if (!runtimePackageJsonPath) {
|
|
@@ -428,22 +428,22 @@ class ProjectDataService {
|
|
|
428
428
|
}
|
|
429
429
|
ProjectDataService.DEPENDENCIES_KEY_NAME = "dependencies";
|
|
430
430
|
__decorate([
|
|
431
|
-
decorators_1.exported("projectDataService")
|
|
431
|
+
(0, decorators_1.exported)("projectDataService")
|
|
432
432
|
], ProjectDataService.prototype, "getProjectData", null);
|
|
433
433
|
__decorate([
|
|
434
|
-
decorators_1.exported("projectDataService")
|
|
434
|
+
(0, decorators_1.exported)("projectDataService")
|
|
435
435
|
], ProjectDataService.prototype, "getProjectDataFromContent", null);
|
|
436
436
|
__decorate([
|
|
437
|
-
decorators_1.exported("projectDataService")
|
|
437
|
+
(0, decorators_1.exported)("projectDataService")
|
|
438
438
|
], ProjectDataService.prototype, "getAssetsStructure", null);
|
|
439
439
|
__decorate([
|
|
440
|
-
decorators_1.exported("projectDataService")
|
|
440
|
+
(0, decorators_1.exported)("projectDataService")
|
|
441
441
|
], ProjectDataService.prototype, "getIOSAssetsStructure", null);
|
|
442
442
|
__decorate([
|
|
443
|
-
decorators_1.exported("projectDataService")
|
|
443
|
+
(0, decorators_1.exported)("projectDataService")
|
|
444
444
|
], ProjectDataService.prototype, "getAndroidAssetsStructure", null);
|
|
445
445
|
__decorate([
|
|
446
|
-
decorators_1.memoize({
|
|
446
|
+
(0, decorators_1.memoize)({
|
|
447
447
|
hashFn(projectDir, platform) {
|
|
448
448
|
return projectDir + ":" + platform;
|
|
449
449
|
},
|
|
@@ -456,7 +456,7 @@ __decorate([
|
|
|
456
456
|
})
|
|
457
457
|
], ProjectDataService.prototype, "getInstalledRuntimePackage", null);
|
|
458
458
|
__decorate([
|
|
459
|
-
decorators_1.exported("projectDataService")
|
|
459
|
+
(0, decorators_1.exported)("projectDataService")
|
|
460
460
|
], ProjectDataService.prototype, "getNsConfigDefaultContent", null);
|
|
461
461
|
exports.ProjectDataService = ProjectDataService;
|
|
462
462
|
yok_1.injector.register("projectDataService", ProjectDataService);
|
|
@@ -27,7 +27,7 @@ class ProjectNameService {
|
|
|
27
27
|
if (!this.$projectNameValidator.validate(projectName)) {
|
|
28
28
|
return yield this.promptForNewName("The project name is invalid.", projectName, validateOptions);
|
|
29
29
|
}
|
|
30
|
-
const userCanInteract = helpers_1.isInteractive();
|
|
30
|
+
const userCanInteract = (0, helpers_1.isInteractive)();
|
|
31
31
|
if (!this.checkIfNameStartsWithLetter(projectName)) {
|
|
32
32
|
if (!userCanInteract) {
|
|
33
33
|
this.$errors.fail("The project name does not start with letter and will fail to build for Android. If You want to create project with this name add --force to the create command.");
|
|
@@ -79,7 +79,7 @@ class ProjectService {
|
|
|
79
79
|
if (this.$options.git) {
|
|
80
80
|
try {
|
|
81
81
|
if (!this.$options.force) {
|
|
82
|
-
const git = simple_git_1.default(projectDir);
|
|
82
|
+
const git = (0, simple_git_1.default)(projectDir);
|
|
83
83
|
if (yield git.checkIsRepo()) {
|
|
84
84
|
throw new Error("Already part of a git repository.");
|
|
85
85
|
}
|
|
@@ -185,20 +185,20 @@ class ProjectService {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
__decorate([
|
|
188
|
-
decorators_1.exported("projectService"),
|
|
189
|
-
decorators_2.performanceLog()
|
|
188
|
+
(0, decorators_1.exported)("projectService"),
|
|
189
|
+
(0, decorators_2.performanceLog)()
|
|
190
190
|
], ProjectService.prototype, "createProject", null);
|
|
191
191
|
__decorate([
|
|
192
|
-
decorators_1.exported("projectService")
|
|
192
|
+
(0, decorators_1.exported)("projectService")
|
|
193
193
|
], ProjectService.prototype, "isValidNativeScriptProject", null);
|
|
194
194
|
__decorate([
|
|
195
|
-
decorators_2.performanceLog()
|
|
195
|
+
(0, decorators_2.performanceLog)()
|
|
196
196
|
], ProjectService.prototype, "extractTemplate", null);
|
|
197
197
|
__decorate([
|
|
198
|
-
decorators_2.performanceLog()
|
|
198
|
+
(0, decorators_2.performanceLog)()
|
|
199
199
|
], ProjectService.prototype, "ensureAppResourcesExist", null);
|
|
200
200
|
__decorate([
|
|
201
|
-
decorators_2.performanceLog()
|
|
201
|
+
(0, decorators_2.performanceLog)()
|
|
202
202
|
], ProjectService.prototype, "alterPackageJsonData", null);
|
|
203
203
|
exports.ProjectService = ProjectService;
|
|
204
204
|
yok_1.injector.register("projectService", ProjectService);
|
|
@@ -108,7 +108,7 @@ class ProjectTemplatesService {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
__decorate([
|
|
111
|
-
decorators_1.performanceLog()
|
|
111
|
+
(0, decorators_1.performanceLog)()
|
|
112
112
|
], ProjectTemplatesService.prototype, "prepareTemplate", null);
|
|
113
113
|
exports.ProjectTemplatesService = ProjectTemplatesService;
|
|
114
114
|
yok_1.injector.register("projectTemplatesService", ProjectTemplatesService);
|
|
@@ -91,7 +91,7 @@ class TestExecutionService {
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const pathToKarma = package_path_helper_1.resolvePackagePath("karma", {
|
|
94
|
+
const pathToKarma = (0, package_path_helper_1.resolvePackagePath)("karma", {
|
|
95
95
|
paths: [projectData.projectDir],
|
|
96
96
|
});
|
|
97
97
|
canStartKarmaServer = canStartKarmaServer && !!pathToKarma;
|
|
@@ -45,10 +45,10 @@ class TestInitializationService {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
__decorate([
|
|
48
|
-
decorators_1.cache()
|
|
48
|
+
(0, decorators_1.cache)()
|
|
49
49
|
], TestInitializationService.prototype, "getDependencies", null);
|
|
50
50
|
__decorate([
|
|
51
|
-
decorators_1.cache()
|
|
51
|
+
(0, decorators_1.cache)()
|
|
52
52
|
], TestInitializationService.prototype, "getFrameworkNames", null);
|
|
53
53
|
exports.TestInitializationService = TestInitializationService;
|
|
54
54
|
yok_1.injector.register("testInitializationService", TestInitializationService);
|
|
@@ -229,7 +229,8 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
229
229
|
});
|
|
230
230
|
envData.verbose = envData.verbose || this.$logger.isVerbose();
|
|
231
231
|
envData.production = envData.production || prepareData.release;
|
|
232
|
-
envData.config =
|
|
232
|
+
envData.config =
|
|
233
|
+
(_b = (_a = process.env.NATIVESCRIPT_CONFIG_NAME) !== null && _a !== void 0 ? _a : this.$options.config) !== null && _b !== void 0 ? _b : "false";
|
|
233
234
|
process.env.NATIVESCRIPT_CONFIG_NAME = envData.config;
|
|
234
235
|
envData.skipSnapshotTools =
|
|
235
236
|
prepareData.nativePrepare && prepareData.nativePrepare.skipNativePrepare;
|
|
@@ -358,14 +359,14 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
358
359
|
}
|
|
359
360
|
getWebpackExecutablePath(projectData) {
|
|
360
361
|
if (this.isWebpack5(projectData)) {
|
|
361
|
-
const packagePath = package_path_helper_1.resolvePackagePath("@nativescript/webpack", {
|
|
362
|
+
const packagePath = (0, package_path_helper_1.resolvePackagePath)("@nativescript/webpack", {
|
|
362
363
|
paths: [projectData.projectDir],
|
|
363
364
|
});
|
|
364
365
|
if (packagePath) {
|
|
365
366
|
return path.resolve(packagePath, "dist", "bin", "index.js");
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
|
-
const packagePath = package_path_helper_1.resolvePackagePath("webpack", {
|
|
369
|
+
const packagePath = (0, package_path_helper_1.resolvePackagePath)("webpack", {
|
|
369
370
|
paths: [projectData.projectDir],
|
|
370
371
|
});
|
|
371
372
|
if (!packagePath) {
|
|
@@ -374,7 +375,7 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
374
375
|
return path.resolve(packagePath, "bin", "webpack.js");
|
|
375
376
|
}
|
|
376
377
|
isWebpack5(projectData) {
|
|
377
|
-
const packageJSONPath = package_path_helper_1.resolvePackageJSONPath("@nativescript/webpack", {
|
|
378
|
+
const packageJSONPath = (0, package_path_helper_1.resolvePackageJSONPath)("@nativescript/webpack", {
|
|
378
379
|
paths: [projectData.projectDir],
|
|
379
380
|
});
|
|
380
381
|
if (packageJSONPath) {
|
|
@@ -388,7 +389,7 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
391
|
__decorate([
|
|
391
|
-
decorators_1.performanceLog()
|
|
392
|
+
(0, decorators_1.performanceLog)()
|
|
392
393
|
], WebpackCompilerService.prototype, "startWebpackProcess", null);
|
|
393
394
|
exports.WebpackCompilerService = WebpackCompilerService;
|
|
394
395
|
yok_1.injector.register("webpackCompilerService", WebpackCompilerService);
|
package/lib/sys-info.js
CHANGED
|
@@ -72,7 +72,7 @@ class SysInfo {
|
|
|
72
72
|
};
|
|
73
73
|
warnings.push(macOSWarningMessage);
|
|
74
74
|
}
|
|
75
|
-
const nodeWarning = verify_node_version_1.getNodeWarning();
|
|
75
|
+
const nodeWarning = (0, verify_node_version_1.getNodeWarning)();
|
|
76
76
|
if (nodeWarning) {
|
|
77
77
|
nodeWarning.toString = function () {
|
|
78
78
|
return this.message;
|
|
@@ -92,7 +92,7 @@ class SysInfo {
|
|
|
92
92
|
const macOSVersion = yield this.$hostInfo.getMacOSVersion();
|
|
93
93
|
if (macOSVersion && macOSVersion < constants_1.MacOSVersions.HighSierra) {
|
|
94
94
|
return {
|
|
95
|
-
message: util_1.format(constants_1.MacOSDeprecationStringFormat, macOSVersion),
|
|
95
|
+
message: (0, util_1.format)(constants_1.MacOSDeprecationStringFormat, macOSVersion),
|
|
96
96
|
severity: "high",
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -103,7 +103,7 @@ class SysInfo {
|
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
104
|
const xcodeVersion = yield this.getXcodeVersion();
|
|
105
105
|
if (xcodeVersion && semver.lt(semver.coerce(xcodeVersion), "11.0.0")) {
|
|
106
|
-
const message = util_1.format(constants_1.XcodeDeprecationStringFormat, xcodeVersion);
|
|
106
|
+
const message = (0, util_1.format)(constants_1.XcodeDeprecationStringFormat, xcodeVersion);
|
|
107
107
|
return message;
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
@@ -111,10 +111,10 @@ class SysInfo {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
__decorate([
|
|
114
|
-
decorators_1.exported("sysInfo")
|
|
114
|
+
(0, decorators_1.exported)("sysInfo")
|
|
115
115
|
], SysInfo.prototype, "getSystemWarnings", null);
|
|
116
116
|
__decorate([
|
|
117
|
-
decorators_1.exported("sysInfo")
|
|
117
|
+
(0, decorators_1.exported)("sysInfo")
|
|
118
118
|
], SysInfo.prototype, "getSupportedNodeVersionRange", null);
|
|
119
119
|
exports.SysInfo = SysInfo;
|
|
120
120
|
yok_1.injector.register("sysInfo", SysInfo);
|
|
@@ -20,8 +20,8 @@ class NodeModulesBuilder {
|
|
|
20
20
|
}
|
|
21
21
|
prepareNodeModules({ platformData, projectData, }) {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
|
|
24
|
-
yield platformData.platformProjectService.beforePrepareAllPlugins(projectData, dependencies);
|
|
23
|
+
let dependencies = this.$nodeModulesDependenciesBuilder.getProductionDependencies(projectData.projectDir, projectData.ignoredDependencies);
|
|
24
|
+
dependencies = yield platformData.platformProjectService.beforePrepareAllPlugins(projectData, dependencies);
|
|
25
25
|
const pluginsData = this.$pluginsService.getAllProductionPlugins(projectData, platformData.platformNameLowerCase, dependencies);
|
|
26
26
|
if (_.isEmpty(pluginsData)) {
|
|
27
27
|
return;
|
|
@@ -5,6 +5,7 @@ const path = require("path");
|
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const _ = require("lodash");
|
|
7
7
|
const yok_1 = require("../../common/yok");
|
|
8
|
+
const resolve_package_path_1 = require("@rigor789/resolve-package-path");
|
|
8
9
|
class NodeModulesDependenciesBuilder {
|
|
9
10
|
constructor($fs) {
|
|
10
11
|
this.$fs = $fs;
|
|
@@ -22,7 +23,7 @@ class NodeModulesDependenciesBuilder {
|
|
|
22
23
|
}));
|
|
23
24
|
while (queue.length) {
|
|
24
25
|
const currentModule = queue.shift();
|
|
25
|
-
const resolvedDependency = this.findModule(currentModule, resolvedDependencies);
|
|
26
|
+
const resolvedDependency = this.findModule(currentModule, resolvedDependencies, projectPath);
|
|
26
27
|
if (resolvedDependency &&
|
|
27
28
|
!_.some(resolvedDependencies, (r) => r.directory === resolvedDependency.directory)) {
|
|
28
29
|
_.each(resolvedDependency.dependencies, (d) => {
|
|
@@ -48,15 +49,21 @@ class NodeModulesDependenciesBuilder {
|
|
|
48
49
|
}
|
|
49
50
|
return resolvedDependencies;
|
|
50
51
|
}
|
|
51
|
-
findModule(depDescription, resolvedDependencies) {
|
|
52
|
+
findModule(depDescription, resolvedDependencies, rootPath) {
|
|
52
53
|
var _a, _b;
|
|
53
54
|
try {
|
|
54
55
|
const parentModulesPath = (_a = depDescription === null || depDescription === void 0 ? void 0 : depDescription.parentDir) !== null && _a !== void 0 ? _a : (_b = depDescription === null || depDescription === void 0 ? void 0 : depDescription.parent) === null || _b === void 0 ? void 0 : _b.parentDir;
|
|
55
|
-
|
|
56
|
-
.resolve(`${depDescription.name}/package.json`, {
|
|
56
|
+
let modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
57
57
|
paths: [parentModulesPath],
|
|
58
|
-
})
|
|
59
|
-
|
|
58
|
+
});
|
|
59
|
+
if (!modulePath) {
|
|
60
|
+
modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
61
|
+
paths: [rootPath],
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (!modulePath) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
60
67
|
if (resolvedDependencies.some((r) => {
|
|
61
68
|
return r.name === depDescription.name && r.directory === modulePath;
|
|
62
69
|
})) {
|
|
@@ -73,8 +73,13 @@ class YarnPackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
73
73
|
catch (e) {
|
|
74
74
|
this.$errors.fail(e.message);
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
try {
|
|
77
|
+
const result = JSON.parse(viewResult);
|
|
78
|
+
return result.data;
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
78
83
|
});
|
|
79
84
|
}
|
|
80
85
|
search(filter, config) {
|
|
@@ -108,22 +113,22 @@ class YarnPackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
108
113
|
}
|
|
109
114
|
}
|
|
110
115
|
__decorate([
|
|
111
|
-
decorators_1.exported("yarn")
|
|
116
|
+
(0, decorators_1.exported)("yarn")
|
|
112
117
|
], YarnPackageManager.prototype, "install", null);
|
|
113
118
|
__decorate([
|
|
114
|
-
decorators_1.exported("yarn")
|
|
119
|
+
(0, decorators_1.exported)("yarn")
|
|
115
120
|
], YarnPackageManager.prototype, "uninstall", null);
|
|
116
121
|
__decorate([
|
|
117
|
-
decorators_1.exported("yarn")
|
|
122
|
+
(0, decorators_1.exported)("yarn")
|
|
118
123
|
], YarnPackageManager.prototype, "view", null);
|
|
119
124
|
__decorate([
|
|
120
|
-
decorators_1.exported("yarn")
|
|
125
|
+
(0, decorators_1.exported)("yarn")
|
|
121
126
|
], YarnPackageManager.prototype, "search", null);
|
|
122
127
|
__decorate([
|
|
123
|
-
decorators_1.exported("yarn")
|
|
128
|
+
(0, decorators_1.exported)("yarn")
|
|
124
129
|
], YarnPackageManager.prototype, "getRegistryPackageData", null);
|
|
125
130
|
__decorate([
|
|
126
|
-
decorators_1.exported("yarn")
|
|
131
|
+
(0, decorators_1.exported)("yarn")
|
|
127
132
|
], YarnPackageManager.prototype, "getCachePath", null);
|
|
128
133
|
exports.YarnPackageManager = YarnPackageManager;
|
|
129
134
|
yok_1.injector.register("yarn", YarnPackageManager);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"preferGlobal": true,
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.2.0",
|
|
5
5
|
"author": "NativeScript <support@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"mobile"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@nativescript/doctor": "2.0.
|
|
60
|
+
"@nativescript/doctor": "2.0.7",
|
|
61
61
|
"@nativescript/schematics-executor": "0.0.2",
|
|
62
62
|
"@rigor789/resolve-package-path": "^1.0.5",
|
|
63
63
|
"axios": "^0.21.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"glob": "7.1.6",
|
|
76
76
|
"ios-device-lib": "0.9.2",
|
|
77
77
|
"ios-mobileprovision-finder": "1.0.11",
|
|
78
|
-
"ios-sim-portable": "4.2.
|
|
78
|
+
"ios-sim-portable": "4.2.5",
|
|
79
79
|
"istextorbinary": "5.9.0",
|
|
80
80
|
"jimp": "0.14.0",
|
|
81
81
|
"libnpmconfig": "1.2.1",
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
"temp": "0.9.1",
|
|
114
114
|
"ts-morph": "8.1.0",
|
|
115
115
|
"tunnel": "0.0.6",
|
|
116
|
-
"typescript": "
|
|
116
|
+
"typescript": "4.5.5",
|
|
117
117
|
"universal-analytics": "0.4.23",
|
|
118
118
|
"uuid": "8.3.0",
|
|
119
119
|
"winreg": "1.2.4",
|
|
120
120
|
"ws": "7.3.1",
|
|
121
121
|
"xml2js": "0.4.23",
|
|
122
122
|
"xmldom": "0.3.0",
|
|
123
|
-
"yargs": "
|
|
123
|
+
"yargs": "17.3.1",
|
|
124
124
|
"zipstream": "https://github.com/Icenium/node-zipstream/tarball/master"
|
|
125
125
|
},
|
|
126
126
|
"analyze": true,
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@types/uuid": "^8.3.0",
|
|
154
154
|
"@types/ws": "7.2.6",
|
|
155
155
|
"@types/xml2js": "0.4.5",
|
|
156
|
-
"@types/yargs": "
|
|
156
|
+
"@types/yargs": "17.0.8",
|
|
157
157
|
"chai": "4.2.0",
|
|
158
158
|
"chai-as-promised": "7.1.1",
|
|
159
159
|
"conventional-changelog-cli": "^2.0.34",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Downloaded from https://github.com/google/bundletool/releases/tag/
|
|
1
|
+
Downloaded from https://github.com/google/bundletool/releases/tag/1.8.2
|
|
Binary file
|