incremental-compiler 16.5.5 → 16.5.6

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 (incremental-compiler@16.5.5)
3
+ Assets from this folder are being shipped with this npm package (incremental-compiler@16.5.6)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
@@ -47,7 +47,7 @@
47
47
  ]
48
48
  },
49
49
  "name": "incremental-compiler",
50
- "version": "16.5.5",
50
+ "version": "16.5.6",
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
53
  "@parcel/watcher": "2.3.0",
@@ -63,7 +63,7 @@
63
63
  "typescript-class-helpers": "~16.5.2"
64
64
  },
65
65
  "private": false,
66
- "lastBuildTagHash": "a69fca577d6c80a405aede3a1a28b5ff839495ea",
66
+ "lastBuildTagHash": "f1625f459757655e5ff83f911018fb9116fd1f17",
67
67
  "devDependencies": {
68
68
  "@angular-devkit/build-angular": "~16.0.5",
69
69
  "@angular-devkit/core": "~16.0.5",
@@ -208,7 +208,7 @@
208
208
  "image-focus": "1.2.1",
209
209
  "immer": "10.0.2",
210
210
  "immutable": "4.3.0",
211
- "incremental-compiler": "~16.5.4",
211
+ "incremental-compiler": "~16.5.5",
212
212
  "inquirer": "7.3.3",
213
213
  "inquirer-autocomplete-prompt": "1.3.0",
214
214
  "is-elevated": "3.0.0",
@@ -3,20 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.incrementalWatcher = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var tnp_core_1 = require("tnp-core");
6
+ var parcel_watcher_adapter_backend_1 = require("./parcel-watcher-adapter.backend");
6
7
  function incrementalWatcher(filePath, watchOptions) {
7
8
  return tslib_1.__awaiter(this, void 0, void 0, function () {
8
- var engine, opt;
9
+ var engine, instance, opt;
9
10
  return tslib_1.__generator(this, function (_a) {
10
11
  engine = (watchOptions || {}).engine;
11
12
  if (!engine || (tnp_core_1._.isString(engine) && engine.trim() === '')) {
12
13
  // engine = 'chokidar';
13
14
  engine = '@parcel/watcher';
14
15
  }
15
- opt = tnp_core_1._.cloneDeep(watchOptions);
16
- opt['ignorePermissionErrors'] = true;
17
- return [2 /*return*/, tnp_core_1.chokidar.watch(filePath, watchOptions)
18
- // }
19
- ];
16
+ if (tnp_core_1.frameworkName === 'firedev') {
17
+ engine = 'chokidar';
18
+ }
19
+ if (engine === '@parcel/watcher') {
20
+ instance = new parcel_watcher_adapter_backend_1.ParcelWatcherAdapter(filePath, watchOptions);
21
+ return [2 /*return*/, instance];
22
+ }
23
+ else {
24
+ opt = tnp_core_1._.cloneDeep(watchOptions);
25
+ opt['ignorePermissionErrors'] = true;
26
+ return [2 /*return*/, tnp_core_1.chokidar.watch(filePath, watchOptions)];
27
+ }
28
+ return [2 /*return*/];
20
29
  });
21
30
  });
22
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"incremental-watcher.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AACA,qCAA6C;AAO7C,SAAsB,kBAAkB,CAAC,QAA2B,EAAE,YAAwC;;;;YACtG,MAAM,GAAK,CAAA,YAAY,IAAI,EAAE,CAAA,OAAvB,CAAwB;YACpC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC3D,uBAAuB;gBACvB,MAAM,GAAG,iBAAiB,CAAC;aAC5B;YAKK,GAAG,GAAG,YAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;YACtC,GAAG,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;YACrC,sBAAO,mBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,CAAC;gBAC7C,IAAI;cADyC;;;CAE9C;AAdD,gDAcC"}
1
+ {"version":3,"file":"incremental-watcher.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AACA,qCAA4D;AAI5D,mFAAwE;AAGxE,SAAsB,kBAAkB,CAAC,QAA2B,EAAE,YAAwC;;;;YACtG,MAAM,GAAK,CAAA,YAAY,IAAI,EAAE,CAAA,OAAvB,CAAwB;YACpC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC3D,uBAAuB;gBACvB,MAAM,GAAG,iBAAiB,CAAC;aAC5B;YACD,IAAI,wBAAa,KAAK,SAAS,EAAE;gBAC/B,MAAM,GAAG,UAAU,CAAC;aACrB;YAED,IAAI,MAAM,KAAK,iBAAiB,EAAE;gBAC1B,QAAQ,GAAG,IAAI,qDAAoB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;gBAClE,sBAAO,QAAe,EAAC;aACxB;iBAAM;gBACC,GAAG,GAAG,YAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;gBACtC,GAAG,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;gBACrC,sBAAO,mBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAA;aAC9C;;;;CACF;AAlBD,gDAkBC"}
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  ]
48
48
  },
49
49
  "name": "incremental-compiler",
50
- "version": "16.5.5",
50
+ "version": "16.5.6",
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
53
  "@parcel/watcher": "2.3.0",
@@ -63,6 +63,6 @@
63
63
  "typescript-class-helpers": "~16.5.2"
64
64
  },
65
65
  "private": false,
66
- "lastBuildTagHash": "a69fca577d6c80a405aede3a1a28b5ff839495ea",
66
+ "lastBuildTagHash": "f1625f459757655e5ff83f911018fb9116fd1f17",
67
67
  "devDependencies": {}
68
68
  }
@@ -51,7 +51,7 @@
51
51
  ]
52
52
  },
53
53
  "name": "incremental-compiler",
54
- "version": "16.5.5",
54
+ "version": "16.5.6",
55
55
  "license": "MIT",
56
56
  "dependencies": {
57
57
  "@parcel/watcher": "2.3.0",
@@ -67,7 +67,7 @@
67
67
  "typescript-class-helpers": "~16.5.2"
68
68
  },
69
69
  "private": false,
70
- "lastBuildTagHash": "a69fca577d6c80a405aede3a1a28b5ff839495ea",
70
+ "lastBuildTagHash": "f1625f459757655e5ff83f911018fb9116fd1f17",
71
71
  "devDependencies": {
72
72
  "@angular-devkit/build-angular": "~16.0.5",
73
73
  "@angular-devkit/core": "~16.0.5",
@@ -212,7 +212,7 @@
212
212
  "image-focus": "1.2.1",
213
213
  "immer": "10.0.2",
214
214
  "immutable": "4.3.0",
215
- "incremental-compiler": "~16.5.4",
215
+ "incremental-compiler": "~16.5.5",
216
216
  "inquirer": "7.3.3",
217
217
  "inquirer-autocomplete-prompt": "1.3.0",
218
218
  "is-elevated": "3.0.0",
@@ -338,9 +338,9 @@
338
338
  "main": "index.js"
339
339
  },
340
340
  "build": {
341
- "number": 374,
342
- "date": "2023-12-12T20:49:29.000Z",
343
- "hash": "f1625f459757655e5ff83f911018fb9116fd1f17",
341
+ "number": 376,
342
+ "date": "2023-12-12T22:00:51.000Z",
343
+ "hash": "e097892f733f92e81ec0ee572329ae1e0736e5b8",
344
344
  "options": {}
345
345
  },
346
346
  "currentProjectName": "incremental-compiler",