nativescript 8.7.2 → 8.8.0-embed.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/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 +1 -2
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.js +0 -4
- 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 -3
- 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/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 +2 -12
- 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/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 +2 -3
- 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/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 +0 -5
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.js +1 -20
- 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 +3 -91
- package/lib/controllers/platform-controller.js +1 -9
- package/lib/controllers/prepare-controller.js +10 -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 +2 -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 +1 -1
- package/lib/data/run-data.js +0 -1
- package/lib/declarations.d.ts +12 -2
- package/lib/definitions/platform.d.ts +1 -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 +17 -10
- 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 +123 -141
- 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 +0 -12
- package/lib/providers/project-files-provider.js +1 -2
- 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 +12 -34
- package/lib/services/android-project-service.js +22 -86
- 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/assets-generation/assets-generation-service.js +13 -17
- 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 +3 -3
- 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 -9
- 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 +0 -1
- 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 +24 -26
- 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 +3 -7
- package/lib/services/livesync/android-livesync-service.js +2 -3
- 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 +2 -4
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.js +4 -8
- 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 +3 -17
- 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 +9 -48
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.js +8 -8
- package/lib/services/platform-environment-requirements.js +6 -9
- 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 +9 -19
- 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 +11 -13
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.js +1 -18
- 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 +15 -48
- package/lib/services/xcconfig-service.js +0 -2
- package/lib/services/xcproj-service.js +12 -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 +2 -2
- package/vendor/gradle-plugin/build.gradle +21 -6
- package/vendor/gradle-plugin/settings.gradle +13 -3
- package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/node_modules/rimraf/CHANGELOG.md +0 -65
- package/node_modules/stringify-package/CHANGELOG.md +0 -16
|
@@ -25,8 +25,7 @@ const constants_1 = require("../../constants");
|
|
|
25
25
|
const yok_1 = require("../../common/yok");
|
|
26
26
|
const package_path_helper_1 = require("../../helpers/package-path-helper");
|
|
27
27
|
class WebpackCompilerService extends events_1.EventEmitter {
|
|
28
|
-
constructor($options, $errors, $childProcess, $fs, $hooksService, $hostInfo, $logger, $mobileHelper, $cleanupService, $packageManager, $packageInstallationManager
|
|
29
|
-
) {
|
|
28
|
+
constructor($options, $errors, $childProcess, $fs, $hooksService, $hostInfo, $logger, $mobileHelper, $cleanupService, $packageManager, $packageInstallationManager) {
|
|
30
29
|
super();
|
|
31
30
|
this.$options = $options;
|
|
32
31
|
this.$errors = $errors;
|
|
@@ -61,23 +60,14 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
61
60
|
});
|
|
62
61
|
childProcess.on("message", (message) => {
|
|
63
62
|
this.$logger.trace("Message from webpack", message);
|
|
64
|
-
// if we are on webpack5 - we handle HMR in a slightly different way
|
|
65
63
|
if (typeof message === "object" &&
|
|
66
64
|
"version" in message &&
|
|
67
65
|
"type" in message) {
|
|
68
|
-
// first compilation can be ignored because it will be synced regardless
|
|
69
|
-
// handling it here would trigger 2 syncs
|
|
70
66
|
if (isFirstWebpackWatchCompilation) {
|
|
71
67
|
isFirstWebpackWatchCompilation = false;
|
|
72
68
|
resolve(childProcess);
|
|
73
69
|
return;
|
|
74
70
|
}
|
|
75
|
-
// if ((message as IWebpackMessage).type === "hmr-status") {
|
|
76
|
-
// // we pass message through our event-bus to be handled wherever needed
|
|
77
|
-
// // in this case webpack-hmr-status-service listens for this event
|
|
78
|
-
// this.$sharedEventBus.emit("webpack:hmr-status", message);
|
|
79
|
-
// return;
|
|
80
|
-
// }
|
|
81
71
|
return this.handleHMRMessage(message, platformData, projectData, prepareData);
|
|
82
72
|
}
|
|
83
73
|
if (message === "Webpack compilation complete.") {
|
|
@@ -92,7 +82,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
92
82
|
prepareData.hmr ? message.hash : "";
|
|
93
83
|
return;
|
|
94
84
|
}
|
|
95
|
-
// Persist the previousHash value before calling `this.getUpdatedEmittedFiles` as it will modify the expectedHashes object with the current hash
|
|
96
85
|
const previousHash = this.expectedHashes[platformData.platformNameLowerCase];
|
|
97
86
|
let result;
|
|
98
87
|
if (prepareData.hmr) {
|
|
@@ -105,8 +94,8 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
105
94
|
hash: "",
|
|
106
95
|
};
|
|
107
96
|
}
|
|
108
|
-
const files = result.emittedFiles.map((file) => path.join(platformData.appDestinationDirectoryPath,
|
|
109
|
-
const fallbackFiles = result.fallbackFiles.map((file) => path.join(platformData.appDestinationDirectoryPath,
|
|
97
|
+
const files = result.emittedFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.nativeHostModule, file));
|
|
98
|
+
const fallbackFiles = result.fallbackFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.nativeHostModule, file));
|
|
110
99
|
const data = {
|
|
111
100
|
files,
|
|
112
101
|
hasOnlyHotUpdateFiles: files.every((f) => f.indexOf("hot-update") > -1),
|
|
@@ -117,7 +106,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
117
106
|
platform: platformData.platformNameLowerCase,
|
|
118
107
|
};
|
|
119
108
|
this.$logger.trace("Generated data from webpack message:", data);
|
|
120
|
-
// the hash of the compilation is the same as the previous one and there are only hot updates produced
|
|
121
109
|
if (data.hasOnlyHotUpdateFiles && previousHash === message.hash) {
|
|
122
110
|
return;
|
|
123
111
|
}
|
|
@@ -196,9 +184,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
196
184
|
}
|
|
197
185
|
shouldUsePreserveSymlinksOption() {
|
|
198
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
-
// pnpm does not require symlink (https://github.com/nodejs/node-eps/issues/46#issuecomment-277373566)
|
|
200
|
-
// and it also does not work in some cases.
|
|
201
|
-
// Check https://github.com/NativeScript/nativescript-cli/issues/5259 for more information
|
|
202
187
|
const currentPackageManager = yield this.$packageManager.getPackageManagerName();
|
|
203
188
|
const res = currentPackageManager !== constants_1.PackageManagers.pnpm;
|
|
204
189
|
return res;
|
|
@@ -229,10 +214,18 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
229
214
|
args.push("--watch");
|
|
230
215
|
}
|
|
231
216
|
const stdio = prepareData.watch ? ["ipc"] : "inherit";
|
|
232
|
-
const
|
|
217
|
+
const options = {
|
|
233
218
|
cwd: projectData.projectDir,
|
|
234
219
|
stdio,
|
|
235
|
-
}
|
|
220
|
+
};
|
|
221
|
+
if (this.$options.nativeHost) {
|
|
222
|
+
options.env = {
|
|
223
|
+
USER_PROJECT_PLATFORMS_ANDROID: this.$options.nativeHost,
|
|
224
|
+
USER_PROJECT_PLATFORMS_ANDROID_MODULE: this.$options.nativeHostModule,
|
|
225
|
+
USER_PROJECT_PLATFORMS_IOS: this.$options.nativeHost,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
const childProcess = this.$childProcess.spawn(process.execPath, args, options);
|
|
236
229
|
this.webpackProcesses[platformData.platformNameLowerCase] = childProcess;
|
|
237
230
|
yield this.$cleanupService.addKillProcess(childProcess.pid.toString());
|
|
238
231
|
return childProcess;
|
|
@@ -250,28 +243,16 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
250
243
|
});
|
|
251
244
|
envData.verbose = envData.verbose || this.$logger.isVerbose();
|
|
252
245
|
envData.production = envData.production || prepareData.release;
|
|
253
|
-
// add the config file name to the env data so the webpack process can read the
|
|
254
|
-
// correct config file when resolving the CLI lib and the config service
|
|
255
|
-
// we are explicitly setting it to false to force using the defaults
|
|
256
246
|
envData.config =
|
|
257
247
|
(_b = (_a = process.env.NATIVESCRIPT_CONFIG_NAME) !== null && _a !== void 0 ? _a : this.$options.config) !== null && _b !== void 0 ? _b : "false";
|
|
258
|
-
// explicitly set the env variable
|
|
259
248
|
process.env.NATIVESCRIPT_CONFIG_NAME = envData.config;
|
|
260
|
-
// The snapshot generation is wrongly located in the Webpack plugin.
|
|
261
|
-
// It should be moved in the Native Prepare of the CLI or a Gradle task in the Runtime.
|
|
262
|
-
// As a workaround, we skip the mksnapshot, xxd and android-ndk calls based on skipNativePrepare.
|
|
263
|
-
// In this way the plugin will prepare only the snapshot JS entry without any native prepare and
|
|
264
|
-
// we will able to execute cloud builds with snapshot without having any local snapshot or Docker setup.
|
|
265
|
-
// TODO: Remove this flag when we remove the native part from the plugin.
|
|
266
249
|
envData.skipSnapshotTools =
|
|
267
250
|
prepareData.nativePrepare && prepareData.nativePrepare.skipNativePrepare;
|
|
268
|
-
// only set sourceMap if not explicitly set through a flag
|
|
269
251
|
if (typeof ((_c = prepareData === null || prepareData === void 0 ? void 0 : prepareData.env) === null || _c === void 0 ? void 0 : _c.sourceMap) === "undefined") {
|
|
270
252
|
if (!prepareData.release) {
|
|
271
253
|
envData.sourceMap = true;
|
|
272
254
|
}
|
|
273
255
|
}
|
|
274
|
-
// convert string to boolean
|
|
275
256
|
if (envData.sourceMap === "true" || envData.sourceMap === "false") {
|
|
276
257
|
envData.sourceMap = envData.sourceMap === "true";
|
|
277
258
|
}
|
|
@@ -322,15 +303,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
322
303
|
}
|
|
323
304
|
getUpdatedEmittedFiles(allEmittedFiles, chunkFiles, nextHash, platform) {
|
|
324
305
|
const currentHash = this.getCurrentHotUpdateHash(allEmittedFiles);
|
|
325
|
-
// This logic is needed as there are already cases when webpack doesn't emit any files physically.
|
|
326
|
-
// We've set noEmitOnErrors in webpack.config.js based on noEmitOnError from tsconfig.json,
|
|
327
|
-
// so webpack doesn't emit any files when noEmitOnErrors: true is set in webpack.config.js and
|
|
328
|
-
// there is a compilation error in the source code. On the other side, hmr generates new hot-update files
|
|
329
|
-
// on every change and the hash of the next hmr update is written inside hot-update.json file.
|
|
330
|
-
// Although webpack doesn't emit any files, hmr hash is still generated. The hash is generated per compilation no matter
|
|
331
|
-
// if files will be emitted or not. This way, the first successful compilation after fixing the compilation error generates
|
|
332
|
-
// a hash that is not the same as the one expected in the latest emitted hot-update.json file.
|
|
333
|
-
// As a result, the hmr chain is broken and the changes are not applied.
|
|
334
306
|
const isHashValid = nextHash
|
|
335
307
|
? this.expectedHashes[platform] === currentHash
|
|
336
308
|
: true;
|
|
@@ -349,7 +321,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
349
321
|
let hotHash;
|
|
350
322
|
const hotUpdateScripts = emittedFiles.filter((x) => x.endsWith(".hot-update.js"));
|
|
351
323
|
if (hotUpdateScripts && hotUpdateScripts.length) {
|
|
352
|
-
// the hash is the same for each hot update in the current compilation
|
|
353
324
|
const hotUpdateName = hotUpdateScripts[0];
|
|
354
325
|
const matcher = /^(.+)\.(.+)\.hot-update/gm;
|
|
355
326
|
const matches = matcher.exec(hotUpdateName);
|
|
@@ -369,15 +340,13 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
369
340
|
});
|
|
370
341
|
}
|
|
371
342
|
handleHMRMessage(message, platformData, projectData, prepareData) {
|
|
372
|
-
// handle new webpack hmr packets
|
|
373
343
|
this.$logger.trace("Received message from webpack process:", message);
|
|
374
344
|
if (message.type !== "compilation") {
|
|
375
345
|
return;
|
|
376
346
|
}
|
|
377
347
|
this.$logger.trace("Webpack build done!");
|
|
378
|
-
const files = message.data.emittedAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath,
|
|
379
|
-
const staleFiles = message.data.staleAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath,
|
|
380
|
-
// extract last hash from emitted filenames
|
|
348
|
+
const files = message.data.emittedAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.nativeHostModule, asset));
|
|
349
|
+
const staleFiles = message.data.staleAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.nativeHostModule, asset));
|
|
381
350
|
const lastHash = (() => {
|
|
382
351
|
const absoluteFileNameWithLastHash = files.find((fileName) => fileName.endsWith("hot-update.js"));
|
|
383
352
|
if (!absoluteFileNameWithLastHash) {
|
|
@@ -390,7 +359,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
390
359
|
}
|
|
391
360
|
})();
|
|
392
361
|
if (!files.length) {
|
|
393
|
-
// ignore compilations if no new files are emitted
|
|
394
362
|
return;
|
|
395
363
|
}
|
|
396
364
|
this.emit(constants_1.WEBPACK_COMPILATION_COMPLETE, {
|
|
@@ -440,4 +408,3 @@ __decorate([
|
|
|
440
408
|
], WebpackCompilerService.prototype, "startWebpackProcess", null);
|
|
441
409
|
exports.WebpackCompilerService = WebpackCompilerService;
|
|
442
410
|
yok_1.injector.register("webpackCompilerService", WebpackCompilerService);
|
|
443
|
-
//# sourceMappingURL=webpack-compiler-service.js.map
|
|
@@ -66,7 +66,6 @@ class XcconfigService {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
if (isPropertyParsed) {
|
|
69
|
-
// property can be an empty string, so we don't check for that.
|
|
70
69
|
return property;
|
|
71
70
|
}
|
|
72
71
|
}
|
|
@@ -75,4 +74,3 @@ class XcconfigService {
|
|
|
75
74
|
}
|
|
76
75
|
exports.XcconfigService = XcconfigService;
|
|
77
76
|
yok_1.injector.register("xcconfigService", XcconfigService);
|
|
78
|
-
//# sourceMappingURL=xcconfig-service.js.map
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const path = require("path");
|
|
4
|
+
const fs = require("fs");
|
|
4
5
|
const constants_1 = require("../constants");
|
|
5
6
|
const yok_1 = require("../common/yok");
|
|
6
7
|
class XcprojService {
|
|
7
8
|
getXcodeprojPath(projectData, projectRoot) {
|
|
8
9
|
return path.join(projectRoot, projectData.projectName + constants_1.IosProjectConstants.XcodeProjExtName);
|
|
9
10
|
}
|
|
11
|
+
findXcodeProject(dir) {
|
|
12
|
+
const filesAndDirs = fs.readdirSync(dir);
|
|
13
|
+
for (let i = 0; i < filesAndDirs.length; i++) {
|
|
14
|
+
const fullPath = path.join(dir, filesAndDirs[i]);
|
|
15
|
+
if (fs.statSync(fullPath).isDirectory() &&
|
|
16
|
+
filesAndDirs[i].endsWith(".xcodeproj")) {
|
|
17
|
+
return fullPath;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
10
22
|
}
|
|
11
23
|
yok_1.injector.register("xcprojService", XcprojService);
|
|
12
|
-
//# sourceMappingURL=xcproj-service.js.map
|
package/lib/shared-event-bus.js
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const events_1 = require("events");
|
|
4
4
|
const yok_1 = require("./common/yok");
|
|
5
|
-
/**
|
|
6
|
-
* Event Bus used by different services to emit state changes and
|
|
7
|
-
* allow listening for these state changes without needing a reference
|
|
8
|
-
* to the emitting service.
|
|
9
|
-
*/
|
|
10
5
|
class SharedEventBus extends events_1.EventEmitter {
|
|
11
6
|
}
|
|
12
7
|
yok_1.injector.register("sharedEventBus", SharedEventBus);
|
|
13
|
-
//# sourceMappingURL=shared-event-bus.js.map
|
package/lib/sys-info.js
CHANGED
|
@@ -93,7 +93,7 @@ class SysInfo {
|
|
|
93
93
|
if (macOSVersion && macOSVersion < constants_1.MacOSVersions.HighSierra) {
|
|
94
94
|
return {
|
|
95
95
|
message: (0, util_1.format)(constants_1.MacOSDeprecationStringFormat, macOSVersion),
|
|
96
|
-
severity: "high"
|
|
96
|
+
severity: "high",
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
return null;
|
|
@@ -118,4 +118,3 @@ __decorate([
|
|
|
118
118
|
], SysInfo.prototype, "getSupportedNodeVersionRange", null);
|
|
119
119
|
exports.SysInfo = SysInfo;
|
|
120
120
|
yok_1.injector.register("sysInfo", SysInfo);
|
|
121
|
-
//# sourceMappingURL=sys-info.js.map
|
|
@@ -55,7 +55,6 @@ class ConfigTransformer {
|
|
|
55
55
|
const parts = key.split(".");
|
|
56
56
|
const name = parts.shift();
|
|
57
57
|
const property = this.getProperty(name, parent);
|
|
58
|
-
// no android key, add it to parent to root
|
|
59
58
|
if (!property) {
|
|
60
59
|
return undefined;
|
|
61
60
|
}
|
|
@@ -65,14 +64,11 @@ class ConfigTransformer {
|
|
|
65
64
|
if (!_parent) {
|
|
66
65
|
return undefined;
|
|
67
66
|
}
|
|
68
|
-
// add nonExistent.deep to android: {}
|
|
69
67
|
return this.getProperty(parts.join("."), _parent);
|
|
70
68
|
}
|
|
71
|
-
// if we have a parent, we are reading the property from it
|
|
72
69
|
if (parent) {
|
|
73
70
|
return parent.getProperty(key);
|
|
74
71
|
}
|
|
75
|
-
// otherwise we just read it from the root exports object
|
|
76
72
|
return this.getProperty(key, this.getDefaultExportValue());
|
|
77
73
|
}
|
|
78
74
|
addProperty(key, value, parent = null) {
|
|
@@ -185,22 +181,15 @@ class ConfigTransformer {
|
|
|
185
181
|
}
|
|
186
182
|
this.setInitializerValue(initializer, newValue);
|
|
187
183
|
}
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
*/
|
|
191
184
|
getFullText() {
|
|
192
185
|
return this.config.getFullText();
|
|
193
186
|
}
|
|
194
|
-
/**
|
|
195
|
-
* @internal
|
|
196
|
-
*/
|
|
197
187
|
getValue(key) {
|
|
198
188
|
return this.getPropertyValue(this.getProperty(key));
|
|
199
189
|
}
|
|
200
190
|
setValue(key, value) {
|
|
201
191
|
const property = this.getProperty(key);
|
|
202
192
|
if (!property) {
|
|
203
|
-
// add new property
|
|
204
193
|
this.addProperty(key, value);
|
|
205
194
|
}
|
|
206
195
|
else {
|
|
@@ -210,4 +199,3 @@ class ConfigTransformer {
|
|
|
210
199
|
}
|
|
211
200
|
}
|
|
212
201
|
exports.ConfigTransformer = ConfigTransformer;
|
|
213
|
-
//# sourceMappingURL=config-transformer.js.map
|
|
@@ -56,18 +56,14 @@ class NodeModulesDependenciesBuilder {
|
|
|
56
56
|
let modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
57
57
|
paths: [parentModulesPath],
|
|
58
58
|
});
|
|
59
|
-
// perhaps traverse up the tree here?
|
|
60
59
|
if (!modulePath) {
|
|
61
|
-
// fallback to searching in the root path
|
|
62
60
|
modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
|
|
63
61
|
paths: [rootPath],
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
|
-
// if we failed to find the module...
|
|
67
64
|
if (!modulePath) {
|
|
68
65
|
return null;
|
|
69
66
|
}
|
|
70
|
-
// if we already resolved this dependency, we return null to avoid a duplicate resolution
|
|
71
67
|
if (resolvedDependencies.some((r) => {
|
|
72
68
|
return r.name === depDescription.name && r.directory === modulePath;
|
|
73
69
|
})) {
|
|
@@ -92,7 +88,6 @@ class NodeModulesDependenciesBuilder {
|
|
|
92
88
|
const packageJsonContents = this.$fs.readJson(packageJsonPath);
|
|
93
89
|
dependency.version = packageJsonContents.version;
|
|
94
90
|
if (!!packageJsonContents.nativescript) {
|
|
95
|
-
// add `nativescript` property, necessary for resolving plugins
|
|
96
91
|
dependency.nativescript = packageJsonContents.nativescript;
|
|
97
92
|
}
|
|
98
93
|
dependency.dependencies = _.keys(packageJsonContents.dependencies);
|
|
@@ -103,4 +98,3 @@ class NodeModulesDependenciesBuilder {
|
|
|
103
98
|
}
|
|
104
99
|
exports.NodeModulesDependenciesBuilder = NodeModulesDependenciesBuilder;
|
|
105
100
|
yok_1.injector.register("nodeModulesDependenciesBuilder", NodeModulesDependenciesBuilder);
|
|
106
|
-
//# sourceMappingURL=node-modules-dependencies-builder.js.map
|
|
@@ -46,8 +46,6 @@ class Yarn2PackageManager extends base_package_manager_1.BasePackageManager {
|
|
|
46
46
|
}
|
|
47
47
|
const packageJsonPath = path.join(pathToSave, "package.json");
|
|
48
48
|
const jsonContentBefore = this.$fs.readJson(packageJsonPath);
|
|
49
|
-
// remove unsupported flags
|
|
50
|
-
// todo: refactor all package managers to map typed flags to the actual flags
|
|
51
49
|
const cleanedConfig = _.omit(config, ["save-dev", "save-exact"]);
|
|
52
50
|
const flags = this.getFlagsString(cleanedConfig, true);
|
|
53
51
|
let params = [];
|
|
@@ -143,4 +141,3 @@ __decorate([
|
|
|
143
141
|
], Yarn2PackageManager.prototype, "getCachePath", null);
|
|
144
142
|
exports.Yarn2PackageManager = Yarn2PackageManager;
|
|
145
143
|
yok_1.injector.register("yarn2", Yarn2PackageManager);
|
|
146
|
-
//# sourceMappingURL=yarn2-package-manager.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"main": "./lib/nativescript-cli-lib.js",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.8.0-embed.0",
|
|
5
5
|
"author": "NativeScript <support@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -195,4 +195,4 @@
|
|
|
195
195
|
"lint-staged": {
|
|
196
196
|
"*.ts": "prettier --write"
|
|
197
197
|
}
|
|
198
|
-
}
|
|
198
|
+
}
|
|
@@ -8,8 +8,27 @@ apply plugin: 'kotlin-android'
|
|
|
8
8
|
apply plugin: 'kotlin-parcelize'
|
|
9
9
|
|
|
10
10
|
buildscript {
|
|
11
|
+
// project.ext.USER_PROJECT_ROOT = "$rootDir/../../.."
|
|
12
|
+
project.ext.PLATFORMS_ANDROID = "platforms/android"
|
|
13
|
+
project.ext.PLUGIN_NAME = "{{pluginName}}"
|
|
14
|
+
|
|
15
|
+
def USER_PROJECT_ROOT_FROM_ENV = System.getenv('USER_PROJECT_ROOT');
|
|
16
|
+
if (USER_PROJECT_ROOT_FROM_ENV != null && !USER_PROJECT_ROOT_FROM_ENV.equals("")) {
|
|
17
|
+
project.ext.USER_PROJECT_ROOT = USER_PROJECT_ROOT_FROM_ENV;
|
|
18
|
+
} else {
|
|
19
|
+
project.ext.USER_PROJECT_ROOT = "$rootDir/../../../"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
def USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV = System.getenv('USER_PROJECT_PLATFORMS_ANDROID');
|
|
23
|
+
if (USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV != null && !USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV.equals("")) {
|
|
24
|
+
project.ext.USER_PROJECT_PLATFORMS_ANDROID = USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV;
|
|
25
|
+
} else {
|
|
26
|
+
project.ext.USER_PROJECT_PLATFORMS_ANDROID = project.ext.USER_PROJECT_ROOT + PLATFORMS_ANDROID
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
11
30
|
def getDepPlatformDir = { dep ->
|
|
12
|
-
file("${project.ext.
|
|
31
|
+
file("${project.ext.USER_PROJECT_PLATFORMS_ANDROID}/${dep.directory}/$PLATFORMS_ANDROID")
|
|
13
32
|
}
|
|
14
33
|
def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.8.20" }
|
|
15
34
|
def kotlinVersion = computeKotlinVersion()
|
|
@@ -29,12 +48,8 @@ buildscript {
|
|
|
29
48
|
project.ext.getDepPlatformDir = getDepPlatformDir
|
|
30
49
|
project.ext.outLogger = services.get(StyledTextOutputFactory).create("colouredOutputLogger")
|
|
31
50
|
|
|
32
|
-
project.ext.USER_PROJECT_ROOT = "$rootDir/../../.."
|
|
33
|
-
project.ext.PLATFORMS_ANDROID = "platforms/android"
|
|
34
|
-
project.ext.PLUGIN_NAME = "{{pluginName}}"
|
|
35
|
-
|
|
36
51
|
// the build script will not work with previous versions of the CLI (3.1 or earlier)
|
|
37
|
-
def dependenciesJson = file("${project.ext.
|
|
52
|
+
def dependenciesJson = file("${project.ext.USER_PROJECT_PLATFORMS_ANDROID}/dependencies.json")
|
|
38
53
|
def appDependencies = new JsonSlurper().parseText(dependenciesJson.text)
|
|
39
54
|
def pluginData = appDependencies.find { it.name == project.ext.PLUGIN_NAME }
|
|
40
55
|
project.ext.nativescriptDependencies = appDependencies.findAll{pluginData.dependencies.contains(it.name)}
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import groovy.json.JsonSlurper
|
|
2
2
|
|
|
3
|
-
def USER_PROJECT_ROOT = "$rootDir/../../../"
|
|
3
|
+
// def USER_PROJECT_ROOT = "$rootDir/../../../"
|
|
4
4
|
def PLATFORMS_ANDROID = "platforms/android"
|
|
5
5
|
def PLUGIN_NAME = "{{pluginName}}"
|
|
6
6
|
|
|
7
|
-
def
|
|
7
|
+
def USER_PROJECT_PLATFORMS_ANDROID
|
|
8
|
+
def USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV = System.getenv('USER_PROJECT_PLATFORMS_ANDROID');
|
|
9
|
+
if (USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV != null && !USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV.equals("")) {
|
|
10
|
+
USER_PROJECT_PLATFORMS_ANDROID = USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV;
|
|
11
|
+
} else {
|
|
12
|
+
USER_PROJECT_PLATFORMS_ANDROID = "$rootDir/../../../platforms/android"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
System.out.println("!!!!! VM: USER_PROJECT_PLATFORMS_ANDROID: " + USER_PROJECT_PLATFORMS_ANDROID);
|
|
16
|
+
|
|
17
|
+
def dependenciesJson = file("${USER_PROJECT_PLATFORMS_ANDROID}/dependencies.json")
|
|
8
18
|
def appDependencies = new JsonSlurper().parseText(dependenciesJson.text)
|
|
9
19
|
def pluginData = appDependencies.find { it.name == PLUGIN_NAME }
|
|
10
20
|
def nativescriptDependencies = appDependencies.findAll{pluginData.name == it.name}
|
|
11
21
|
|
|
12
22
|
def getDepPlatformDir = { dep ->
|
|
13
|
-
file("$
|
|
23
|
+
file("$USER_PROJECT_PLATFORMS_ANDROID/${dep.directory}/$PLATFORMS_ANDROID")
|
|
14
24
|
}
|
|
15
25
|
|
|
16
26
|
def applyIncludeSettingsGradlePlugin = {
|
|
@@ -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)
|