nativescript 8.9.1 → 8.9.3-dev.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 +0 -12
- package/lib/base-package-manager.js +0 -7
- package/lib/bootstrap.js +1 -5
- package/lib/bun-package-manager.js +1 -17
- package/lib/color.js +0 -3
- package/lib/commands/add-platform.js +0 -1
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.js +0 -3
- package/lib/commands/build.js +2 -3
- package/lib/commands/clean.js +1 -22
- package/lib/commands/command-base.js +0 -1
- package/lib/commands/config.js +0 -4
- package/lib/commands/create-project.js +0 -6
- package/lib/commands/debug.js +1 -6
- package/lib/commands/deploy.js +2 -3
- package/lib/commands/embedding/embed.js +0 -7
- package/lib/commands/extensibility/install-extension.js +0 -1
- package/lib/commands/extensibility/list-extensions.js +0 -1
- package/lib/commands/extensibility/uninstall-extension.js +0 -1
- package/lib/commands/fonts.js +0 -1
- package/lib/commands/generate-assets.js +0 -1
- package/lib/commands/generate-help.js +0 -1
- package/lib/commands/generate.js +1 -48
- package/lib/commands/info.js +0 -1
- package/lib/commands/install.js +0 -1
- package/lib/commands/list-platforms.js +0 -1
- package/lib/commands/migrate.js +0 -1
- package/lib/commands/native-add.js +0 -5
- package/lib/commands/platform-clean.js +0 -1
- package/lib/commands/plugin/add-plugin.js +0 -1
- package/lib/commands/plugin/build-plugin.js +0 -1
- package/lib/commands/plugin/create-plugin.js +0 -5
- package/lib/commands/plugin/list-plugins.js +0 -1
- package/lib/commands/plugin/remove-plugin.js +0 -2
- package/lib/commands/plugin/update-plugin.js +0 -1
- package/lib/commands/post-install.js +0 -6
- package/lib/commands/prepare.js +3 -4
- package/lib/commands/preview.js +0 -2
- package/lib/commands/remove-platform.js +0 -1
- package/lib/commands/resources/resources-update.js +0 -2
- package/lib/commands/run.js +0 -1
- package/lib/commands/setup.js +0 -1
- package/lib/commands/start.js +0 -1
- package/lib/commands/test-init.js +0 -4
- package/lib/commands/test.js +2 -9
- package/lib/commands/typings.js +1 -2
- package/lib/commands/update-platform.js +0 -5
- package/lib/commands/update.js +0 -2
- package/lib/commands/widget.js +1 -20
- package/lib/common/bootstrap.js +0 -1
- package/lib/common/child-process.js +0 -3
- package/lib/common/codeGeneration/code-entity.js +0 -1
- package/lib/common/codeGeneration/code-printer.js +0 -1
- package/lib/common/command-params.js +0 -1
- package/lib/common/commands/analytics.js +0 -3
- package/lib/common/commands/autocompletion.js +0 -3
- package/lib/common/commands/device/device-log-stream.js +0 -1
- package/lib/common/commands/device/get-file.js +0 -2
- package/lib/common/commands/device/list-applications.js +0 -1
- package/lib/common/commands/device/list-devices.js +0 -3
- package/lib/common/commands/device/list-files.js +0 -2
- package/lib/common/commands/device/put-file.js +0 -2
- package/lib/common/commands/device/run-application.js +0 -1
- package/lib/common/commands/device/stop-application.js +0 -1
- package/lib/common/commands/device/uninstall-application.js +0 -1
- package/lib/common/commands/doctor.js +2 -3
- package/lib/common/commands/generate-messages.js +0 -1
- package/lib/common/commands/help.js +0 -1
- package/lib/common/commands/package-manager-get.js +0 -1
- package/lib/common/commands/package-manager-set.js +0 -1
- package/lib/common/commands/post-install.js +0 -1
- package/lib/common/commands/preuninstall.js +2 -11
- package/lib/common/commands/proxy/proxy-base.js +0 -4
- package/lib/common/commands/proxy/proxy-clear.js +0 -1
- package/lib/common/commands/proxy/proxy-get.js +0 -1
- package/lib/common/commands/proxy/proxy-set.js +0 -1
- package/lib/common/common-lib.js +0 -1
- package/lib/common/constants.js +0 -11
- package/lib/common/decorators.js +0 -48
- package/lib/common/dispatchers.js +1 -10
- package/lib/common/errors.js +3 -13
- package/lib/common/file-system.js +2 -13
- package/lib/common/header.js +0 -3
- package/lib/common/helpers.js +3 -89
- package/lib/common/host-info.js +0 -4
- package/lib/common/http-client.js +0 -20
- package/lib/common/logger/appenders/cli-appender.js +0 -4
- package/lib/common/logger/appenders/emit-appender.js +0 -4
- package/lib/common/logger/layouts/cli-layout.js +0 -1
- package/lib/common/logger/logger.js +0 -5
- package/lib/common/messages/messages.js +0 -6
- package/lib/common/mobile/android/android-application-manager.js +1 -20
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
- package/lib/common/mobile/android/android-debug-bridge.js +0 -6
- package/lib/common/mobile/android/android-device-file-system.js +0 -4
- package/lib/common/mobile/android/android-device-hash-service.js +0 -3
- package/lib/common/mobile/android/android-device.js +0 -8
- package/lib/common/mobile/android/android-emulator-services.js +1 -2
- package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
- package/lib/common/mobile/android/android-log-filter.js +0 -4
- package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
- package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
- package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.js +0 -13
- package/lib/common/mobile/application-manager-base.js +0 -6
- package/lib/common/mobile/device-emitter.js +0 -4
- package/lib/common/mobile/device-log-emitter.js +0 -1
- package/lib/common/mobile/device-log-provider-base.js +0 -1
- package/lib/common/mobile/device-log-provider.js +0 -23
- package/lib/common/mobile/device-platforms-constants.js +0 -1
- package/lib/common/mobile/emulator-helper.js +0 -3
- package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
- package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
- package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
- package/lib/common/mobile/ios/device/ios-device.js +0 -4
- package/lib/common/mobile/ios/ios-device-base.js +0 -1
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
- package/lib/common/mobile/ios/ios-log-filter.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
- package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
- package/lib/common/mobile/log-filter.js +0 -2
- package/lib/common/mobile/logging-levels.js +0 -1
- package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
- package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
- package/lib/common/mobile/mobile-core/devices-service.js +0 -69
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-helper.js +0 -1
- package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
- package/lib/common/opener.js +0 -1
- package/lib/common/os-info.js +0 -1
- package/lib/common/plist-parser.js +0 -1
- package/lib/common/project-helper.js +0 -1
- package/lib/common/prompter.js +1 -9
- package/lib/common/queue.js +0 -1
- package/lib/common/resource-loader.js +0 -1
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.js +1 -2
- package/lib/common/services/commands-service.js +6 -17
- package/lib/common/services/help-service.js +3 -11
- package/lib/common/services/hooks-service.js +0 -13
- package/lib/common/services/ios-notification-service.js +0 -1
- package/lib/common/services/json-file-settings-service.js +0 -6
- package/lib/common/services/lock-service.js +0 -6
- package/lib/common/services/message-contract-generator.js +0 -1
- package/lib/common/services/messages-service.js +0 -1
- package/lib/common/services/micro-templating-service.js +0 -6
- package/lib/common/services/net-service.js +0 -3
- package/lib/common/services/project-files-manager.js +0 -5
- package/lib/common/services/project-files-provider-base.js +0 -1
- package/lib/common/services/proxy-service.js +0 -1
- package/lib/common/services/qr.js +0 -1
- package/lib/common/services/settings-service.js +0 -1
- package/lib/common/services/xcode-select-service.js +0 -1
- package/lib/common/utils.js +0 -1
- package/lib/common/validators/project-name-validator.js +0 -1
- package/lib/common/validators/validation-result.js +0 -1
- package/lib/common/verify-node-version.js +1 -8
- package/lib/common/yok.js +11 -32
- package/lib/config.js +1 -22
- package/lib/constants-provider.js +0 -1
- package/lib/constants.js +0 -53
- package/lib/controllers/build-controller.js +3 -4
- package/lib/controllers/debug-controller.js +3 -8
- package/lib/controllers/deploy-controller.js +0 -1
- package/lib/controllers/migrate-controller.js +4 -90
- package/lib/controllers/platform-controller.js +1 -9
- package/lib/controllers/prepare-controller.js +4 -17
- package/lib/controllers/run-controller.js +1 -17
- package/lib/controllers/update-controller-base.js +0 -1
- package/lib/controllers/update-controller.js +0 -11
- package/lib/data/build-data.js +0 -1
- package/lib/data/controller-data-base.js +0 -1
- package/lib/data/debug-data.js +0 -1
- package/lib/data/platform-data.js +0 -1
- package/lib/data/prepare-data.js +0 -1
- package/lib/data/run-data.js +0 -1
- package/lib/definitions/project.d.ts +7 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
- package/lib/detached-processes/cleanup-process.js +14 -18
- package/lib/detached-processes/file-log-service.js +1 -2
- package/lib/device-path-provider.js +0 -1
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
- package/lib/device-sockets/ios/notification.js +0 -3
- package/lib/device-sockets/ios/socket-request-executor.js +0 -3
- package/lib/helpers/android-bundle-validator-helper.js +1 -2
- package/lib/helpers/deploy-command-helper.js +0 -1
- package/lib/helpers/key-command-helper.js +2 -4
- package/lib/helpers/livesync-command-helper.js +1 -4
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.js +2 -3
- package/lib/helpers/package-path-helper.js +0 -1
- package/lib/helpers/platform-command-helper.js +2 -7
- package/lib/helpers/version-validator-helper.js +0 -1
- package/lib/key-commands/bootstrap.js +2 -3
- package/lib/key-commands/index.js +4 -5
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.js +1 -10
- package/lib/node/pbxproj-dom-xcode.js +0 -1
- package/lib/node/xcode.js +0 -1
- package/lib/node-package-manager.js +1 -11
- package/lib/options.js +119 -144
- package/lib/package-installation-manager.js +1 -8
- package/lib/package-manager.js +0 -2
- package/lib/platform-command-param.js +0 -1
- package/lib/pnpm-package-manager.js +1 -4
- package/lib/project-data.js +4 -12
- package/lib/providers/project-files-provider.js +0 -1
- package/lib/resolvers/livesync-service-resolver.js +0 -1
- package/lib/services/analytics/analytics-broker-process.js +6 -10
- package/lib/services/analytics/analytics-broker.js +1 -2
- package/lib/services/analytics/analytics-service.js +25 -29
- package/lib/services/analytics/google-analytics-provider.js +12 -13
- package/lib/services/analytics-settings-service.js +0 -5
- package/lib/services/android/android-bundle-tool-service.js +0 -1
- package/lib/services/android/gradle-build-args-service.js +0 -3
- package/lib/services/android/gradle-build-service.js +0 -1
- package/lib/services/android/gradle-command-service.js +0 -1
- package/lib/services/android-device-debug-service.js +0 -6
- package/lib/services/android-plugin-build-service.js +2 -31
- package/lib/services/android-project-service.js +4 -71
- package/lib/services/android-resources-migration-service.js +0 -7
- package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
- package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
- package/lib/services/assets-generation/assets-generation-service.js +5 -16
- package/lib/services/build-artifacts-service.js +1 -2
- package/lib/services/build-data-service.js +0 -1
- package/lib/services/build-info-file-service.js +0 -1
- package/lib/services/cleanup-service.js +9 -13
- package/lib/services/cocoapods-platform-manager.js +0 -9
- package/lib/services/cocoapods-service.js +1 -21
- package/lib/services/debug-data-service.js +0 -1
- package/lib/services/debug-service-base.js +0 -7
- package/lib/services/device/device-install-app-service.js +1 -2
- package/lib/services/doctor-service.js +6 -21
- package/lib/services/extensibility-service.js +0 -8
- package/lib/services/files-hash-service.js +0 -1
- package/lib/services/hmr-status-service.js +0 -2
- package/lib/services/info-service.js +0 -1
- package/lib/services/initialize-service.js +1 -5
- package/lib/services/ios/export-options-plist-service.js +0 -4
- package/lib/services/ios/ios-signing-service.js +0 -4
- package/lib/services/ios/spm-service.js +0 -11
- package/lib/services/ios/xcodebuild-args-service.js +0 -9
- package/lib/services/ios/xcodebuild-command-service.js +0 -1
- package/lib/services/ios/xcodebuild-service.js +1 -2
- package/lib/services/ios-debugger-port-service.js +0 -1
- package/lib/services/ios-device-debug-service.js +0 -1
- package/lib/services/ios-entitlements-service.js +0 -1
- package/lib/services/ios-extensions-service.js +0 -1
- package/lib/services/ios-log-filter.js +0 -20
- package/lib/services/ios-native-target-service.js +4 -6
- package/lib/services/ios-project-service.js +1 -91
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.js +0 -1
- package/lib/services/ip-service.js +0 -2
- package/lib/services/itmstransporter-service.js +0 -1
- package/lib/services/karma-execution.js +0 -2
- package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
- package/lib/services/livesync/android-device-livesync-service.js +0 -2
- package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
- package/lib/services/livesync/android-livesync-service.js +0 -1
- package/lib/services/livesync/android-livesync-tool.js +0 -4
- package/lib/services/livesync/device-livesync-service-base.js +0 -2
- package/lib/services/livesync/ios-device-livesync-service.js +0 -7
- package/lib/services/livesync/ios-livesync-service.js +0 -2
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.js +0 -5
- package/lib/services/livesync-process-data-service.js +0 -1
- package/lib/services/log-parser-service.js +0 -1
- package/lib/services/log-source-map-service.js +0 -15
- package/lib/services/marking-mode-service.js +5 -8
- package/lib/services/metadata-filtering-service.js +0 -1
- package/lib/services/npm-config-service.js +0 -4
- package/lib/services/pacote-service.js +0 -7
- package/lib/services/performance-service.js +1 -3
- package/lib/services/platform/add-platform-service.js +2 -49
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.js +2 -5
- package/lib/services/platform-environment-requirements.js +3 -8
- package/lib/services/platform-project-service-base.js +0 -1
- package/lib/services/platforms-data-service.js +0 -1
- package/lib/services/plugins-service.js +2 -20
- package/lib/services/prepare-data-service.js +0 -1
- package/lib/services/project-backup-service.js +0 -4
- package/lib/services/project-changes-service.js +3 -14
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.js +2 -21
- package/lib/services/project-data-service.js +7 -36
- package/lib/services/project-name-service.js +0 -1
- package/lib/services/project-service.js +0 -10
- package/lib/services/project-templates-service.js +2 -3
- package/lib/services/qr-code-terminal-service.js +0 -1
- package/lib/services/require-service.js +0 -1
- package/lib/services/start-service.js +0 -1
- package/lib/services/temp-service.js +0 -1
- package/lib/services/terminal-spinner-service.js +0 -2
- package/lib/services/test-execution-service.js +2 -9
- package/lib/services/test-initialization-service.js +0 -4
- package/lib/services/timeline-profiler-service.js +0 -1
- package/lib/services/user-settings-service.js +0 -1
- package/lib/services/versions-service.js +4 -6
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/webpack/webpack-compiler-service.js +35 -57
- package/lib/services/xcconfig-service.js +0 -2
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.js +1 -2
- package/lib/tools/config-manipulation/config-transformer.js +0 -12
- package/lib/tools/node-modules/node-modules-builder.js +0 -1
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
- package/lib/yarn-package-manager.js +0 -1
- package/lib/yarn2-package-manager.js +0 -3
- package/package.json +1 -1
package/lib/options.js
CHANGED
|
@@ -14,7 +14,6 @@ class Options {
|
|
|
14
14
|
this.setArgv();
|
|
15
15
|
}
|
|
16
16
|
this.argv.bundle = "webpack";
|
|
17
|
-
// Check if the user has explicitly provide --hmr and --release options from command line
|
|
18
17
|
if (this.initialArgv.release && this.initialArgv.hmr) {
|
|
19
18
|
this.$errors.fail("The options --release and --hmr cannot be used simultaneously.");
|
|
20
19
|
}
|
|
@@ -22,8 +21,6 @@ class Options {
|
|
|
22
21
|
this.argv.hmr = !this.argv.release;
|
|
23
22
|
}
|
|
24
23
|
if (this.argv.debugBrk) {
|
|
25
|
-
// we cannot use HMR along with debug-brk because we have to restart the app
|
|
26
|
-
// on each livesync in order to stop and allow debugging on app start
|
|
27
24
|
this.argv.hmr = false;
|
|
28
25
|
}
|
|
29
26
|
if (this.argv.justlaunch) {
|
|
@@ -41,18 +38,17 @@ class Options {
|
|
|
41
38
|
"timeout",
|
|
42
39
|
"_",
|
|
43
40
|
"$0",
|
|
44
|
-
];
|
|
41
|
+
];
|
|
45
42
|
this.globalOptions = {
|
|
46
|
-
log: { type: "string"
|
|
47
|
-
verbose: { type: "boolean"
|
|
48
|
-
version: { type: "boolean"
|
|
49
|
-
help: { type: "boolean"
|
|
50
|
-
profileDir: { type: "string"
|
|
51
|
-
analyticsClient: { type: "string"
|
|
52
|
-
path: { type: "string"
|
|
53
|
-
config: { type: "string"
|
|
54
|
-
|
|
55
|
-
_: { type: "string" /* OptionType.String */, hasSensitiveValue: false },
|
|
43
|
+
log: { type: "string", hasSensitiveValue: false },
|
|
44
|
+
verbose: { type: "boolean", hasSensitiveValue: false },
|
|
45
|
+
version: { type: "boolean", alias: "v", hasSensitiveValue: false },
|
|
46
|
+
help: { type: "boolean", alias: "h", hasSensitiveValue: false },
|
|
47
|
+
profileDir: { type: "string", hasSensitiveValue: true },
|
|
48
|
+
analyticsClient: { type: "string", hasSensitiveValue: false },
|
|
49
|
+
path: { type: "string", alias: "p", hasSensitiveValue: true },
|
|
50
|
+
config: { type: "string", alias: "c", hasSensitiveValue: true },
|
|
51
|
+
_: { type: "string", hasSensitiveValue: false },
|
|
56
52
|
};
|
|
57
53
|
this.options = _.extend({}, this.commonOptions, this.globalOptions);
|
|
58
54
|
this.setArgv();
|
|
@@ -68,164 +64,163 @@ class Options {
|
|
|
68
64
|
}
|
|
69
65
|
get commonOptions() {
|
|
70
66
|
return {
|
|
71
|
-
ipa: { type: "string"
|
|
72
|
-
frameworkPath: { type: "string"
|
|
73
|
-
frameworkName: { type: "string"
|
|
74
|
-
framework: { type: "string"
|
|
75
|
-
frameworkVersion: { type: "string"
|
|
76
|
-
forDevice: { type: "boolean"
|
|
67
|
+
ipa: { type: "string", hasSensitiveValue: true },
|
|
68
|
+
frameworkPath: { type: "string", hasSensitiveValue: true },
|
|
69
|
+
frameworkName: { type: "string", hasSensitiveValue: false },
|
|
70
|
+
framework: { type: "string", hasSensitiveValue: false },
|
|
71
|
+
frameworkVersion: { type: "string", hasSensitiveValue: false },
|
|
72
|
+
forDevice: { type: "boolean", hasSensitiveValue: false },
|
|
77
73
|
iCloudContainerEnvironment: {
|
|
78
|
-
type: "string"
|
|
74
|
+
type: "string",
|
|
79
75
|
hasSensitiveValue: false,
|
|
80
76
|
},
|
|
81
|
-
provision: { type: "object"
|
|
77
|
+
provision: { type: "object", hasSensitiveValue: true },
|
|
82
78
|
client: {
|
|
83
|
-
type: "boolean"
|
|
79
|
+
type: "boolean",
|
|
84
80
|
default: true,
|
|
85
81
|
hasSensitiveValue: false,
|
|
86
82
|
},
|
|
87
|
-
env: { type: "object"
|
|
88
|
-
production: { type: "boolean"
|
|
89
|
-
debugTransport: { type: "boolean"
|
|
90
|
-
keyStorePath: { type: "string"
|
|
91
|
-
keyStorePassword: { type: "string"
|
|
92
|
-
keyStoreAlias: { type: "string"
|
|
83
|
+
env: { type: "object", hasSensitiveValue: false },
|
|
84
|
+
production: { type: "boolean", hasSensitiveValue: false },
|
|
85
|
+
debugTransport: { type: "boolean", hasSensitiveValue: false },
|
|
86
|
+
keyStorePath: { type: "string", hasSensitiveValue: true },
|
|
87
|
+
keyStorePassword: { type: "string", hasSensitiveValue: true },
|
|
88
|
+
keyStoreAlias: { type: "string", hasSensitiveValue: true },
|
|
93
89
|
keyStoreAliasPassword: {
|
|
94
|
-
type: "string"
|
|
90
|
+
type: "string",
|
|
95
91
|
hasSensitiveValue: true,
|
|
96
92
|
},
|
|
97
|
-
ignoreScripts: { type: "boolean"
|
|
98
|
-
disableNpmInstall: { type: "boolean"
|
|
99
|
-
compileSdk: { type: "number"
|
|
100
|
-
port: { type: "number"
|
|
101
|
-
copyTo: { type: "string"
|
|
102
|
-
js: { type: "boolean"
|
|
103
|
-
javascript: { type: "boolean"
|
|
104
|
-
ng: { type: "boolean"
|
|
105
|
-
angular: { type: "boolean"
|
|
106
|
-
react: { type: "boolean"
|
|
107
|
-
reactjs: { type: "boolean"
|
|
108
|
-
vue: { type: "boolean"
|
|
109
|
-
vuejs: { type: "boolean"
|
|
110
|
-
svelte: { type: "boolean"
|
|
111
|
-
vision: { type: "boolean"
|
|
112
|
-
"vision-ng": { type: "boolean"
|
|
113
|
-
"vision-react": { type: "boolean"
|
|
114
|
-
"vision-solid": { type: "boolean"
|
|
115
|
-
"vision-svelte": { type: "boolean"
|
|
116
|
-
"vision-vue": { type: "boolean"
|
|
117
|
-
tsc: { type: "boolean"
|
|
118
|
-
ts: { type: "boolean"
|
|
119
|
-
typescript: { type: "boolean"
|
|
120
|
-
yarn: { type: "boolean"
|
|
121
|
-
yarn2: { type: "boolean"
|
|
122
|
-
pnpm: { type: "boolean"
|
|
123
|
-
androidTypings: { type: "boolean"
|
|
124
|
-
bundle: { type: "string"
|
|
125
|
-
all: { type: "boolean"
|
|
126
|
-
teamId: { type: "object"
|
|
127
|
-
chrome: { type: "boolean"
|
|
128
|
-
inspector: { type: "boolean"
|
|
129
|
-
clean: { type: "boolean"
|
|
93
|
+
ignoreScripts: { type: "boolean", hasSensitiveValue: false },
|
|
94
|
+
disableNpmInstall: { type: "boolean", hasSensitiveValue: false },
|
|
95
|
+
compileSdk: { type: "number", hasSensitiveValue: false },
|
|
96
|
+
port: { type: "number", hasSensitiveValue: false },
|
|
97
|
+
copyTo: { type: "string", hasSensitiveValue: true },
|
|
98
|
+
js: { type: "boolean", hasSensitiveValue: false },
|
|
99
|
+
javascript: { type: "boolean", hasSensitiveValue: false },
|
|
100
|
+
ng: { type: "boolean", hasSensitiveValue: false },
|
|
101
|
+
angular: { type: "boolean", hasSensitiveValue: false },
|
|
102
|
+
react: { type: "boolean", hasSensitiveValue: false },
|
|
103
|
+
reactjs: { type: "boolean", hasSensitiveValue: false },
|
|
104
|
+
vue: { type: "boolean", hasSensitiveValue: false },
|
|
105
|
+
vuejs: { type: "boolean", hasSensitiveValue: false },
|
|
106
|
+
svelte: { type: "boolean", hasSensitiveValue: false },
|
|
107
|
+
vision: { type: "boolean", hasSensitiveValue: false },
|
|
108
|
+
"vision-ng": { type: "boolean", hasSensitiveValue: false },
|
|
109
|
+
"vision-react": { type: "boolean", hasSensitiveValue: false },
|
|
110
|
+
"vision-solid": { type: "boolean", hasSensitiveValue: false },
|
|
111
|
+
"vision-svelte": { type: "boolean", hasSensitiveValue: false },
|
|
112
|
+
"vision-vue": { type: "boolean", hasSensitiveValue: false },
|
|
113
|
+
tsc: { type: "boolean", hasSensitiveValue: false },
|
|
114
|
+
ts: { type: "boolean", hasSensitiveValue: false },
|
|
115
|
+
typescript: { type: "boolean", hasSensitiveValue: false },
|
|
116
|
+
yarn: { type: "boolean", hasSensitiveValue: false },
|
|
117
|
+
yarn2: { type: "boolean", hasSensitiveValue: false },
|
|
118
|
+
pnpm: { type: "boolean", hasSensitiveValue: false },
|
|
119
|
+
androidTypings: { type: "boolean", hasSensitiveValue: false },
|
|
120
|
+
bundle: { type: "string", hasSensitiveValue: false },
|
|
121
|
+
all: { type: "boolean", hasSensitiveValue: false },
|
|
122
|
+
teamId: { type: "object", hasSensitiveValue: true },
|
|
123
|
+
chrome: { type: "boolean", hasSensitiveValue: false },
|
|
124
|
+
inspector: { type: "boolean", hasSensitiveValue: false },
|
|
125
|
+
clean: { type: "boolean", hasSensitiveValue: false },
|
|
130
126
|
watch: {
|
|
131
|
-
type: "boolean"
|
|
127
|
+
type: "boolean",
|
|
132
128
|
default: true,
|
|
133
129
|
hasSensitiveValue: false,
|
|
134
130
|
},
|
|
135
|
-
background: { type: "string"
|
|
136
|
-
username: { type: "string"
|
|
137
|
-
pluginName: { type: "string"
|
|
131
|
+
background: { type: "string", hasSensitiveValue: false },
|
|
132
|
+
username: { type: "string", hasSensitiveValue: true },
|
|
133
|
+
pluginName: { type: "string", hasSensitiveValue: false },
|
|
138
134
|
includeTypeScriptDemo: {
|
|
139
|
-
type: "string"
|
|
135
|
+
type: "string",
|
|
140
136
|
hasSensitiveValue: false,
|
|
141
137
|
},
|
|
142
|
-
includeAngularDemo: { type: "string"
|
|
138
|
+
includeAngularDemo: { type: "string", hasSensitiveValue: false },
|
|
143
139
|
hmr: {
|
|
144
|
-
type: "boolean"
|
|
140
|
+
type: "boolean",
|
|
145
141
|
hasSensitiveValue: false,
|
|
146
142
|
default: true,
|
|
147
143
|
},
|
|
148
144
|
collection: {
|
|
149
|
-
type: "string"
|
|
145
|
+
type: "string",
|
|
150
146
|
alias: "c",
|
|
151
147
|
hasSensitiveValue: false,
|
|
152
148
|
},
|
|
153
|
-
json: { type: "boolean"
|
|
154
|
-
avd: { type: "string"
|
|
155
|
-
|
|
156
|
-
config: { type: "array" /* OptionType.Array */, hasSensitiveValue: false },
|
|
149
|
+
json: { type: "boolean", hasSensitiveValue: false },
|
|
150
|
+
avd: { type: "string", hasSensitiveValue: true },
|
|
151
|
+
config: { type: "array", hasSensitiveValue: false },
|
|
157
152
|
insecure: {
|
|
158
|
-
type: "boolean"
|
|
153
|
+
type: "boolean",
|
|
159
154
|
alias: "k",
|
|
160
155
|
hasSensitiveValue: false,
|
|
161
156
|
},
|
|
162
|
-
debug: { type: "boolean"
|
|
163
|
-
timeout: { type: "string"
|
|
164
|
-
device: { type: "string"
|
|
165
|
-
availableDevices: { type: "boolean"
|
|
166
|
-
appid: { type: "string"
|
|
167
|
-
geny: { type: "string"
|
|
168
|
-
debugBrk: { type: "boolean"
|
|
169
|
-
debugPort: { type: "number"
|
|
170
|
-
start: { type: "boolean"
|
|
171
|
-
stop: { type: "boolean"
|
|
172
|
-
ddi: { type: "string"
|
|
173
|
-
justlaunch: { type: "boolean"
|
|
174
|
-
file: { type: "string"
|
|
175
|
-
force: { type: "boolean"
|
|
176
|
-
emulator: { type: "boolean"
|
|
177
|
-
simulator: { type: "boolean"
|
|
178
|
-
sdk: { type: "string"
|
|
179
|
-
template: { type: "string"
|
|
180
|
-
certificate: { type: "string"
|
|
181
|
-
certificatePassword: { type: "string"
|
|
157
|
+
debug: { type: "boolean", alias: "d", hasSensitiveValue: false },
|
|
158
|
+
timeout: { type: "string", hasSensitiveValue: false },
|
|
159
|
+
device: { type: "string", hasSensitiveValue: true },
|
|
160
|
+
availableDevices: { type: "boolean", hasSensitiveValue: false },
|
|
161
|
+
appid: { type: "string", hasSensitiveValue: true },
|
|
162
|
+
geny: { type: "string", hasSensitiveValue: true },
|
|
163
|
+
debugBrk: { type: "boolean", hasSensitiveValue: false },
|
|
164
|
+
debugPort: { type: "number", hasSensitiveValue: false },
|
|
165
|
+
start: { type: "boolean", hasSensitiveValue: false },
|
|
166
|
+
stop: { type: "boolean", hasSensitiveValue: false },
|
|
167
|
+
ddi: { type: "string", hasSensitiveValue: true },
|
|
168
|
+
justlaunch: { type: "boolean", hasSensitiveValue: false },
|
|
169
|
+
file: { type: "string", hasSensitiveValue: true },
|
|
170
|
+
force: { type: "boolean", alias: "f", hasSensitiveValue: false },
|
|
171
|
+
emulator: { type: "boolean", hasSensitiveValue: false },
|
|
172
|
+
simulator: { type: "boolean", hasSensitiveValue: false },
|
|
173
|
+
sdk: { type: "string", hasSensitiveValue: false },
|
|
174
|
+
template: { type: "string", hasSensitiveValue: true },
|
|
175
|
+
certificate: { type: "string", hasSensitiveValue: true },
|
|
176
|
+
certificatePassword: { type: "string", hasSensitiveValue: true },
|
|
182
177
|
release: {
|
|
183
|
-
type: "boolean"
|
|
178
|
+
type: "boolean",
|
|
184
179
|
alias: "r",
|
|
185
180
|
hasSensitiveValue: false,
|
|
186
181
|
},
|
|
187
|
-
markingMode: { type: "boolean"
|
|
188
|
-
var: { type: "object"
|
|
189
|
-
default: { type: "boolean"
|
|
190
|
-
count: { type: "number"
|
|
191
|
-
analyticsLogFile: { type: "string"
|
|
192
|
-
disableAnalytics: { type: "boolean"
|
|
193
|
-
cleanupLogFile: { type: "string"
|
|
182
|
+
markingMode: { type: "boolean", hasSensitiveValue: false },
|
|
183
|
+
var: { type: "object", hasSensitiveValue: true },
|
|
184
|
+
default: { type: "boolean", hasSensitiveValue: false },
|
|
185
|
+
count: { type: "number", hasSensitiveValue: false },
|
|
186
|
+
analyticsLogFile: { type: "string", hasSensitiveValue: true },
|
|
187
|
+
disableAnalytics: { type: "boolean", hasSensitiveValue: false },
|
|
188
|
+
cleanupLogFile: { type: "string", hasSensitiveValue: true },
|
|
194
189
|
hooks: {
|
|
195
|
-
type: "boolean"
|
|
190
|
+
type: "boolean",
|
|
196
191
|
default: true,
|
|
197
192
|
hasSensitiveValue: false,
|
|
198
193
|
},
|
|
199
194
|
link: {
|
|
200
|
-
type: "boolean"
|
|
195
|
+
type: "boolean",
|
|
201
196
|
default: false,
|
|
202
197
|
hasSensitiveValue: false,
|
|
203
198
|
},
|
|
204
|
-
gradlePath: { type: "string"
|
|
205
|
-
gradleArgs: { type: "string"
|
|
206
|
-
hostProjectPath: { type: "string"
|
|
199
|
+
gradlePath: { type: "string", hasSensitiveValue: false },
|
|
200
|
+
gradleArgs: { type: "string", hasSensitiveValue: false },
|
|
201
|
+
hostProjectPath: { type: "string", hasSensitiveValue: false },
|
|
207
202
|
hostProjectModuleName: {
|
|
208
|
-
type: "string"
|
|
203
|
+
type: "string",
|
|
209
204
|
hasSensitiveValue: false,
|
|
210
205
|
default: constants_1.APP_FOLDER_NAME,
|
|
211
206
|
},
|
|
212
|
-
aab: { type: "boolean"
|
|
213
|
-
performance: { type: "object"
|
|
207
|
+
aab: { type: "boolean", hasSensitiveValue: false },
|
|
208
|
+
performance: { type: "object", hasSensitiveValue: true },
|
|
214
209
|
appleApplicationSpecificPassword: {
|
|
215
|
-
type: "string"
|
|
210
|
+
type: "string",
|
|
216
211
|
hasSensitiveValue: true,
|
|
217
212
|
},
|
|
218
|
-
appleSessionBase64: { type: "string"
|
|
219
|
-
jar: { type: "string"
|
|
220
|
-
aar: { type: "string"
|
|
221
|
-
filter: { type: "string"
|
|
213
|
+
appleSessionBase64: { type: "string", hasSensitiveValue: true },
|
|
214
|
+
jar: { type: "string", hasSensitiveValue: true },
|
|
215
|
+
aar: { type: "string", hasSensitiveValue: true },
|
|
216
|
+
filter: { type: "string", hasSensitiveValue: true },
|
|
222
217
|
git: {
|
|
223
|
-
type: "boolean"
|
|
218
|
+
type: "boolean",
|
|
224
219
|
hasSensitiveValue: false,
|
|
225
220
|
default: true,
|
|
226
221
|
},
|
|
227
|
-
dryRun: { type: "boolean"
|
|
228
|
-
uniqueBundle: { type: "boolean"
|
|
222
|
+
dryRun: { type: "boolean", hasSensitiveValue: false },
|
|
223
|
+
uniqueBundle: { type: "boolean", hasSensitiveValue: false },
|
|
229
224
|
};
|
|
230
225
|
}
|
|
231
226
|
get optionNames() {
|
|
@@ -243,7 +238,6 @@ class Options {
|
|
|
243
238
|
parsed[optionName] = this.getOptionValue(optionName);
|
|
244
239
|
}
|
|
245
240
|
_.each(parsed, (value, originalOptionName) => {
|
|
246
|
-
// when this.options are passed to yargs, it returns all of them and the ones that are not part of process.argv are set to undefined.
|
|
247
241
|
if (value === undefined) {
|
|
248
242
|
return;
|
|
249
243
|
}
|
|
@@ -253,14 +247,14 @@ class Options {
|
|
|
253
247
|
this.$errors.failWithHelp(`The option '${originalOptionName}' is not supported.`);
|
|
254
248
|
}
|
|
255
249
|
const optionType = this.getOptionType(optionName), optionValue = parsed[optionName];
|
|
256
|
-
if (_.isArray(optionValue) && optionType !== "array"
|
|
250
|
+
if (_.isArray(optionValue) && optionType !== "array") {
|
|
257
251
|
this.$errors.failWithHelp("The '%s' option requires a single value.", originalOptionName);
|
|
258
252
|
}
|
|
259
|
-
else if (optionType === "string"
|
|
253
|
+
else if (optionType === "string" &&
|
|
260
254
|
helpers.isNullOrWhitespace(optionValue)) {
|
|
261
255
|
this.$errors.failWithHelp("The option '%s' requires non-empty value.", originalOptionName);
|
|
262
256
|
}
|
|
263
|
-
else if (optionType === "array"
|
|
257
|
+
else if (optionType === "array" &&
|
|
264
258
|
optionValue.length === 0) {
|
|
265
259
|
this.$errors.failWithHelp(`The option '${originalOptionName}' requires one or more values, separated by a space.`);
|
|
266
260
|
}
|
|
@@ -288,16 +282,9 @@ class Options {
|
|
|
288
282
|
}
|
|
289
283
|
return true;
|
|
290
284
|
}
|
|
291
|
-
// If you pass value with dash, yargs adds it to yargs.argv in two ways:
|
|
292
|
-
// with dash and without dash, replacing first symbol after it with its toUpper equivalent
|
|
293
|
-
// ex, "$ <cli name> emulate android --profile-dir" will add profile-dir to yargs.argv as profile-dir and profileDir
|
|
294
|
-
// IMPORTANT: In your code, it is better to use the value without dashes (profileDir in the example).
|
|
295
|
-
// This way your code will work in case "$ <cli name> emulate android --profile-dir" or "$ <cli name> emulate android --profileDir" is used by user.
|
|
296
285
|
getNonDashedOptionName(optionName) {
|
|
297
286
|
const matchUpperCaseLetters = optionName.match(Options.NONDASHED_OPTION_REGEX);
|
|
298
287
|
if (matchUpperCaseLetters) {
|
|
299
|
-
// get here if option with upperCase letter is specified, for example profileDir
|
|
300
|
-
// check if in knownOptions we have its kebabCase presentation
|
|
301
288
|
const secondaryOptionName = matchUpperCaseLetters[1] +
|
|
302
289
|
matchUpperCaseLetters[2].toUpperCase() +
|
|
303
290
|
matchUpperCaseLetters[3] || "";
|
|
@@ -326,18 +313,15 @@ class Options {
|
|
|
326
313
|
const args = argv._.slice(1);
|
|
327
314
|
const commands = yok_1.injector
|
|
328
315
|
.getRegisteredCommandsNames(false)
|
|
329
|
-
.filter((c) => c != "/?");
|
|
316
|
+
.filter((c) => c != "/?");
|
|
330
317
|
const currentDepth = args.length > 0 ? args.length - 1 : 0;
|
|
331
318
|
const current = (_a = current_ !== null && current_ !== void 0 ? current_ : args[currentDepth]) !== null && _a !== void 0 ? _a : "";
|
|
332
|
-
// split all commands into their components ie. "device|list" => ["device", "list"]
|
|
333
319
|
const matchGroups = commands.map((c) => c.split("|"));
|
|
334
|
-
// find all commands that match the current depth and all the previous args
|
|
335
320
|
const possibleMatches = matchGroups.filter((group) => {
|
|
336
321
|
return group.slice(0, currentDepth).every((g, i) => {
|
|
337
322
|
return g === args[i] || args[i].at(0) === "-";
|
|
338
323
|
});
|
|
339
324
|
});
|
|
340
|
-
// filter out duplicates
|
|
341
325
|
const completions = [
|
|
342
326
|
...new Set(possibleMatches
|
|
343
327
|
.map((match) => {
|
|
@@ -345,28 +329,21 @@ class Options {
|
|
|
345
329
|
})
|
|
346
330
|
.filter(Boolean)),
|
|
347
331
|
];
|
|
348
|
-
// autocomplete long -- options
|
|
349
332
|
if (current.startsWith("--")) {
|
|
350
333
|
return this.optionNames.filter((o) => o !== "_").map((o) => `--${o}`);
|
|
351
334
|
}
|
|
352
|
-
// autocomple short - options
|
|
353
335
|
if (current.startsWith("-")) {
|
|
354
336
|
return this.shorthands.map((o) => `-${o}`);
|
|
355
337
|
}
|
|
356
|
-
// autocomplete matched completions
|
|
357
338
|
return completions;
|
|
358
339
|
});
|
|
359
340
|
this.initialArgv = parsed.argv;
|
|
360
341
|
this.argv = parsed.options(opts).argv;
|
|
361
|
-
// For backwards compatibility
|
|
362
|
-
// Previously profileDir had a default option and calling `this.$options.profileDir` always returned valid result.
|
|
363
|
-
// Now the profileDir should be used from $settingsService, but ensure the `this.$options.profileDir` returns the same value.
|
|
364
342
|
this.$settingsService.setSettings({
|
|
365
343
|
profileDir: this.argv.profileDir,
|
|
366
344
|
});
|
|
367
345
|
this.argv.profileDir = this.argv["profile-dir"] =
|
|
368
346
|
this.$settingsService.getProfileDir();
|
|
369
|
-
// if justlaunch is set, it takes precedence over the --watch flag and the default true value
|
|
370
347
|
if (this.argv.justlaunch) {
|
|
371
348
|
this.argv.watch = false;
|
|
372
349
|
}
|
|
@@ -382,7 +359,6 @@ class Options {
|
|
|
382
359
|
if (this.argv.javascript) {
|
|
383
360
|
this.argv.js = true;
|
|
384
361
|
}
|
|
385
|
-
// alias --simulator to --emulator
|
|
386
362
|
if (this.argv.simulator) {
|
|
387
363
|
this.argv.emulator = this.argv.simulator;
|
|
388
364
|
}
|
|
@@ -407,4 +383,3 @@ exports.Options = Options;
|
|
|
407
383
|
Options.DASHED_OPTION_REGEX = /(.+?)([A-Z])(.*)/;
|
|
408
384
|
Options.NONDASHED_OPTION_REGEX = /(.+?)[-]([a-zA-Z])(.*)/;
|
|
409
385
|
yok_1.injector.register("options", Options);
|
|
410
|
-
//# sourceMappingURL=options.js.map
|
|
@@ -24,7 +24,6 @@ class PackageInstallationManager {
|
|
|
24
24
|
async getLatestCompatibleVersion(packageName, referenceVersion) {
|
|
25
25
|
referenceVersion = referenceVersion || this.$staticConfig.version;
|
|
26
26
|
const isPreReleaseVersion = semver.prerelease(referenceVersion) !== null;
|
|
27
|
-
// if the user has some v.v.v-prerelease-xx.xx pre-release version, include pre-release versions in the search query.
|
|
28
27
|
const compatibleVersionRange = isPreReleaseVersion
|
|
29
28
|
? `~${referenceVersion}`
|
|
30
29
|
: `~${semver.major(referenceVersion)}.${semver.minor(referenceVersion)}.0`;
|
|
@@ -106,14 +105,13 @@ class PackageInstallationManager {
|
|
|
106
105
|
}
|
|
107
106
|
async getInspectorFromCache(inspectorNpmPackageName, projectDir) {
|
|
108
107
|
const inspectorPath = path.join(projectDir, constants.NODE_MODULES_FOLDER_NAME, inspectorNpmPackageName);
|
|
109
|
-
// local installation takes precedence over cache
|
|
110
108
|
if (this.inspectorAlreadyInstalled(inspectorPath)) {
|
|
111
109
|
return inspectorPath;
|
|
112
110
|
}
|
|
113
111
|
const cachePath = this.getInspectorCachePath();
|
|
114
112
|
this.prepareCacheDir(cachePath);
|
|
115
113
|
const pathToPackageInCache = path.join(cachePath, constants.NODE_MODULES_FOLDER_NAME, inspectorNpmPackageName);
|
|
116
|
-
const iOSFrameworkNSValue = this.$projectDataService.getRuntimePackage(projectDir, "ios"
|
|
114
|
+
const iOSFrameworkNSValue = this.$projectDataService.getRuntimePackage(projectDir, "ios");
|
|
117
115
|
const version = await this.getLatestCompatibleVersion(inspectorNpmPackageName, iOSFrameworkNSValue.version);
|
|
118
116
|
let shouldInstall = !this.$fs.exists(pathToPackageInCache);
|
|
119
117
|
if (!shouldInstall) {
|
|
@@ -174,10 +172,6 @@ class PackageInstallationManager {
|
|
|
174
172
|
}
|
|
175
173
|
return await this.$packageManager.install(packageName, pathToSave, npmOptions);
|
|
176
174
|
}
|
|
177
|
-
/**
|
|
178
|
-
* This function must not be used with packageName being a URL or local file,
|
|
179
|
-
* because npm view doens't work with those
|
|
180
|
-
*/
|
|
181
175
|
async getVersion(packageName, version) {
|
|
182
176
|
var _a;
|
|
183
177
|
let data = await this.$packageManager.view(packageName, {
|
|
@@ -190,4 +184,3 @@ class PackageInstallationManager {
|
|
|
190
184
|
}
|
|
191
185
|
exports.PackageInstallationManager = PackageInstallationManager;
|
|
192
186
|
yok_1.injector.register("packageInstallationManager", PackageInstallationManager);
|
|
193
|
-
//# sourceMappingURL=package-installation-manager.js.map
|
package/lib/package-manager.js
CHANGED
|
@@ -92,7 +92,6 @@ class PackageManager {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
catch (err) {
|
|
95
|
-
// ignore error, but log info
|
|
96
95
|
this.$logger.trace("Tried to read cli.packageManager from project config and failed. Error is: ", err);
|
|
97
96
|
}
|
|
98
97
|
if (pm === constants_1.PackageManagers.yarn || this.$options.yarn) {
|
|
@@ -160,4 +159,3 @@ __decorate([
|
|
|
160
159
|
(0, decorators_1.invokeInit)()
|
|
161
160
|
], PackageManager.prototype, "getCachePath", null);
|
|
162
161
|
yok_1.injector.register("packageManager", PackageManager);
|
|
163
|
-
//# sourceMappingURL=package-manager.js.map
|
|
@@ -24,14 +24,13 @@ class PnpmPackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
24
24
|
if (config.disableNpmInstall) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
delete config.dev;
|
|
27
|
+
delete config.dev;
|
|
28
28
|
if (config.ignoreScripts) {
|
|
29
29
|
config["ignore-scripts"] = true;
|
|
30
30
|
}
|
|
31
31
|
const packageJsonPath = path.join(pathToSave, "package.json");
|
|
32
32
|
const jsonContentBefore = this.$fs.readJson(packageJsonPath);
|
|
33
33
|
const flags = this.getFlagsString(config, true);
|
|
34
|
-
// With pnpm we need to install as "flat" or some imports wont be found
|
|
35
34
|
let params = ["i", "--shamefully-hoist"];
|
|
36
35
|
const isInstallingAllDependencies = packageName === pathToSave;
|
|
37
36
|
if (!isInstallingAllDependencies) {
|
|
@@ -49,7 +48,6 @@ class PnpmPackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
uninstall(packageName, config, cwd) {
|
|
52
|
-
// pnpm does not want save option in remove. It saves it by default
|
|
53
51
|
delete config["save"];
|
|
54
52
|
const flags = this.getFlagsString(config, false);
|
|
55
53
|
return this.$childProcess.exec(`pnpm remove ${packageName} ${flags}`, {
|
|
@@ -117,4 +115,3 @@ __decorate([
|
|
|
117
115
|
(0, decorators_1.exported)("pnpm")
|
|
118
116
|
], PnpmPackageManager.prototype, "getCachePath", null);
|
|
119
117
|
yok_1.injector.register("pnpm", PnpmPackageManager);
|
|
120
|
-
//# sourceMappingURL=pnpm-package-manager.js.map
|
package/lib/project-data.js
CHANGED
|
@@ -19,7 +19,6 @@ class ProjectData {
|
|
|
19
19
|
this.warnProjectId();
|
|
20
20
|
return this.projectIdentifiers.ios;
|
|
21
21
|
}
|
|
22
|
-
//just in case hook/extension modifies it.
|
|
23
22
|
set projectId(identifier) {
|
|
24
23
|
this.warnProjectId();
|
|
25
24
|
this.projectIdentifiers.ios = identifier;
|
|
@@ -45,7 +44,6 @@ class ProjectData {
|
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
46
|
projectDir = projectDir || this.$projectHelper.projectDir;
|
|
48
|
-
// If no project found, projectDir should be null
|
|
49
47
|
if (projectDir) {
|
|
50
48
|
const projectFilePath = this.getProjectFilePath(projectDir);
|
|
51
49
|
if (this.$fs.exists(projectFilePath)) {
|
|
@@ -98,6 +96,10 @@ class ProjectData {
|
|
|
98
96
|
this.nsConfig && this.nsConfig.webpackConfigPath
|
|
99
97
|
? path.resolve(this.projectDir, this.nsConfig.webpackConfigPath)
|
|
100
98
|
: path.join(this.projectDir, "webpack.config.js");
|
|
99
|
+
this.bundlerConfigPath =
|
|
100
|
+
this.nsConfig && this.nsConfig.bundlerConfigPath
|
|
101
|
+
? path.resolve(this.projectDir, this.nsConfig.bundlerConfigPath)
|
|
102
|
+
: null;
|
|
101
103
|
return;
|
|
102
104
|
}
|
|
103
105
|
this.errorInvalidProject(projectDir);
|
|
@@ -112,7 +114,6 @@ class ProjectData {
|
|
|
112
114
|
errorInvalidProject(projectDir) {
|
|
113
115
|
const currentDir = path.resolve(".");
|
|
114
116
|
this.$logger.trace(`Unable to find project. projectDir: ${projectDir}, options.path: ${this.$options.path}, ${currentDir}`);
|
|
115
|
-
// This is the case when no project file found
|
|
116
117
|
this.$errors.fail("No project found at or above '%s' and neither was a --path specified.", projectDir || this.$options.path || currentDir);
|
|
117
118
|
}
|
|
118
119
|
getProjectFilePath(projectDir) {
|
|
@@ -128,10 +129,6 @@ class ProjectData {
|
|
|
128
129
|
return this.nsConfig[constants.CONFIG_NS_APP_RESOURCES_ENTRY];
|
|
129
130
|
}
|
|
130
131
|
return constants.APP_RESOURCES_FOLDER_NAME;
|
|
131
|
-
// return path.join(
|
|
132
|
-
// this.getAppDirectoryRelativePath(),
|
|
133
|
-
// constants.APP_RESOURCES_FOLDER_NAME
|
|
134
|
-
// );
|
|
135
132
|
}
|
|
136
133
|
getAppDirectoryPath(projectDir) {
|
|
137
134
|
const appRelativePath = this.getAppDirectoryRelativePath();
|
|
@@ -145,7 +142,6 @@ class ProjectData {
|
|
|
145
142
|
return constants.SRC_DIR;
|
|
146
143
|
}
|
|
147
144
|
else {
|
|
148
|
-
// legacy project setup often uses app folder
|
|
149
145
|
return constants.APP_FOLDER_NAME;
|
|
150
146
|
}
|
|
151
147
|
}
|
|
@@ -203,9 +199,6 @@ class ProjectData {
|
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
exports.ProjectData = ProjectData;
|
|
206
|
-
/**
|
|
207
|
-
* NOTE: Order of the elements is important as the TypeScript dependencies are commonly included in Angular project as well.
|
|
208
|
-
*/
|
|
209
202
|
ProjectData.PROJECT_TYPES = [
|
|
210
203
|
{
|
|
211
204
|
type: constants.ProjectTypes.JsFlavorName,
|
|
@@ -243,4 +236,3 @@ __decorate([
|
|
|
243
236
|
(0, decorators_1.cache)()
|
|
244
237
|
], ProjectData.prototype, "warnProjectId", null);
|
|
245
238
|
yok_1.injector.register("projectData", ProjectData, true);
|
|
246
|
-
//# sourceMappingURL=project-data.js.map
|
|
@@ -44,4 +44,3 @@ class ProjectFilesProvider extends project_files_provider_base_1.ProjectFilesPro
|
|
|
44
44
|
exports.ProjectFilesProvider = ProjectFilesProvider;
|
|
45
45
|
ProjectFilesProvider.INTERNAL_NONPROJECT_FILES = ["**/*.ts"];
|
|
46
46
|
yok_1.injector.register("projectFilesProvider", ProjectFilesProvider);
|
|
47
|
-
//# sourceMappingURL=project-files-provider.js.map
|