tnp 16.5.4 → 16.5.5

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.
@@ -1,6 +1,6 @@
1
1
  THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
2
2
 
3
- Assets from this folder are being shipped with this npm package (tnp@16.5.4)
3
+ Assets from this folder are being shipped with this npm package (tnp@16.5.5)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
package/cli.js CHANGED
@@ -241338,13 +241338,15 @@ var CompilerManager = /** @class */ (function () {
241338
241338
  _a[_b] = (_c.sent()).on('all', function (event, absoluteFilePath) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
241339
241339
  return tslib_1.__generator(this, function (_a) {
241340
241340
  switch (_a.label) {
241341
- case 0:
241342
- if (!global.watcherEnabledForIC) return [3 /*break*/, 2];
241343
- return [4 /*yield*/, this.actionForAsyncEvent(event, absoluteFilePath, client)];
241341
+ case 0:
241342
+ // console.log(`[ic] event ${event}, path: ${absoluteFilePath}`);
241343
+ // if (global.watcherEnabledForIC) { // @LAST
241344
+ return [4 /*yield*/, this.actionForAsyncEvent(event, absoluteFilePath, client)];
241344
241345
  case 1:
241346
+ // console.log(`[ic] event ${event}, path: ${absoluteFilePath}`);
241347
+ // if (global.watcherEnabledForIC) { // @LAST
241345
241348
  _a.sent();
241346
- _a.label = 2;
241347
- case 2: return [2 /*return*/];
241349
+ return [2 /*return*/];
241348
241350
  }
241349
241351
  });
241350
241352
  }); });
@@ -241670,20 +241672,29 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
241670
241672
  exports.incrementalWatcher = void 0;
241671
241673
  var tslib_1 = __nccwpck_require__(93011);
241672
241674
  var tnp_core_1 = __nccwpck_require__(76776);
241675
+ var parcel_watcher_adapter_backend_1 = __nccwpck_require__(18146);
241673
241676
  function incrementalWatcher(filePath, watchOptions) {
241674
241677
  return tslib_1.__awaiter(this, void 0, void 0, function () {
241675
- var engine, opt;
241678
+ var engine, instance, opt;
241676
241679
  return tslib_1.__generator(this, function (_a) {
241677
241680
  engine = (watchOptions || {}).engine;
241678
241681
  if (!engine || (tnp_core_1._.isString(engine) && engine.trim() === '')) {
241679
241682
  // engine = 'chokidar';
241680
241683
  engine = '@parcel/watcher';
241681
241684
  }
241682
- opt = tnp_core_1._.cloneDeep(watchOptions);
241683
- opt['ignorePermissionErrors'] = true;
241684
- return [2 /*return*/, tnp_core_1.chokidar.watch(filePath, watchOptions)
241685
- // }
241686
- ];
241685
+ if (tnp_core_1.frameworkName === 'firedev') {
241686
+ engine = 'chokidar';
241687
+ }
241688
+ if (engine === '@parcel/watcher') {
241689
+ instance = new parcel_watcher_adapter_backend_1.ParcelWatcherAdapter(filePath, watchOptions);
241690
+ return [2 /*return*/, instance];
241691
+ }
241692
+ else {
241693
+ opt = tnp_core_1._.cloneDeep(watchOptions);
241694
+ opt['ignorePermissionErrors'] = true;
241695
+ return [2 /*return*/, tnp_core_1.chokidar.watch(filePath, watchOptions)];
241696
+ }
241697
+ return [2 /*return*/];
241687
241698
  });
241688
241699
  });
241689
241700
  }
@@ -241719,6 +241730,8 @@ var tnp_core_1 = __nccwpck_require__(76776);
241719
241730
  var tnp_helpers_1 = __nccwpck_require__(41911);
241720
241731
  var ng2_logger_1 = __nccwpck_require__(85053);
241721
241732
  var tnp_core_2 = __nccwpck_require__(76776);
241733
+ // import * as watcher from '@parcel/watcher';
241734
+ var watcherName = '@parcel/watcher';
241722
241735
  var watcher = __nccwpck_require__(90400);
241723
241736
  var fs = __nccwpck_require__(57147);
241724
241737
  var anymatch_1 = __nccwpck_require__(61129);
@@ -341,7 +341,7 @@
341
341
  "jscodeshift": "^0.6.3",
342
342
  "@types/fs-extra": "^7.0.0",
343
343
  "@types/rimraf": "^2.0.2",
344
- "incremental-compiler": "16.5.4",
344
+ "incremental-compiler": "16.5.6",
345
345
  "open": "7.2.1"
346
346
  },
347
347
  "sockets": {
@@ -558,7 +558,7 @@
558
558
  "private": false
559
559
  },
560
560
  "name": "tnp",
561
- "version": "16.5.4",
561
+ "version": "16.5.5",
562
562
  "bin": {
563
563
  "tnp": "bin/tnp",
564
564
  "tnp-debug": "bin/tnp-debug",
@@ -573,7 +573,7 @@
573
573
  "progress": "2.0.3",
574
574
  "tnp-db": "~16.5.2"
575
575
  },
576
- "lastBuildTagHash": "e7fd99c8537682007f02a045959432c7030418cc",
576
+ "lastBuildTagHash": "afdd8bee87e4b19b1ec44459bcfafa4dc03cb110",
577
577
  "scripts": {
578
578
  "activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
579
579
  },
@@ -730,7 +730,7 @@
730
730
  "image-focus": "1.2.1",
731
731
  "immer": "10.0.2",
732
732
  "immutable": "4.3.0",
733
- "incremental-compiler": "~16.5.4",
733
+ "incremental-compiler": "~16.5.6",
734
734
  "inquirer": "7.3.3",
735
735
  "inquirer-autocomplete-prompt": "1.3.0",
736
736
  "is-elevated": "3.0.0",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1702413433888 = void 0;
4
- function dummy1702413433888() { }
5
- exports.dummy1702413433888 = dummy1702413433888;
3
+ exports.dummy1702418524167 = void 0;
4
+ function dummy1702418524167() { }
5
+ exports.dummy1702418524167 = dummy1702418524167;
6
6
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -341,7 +341,7 @@
341
341
  "jscodeshift": "^0.6.3",
342
342
  "@types/fs-extra": "^7.0.0",
343
343
  "@types/rimraf": "^2.0.2",
344
- "incremental-compiler": "16.5.4",
344
+ "incremental-compiler": "16.5.6",
345
345
  "open": "7.2.1"
346
346
  },
347
347
  "sockets": {
@@ -558,14 +558,14 @@
558
558
  "private": false
559
559
  },
560
560
  "name": "tnp",
561
- "version": "16.5.4",
561
+ "version": "16.5.5",
562
562
  "bin": {
563
563
  "tnp": "bin/tnp",
564
564
  "tnp-debug": "bin/tnp-debug",
565
565
  "tnp-debug-brk": "bin/tnp-debug-brk"
566
566
  },
567
567
  "dependencies": {},
568
- "lastBuildTagHash": "e7fd99c8537682007f02a045959432c7030418cc",
568
+ "lastBuildTagHash": "afdd8bee87e4b19b1ec44459bcfafa4dc03cb110",
569
569
  "scripts": {
570
570
  "activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
571
571
  },
@@ -350,7 +350,7 @@
350
350
  jscodeshift: "^0.6.3",
351
351
  "@types/fs-extra": "^7.0.0",
352
352
  "@types/rimraf": "^2.0.2",
353
- "incremental-compiler": '16.5.4',
353
+ "incremental-compiler": '16.5.6',
354
354
  open: "7.2.1",
355
355
  // "sharp": "0.23.3", - > proble with dependncies
356
356
  // "@types/sharp": "0.23.1",
@@ -346,7 +346,7 @@
346
346
  "jscodeshift": "^0.6.3",
347
347
  "@types/fs-extra": "^7.0.0",
348
348
  "@types/rimraf": "^2.0.2",
349
- "incremental-compiler": "16.5.4",
349
+ "incremental-compiler": "16.5.6",
350
350
  "open": "7.2.1"
351
351
  },
352
352
  "sockets": {
@@ -563,7 +563,7 @@
563
563
  "private": false
564
564
  },
565
565
  "name": "tnp",
566
- "version": "16.5.4",
566
+ "version": "16.5.5",
567
567
  "bin": {
568
568
  "tnp": "bin/tnp",
569
569
  "tnp-debug": "bin/tnp-debug",
@@ -578,7 +578,7 @@
578
578
  "progress": "2.0.3",
579
579
  "tnp-db": "~16.5.2"
580
580
  },
581
- "lastBuildTagHash": "e7fd99c8537682007f02a045959432c7030418cc",
581
+ "lastBuildTagHash": "afdd8bee87e4b19b1ec44459bcfafa4dc03cb110",
582
582
  "scripts": {
583
583
  "activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
584
584
  },
@@ -735,7 +735,7 @@
735
735
  "image-focus": "1.2.1",
736
736
  "immer": "10.0.2",
737
737
  "immutable": "4.3.0",
738
- "incremental-compiler": "~16.5.4",
738
+ "incremental-compiler": "~16.5.6",
739
739
  "inquirer": "7.3.3",
740
740
  "inquirer-autocomplete-prompt": "1.3.0",
741
741
  "is-elevated": "3.0.0",
@@ -856,9 +856,9 @@
856
856
  }
857
857
  },
858
858
  "build": {
859
- "number": 3047,
860
- "date": "2023-12-12T20:20:17.000Z",
861
- "hash": "1bc7b89ae8a32d24544cf31529d6564794edc81a",
859
+ "number": 3049,
860
+ "date": "2023-12-12T20:38:12.000Z",
861
+ "hash": "f37b593e5ea51a63a833caf5eb506ce3cf3082e3",
862
862
  "options": {}
863
863
  },
864
864
  "currentProjectName": "tnp",
@@ -866,7 +866,7 @@
866
866
  "currentProjectLaunchConfiguration": "{\"version\":\"0.2.0\",\"configurations\":[{\"type\":\"node\",\"request\":\"launch\",\"name\":\"Launch Server standalone\",\"program\":\"${workspaceFolder}/run.js\",\"args\":[\"--ENVoverride=%7B%0A%20%20%20%20%22clientProjectName%22%3A%20%22tnp%22%0A%7D\"],\"runtimeArgs\":[\"--nolazy\",\"-r\",\"ts-node/register\",\"--experimental-worker\"]},{\"name\":\"Debugger with ng serve\",\"type\":\"chrome\",\"request\":\"launch\",\"preLaunchTask\":\"Ng Serve\",\"postDebugTask\":\"terminateall\",\"sourceMaps\":true,\"webRoot\":\"${workspaceFolder}\",\"sourceMapPathOverrides\":{\"webpack:/*\":\"${webRoot}/*\",\"/./*\":\"${webRoot}/*\",\"/tmp-src/*\":\"${webRoot}/*\",\"/*\":\"*\",\"/./~/*\":\"${webRoot}/node_modules/*\"}},{\"type\":\"node\",\"request\":\"attach\",\"name\":\"Attach to global cli tool\",\"port\":9229,\"skipFiles\":[\"<node_internals>/**\"]}],\"compounds\":[{\"name\":\"Debug backend/frontend\",\"configurations\":[\"Launch Server standalone\",\"Debugger with ng serve\"]}]}",
867
867
  "currentProjectTasksConfiguration": "{\"version\":\"2.0.0\",\"tasks\":[{\"label\":\"terminateall\",\"command\":\"echo ${input:terminate}\",\"type\":\"shell\",\"problemMatcher\":[]},{\"label\":\"Ng Serve\",\"type\":\"shell\",\"command\":\"tnp build\",\"isBackground\":true,\"presentation\":{\"reveal\":\"always\"},\"group\":{\"kind\":\"build\",\"isDefault\":true},\"problemMatcher\":{\"owner\":\"typescript\",\"source\":\"ts\",\"applyTo\":\"closedDocuments\",\"fileLocation\":[\"relative\",\"${cwd}\"],\"pattern\":\"$tsc\",\"background\":{\"activeOnStart\":true,\"beginsPattern\":{\"regexp\":\"(.*?)\"},\"endsPattern\":{\"regexp\":\"Compiled |Failed to compile.\"}}}}],\"inputs\":[{\"id\":\"terminate\",\"type\":\"command\",\"command\":\"workbench.action.tasks.terminate\",\"args\":\"terminateAll\"}]}",
868
868
  "currentProjectType": "isomorphic-lib",
869
- "currentFrameworkVersion": "16.5.4",
869
+ "currentFrameworkVersion": "16.5.5",
870
870
  "isStandaloneProject": true,
871
871
  "isSmartContainer": false,
872
872
  "frameworks": [