@lwrjs/fs-watch 0.12.0-alpha.3 → 0.12.0-alpha.30

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.
@@ -30,7 +30,12 @@ var import_chokidar = __toModule(require("chokidar"));
30
30
  var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
31
31
  var import_diagnostics = __toModule(require("@lwrjs/diagnostics"));
32
32
  var WatcherFactoryImpl = class {
33
- createFileWatcher(options = {persistent: true, ignored: "**/node_modules/**"}) {
33
+ createFileWatcher(options) {
34
+ if (!options) {
35
+ options = {persistent: true};
36
+ if (process.env.MRT_HMR !== "true")
37
+ options.ignored = "**/node_modules/**";
38
+ }
34
39
  return import_chokidar.default.watch([], options);
35
40
  }
36
41
  setupWatcher(onModuleChange) {
package/build/es/index.js CHANGED
@@ -10,7 +10,14 @@ export class WatcherFactoryImpl {
10
10
  * Set up a watcher with the given options
11
11
  * @param options
12
12
  */
13
- createFileWatcher(options = { persistent: true, ignored: '**/node_modules/**' }) {
13
+ createFileWatcher(options) {
14
+ if (!options) {
15
+ options = { persistent: true };
16
+ // Don't exclude node modules during local dev for MRT
17
+ // TODO find a better solution for this
18
+ if (process.env.MRT_HMR !== 'true')
19
+ options.ignored = '**/node_modules/**';
20
+ }
14
21
  return chokidar.watch([], options);
15
22
  }
16
23
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0-alpha.3",
7
+ "version": "0.12.0-alpha.30",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  "test": "jest"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.12.0-alpha.3",
38
+ "@lwrjs/types": "0.12.0-alpha.30",
39
39
  "jest": "^26.6.3",
40
40
  "ts-jest": "^26.5.6",
41
41
  "typescript": "^4.9.5"
42
42
  },
43
43
  "dependencies": {
44
- "@lwrjs/diagnostics": "0.12.0-alpha.3",
45
- "@lwrjs/shared-utils": "0.12.0-alpha.3",
46
- "chokidar": "^3.5.3"
44
+ "@lwrjs/diagnostics": "0.12.0-alpha.30",
45
+ "@lwrjs/shared-utils": "0.12.0-alpha.30",
46
+ "chokidar": "^3.6.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=18.0.0"
@@ -51,5 +51,5 @@
51
51
  "volta": {
52
52
  "extends": "../../../package.json"
53
53
  },
54
- "gitHead": "48f97b40cbacce6cd6a6faee9206a465832c6774"
54
+ "gitHead": "5273cb7ece90a3a28645cb1dfde9d315548605db"
55
55
  }