nativescript 8.5.2 → 8.5.3

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.
@@ -307,7 +307,11 @@ class HooksService {
307
307
  }
308
308
  HooksService.HOOKS_DIRECTORY_NAME = "hooks";
309
309
  __decorate([
310
- (0, decorators_1.cache)()
310
+ (0, decorators_1.memoize)({
311
+ shouldCache() {
312
+ return !!this.hooksDirectories.length;
313
+ },
314
+ })
311
315
  ], HooksService.prototype, "initialize", null);
312
316
  exports.HooksService = HooksService;
313
317
  yok_1.injector.register("hooksService", HooksService);
@@ -22,9 +22,9 @@ class ProjectCleanupService {
22
22
  clean(pathsToClean, options) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
24
  this.spinner = this.$terminalSpinnerService.createSpinner({
25
- isSilent: options.silent,
25
+ isSilent: options === null || options === void 0 ? void 0 : options.silent,
26
26
  });
27
- let stats = options.stats ? new Map() : false;
27
+ let stats = (options === null || options === void 0 ? void 0 : options.stats) ? new Map() : false;
28
28
  let success = true;
29
29
  for (const pathToClean of pathsToClean) {
30
30
  const cleanRes = yield this.cleanPath(pathToClean, options).catch((error) => {
@@ -37,7 +37,13 @@ class XcconfigService {
37
37
  }
38
38
  const escapedDestinationFile = destinationFile.replace(/'/g, "\\'");
39
39
  const escapedSourceFile = sourceFile.replace(/'/g, "\\'");
40
- const mergeScript = `require 'xcodeproj'; Xcodeproj::Config.new('${escapedDestinationFile}').merge(Xcodeproj::Config.new('${escapedSourceFile}')).save_as(Pathname.new('${escapedDestinationFile}'))`;
40
+ const mergeScript = `require 'xcodeproj';
41
+ sourceConfig = Xcodeproj::Config.new('${escapedDestinationFile}')
42
+ targetConfig = Xcodeproj::Config.new('${escapedSourceFile}')
43
+ if(sourceConfig.attributes.key?('IPHONEOS_DEPLOYMENT_TARGET') && targetConfig.attributes.key?('IPHONEOS_DEPLOYMENT_TARGET'))
44
+ sourceConfig.attributes.delete('IPHONEOS_DEPLOYMENT_TARGET')
45
+ end
46
+ sourceConfig.merge(targetConfig).save_as(Pathname.new('${escapedDestinationFile}'))`;
41
47
  yield this.$childProcess.exec(`ruby -e "${mergeScript}"`);
42
48
  });
43
49
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.5.2",
4
+ "version": "8.5.3",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {