@lwrjs/fs-watch 0.13.0-alpha.8 → 0.13.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.
@@ -33,7 +33,7 @@ var WatcherFactoryImpl = class {
33
33
  createFileWatcher(options) {
34
34
  if (!options) {
35
35
  options = {persistent: true};
36
- if (process.env.MRT_HMR !== "true")
36
+ if (!(0, import_shared_utils.isLocalDev)())
37
37
  options.ignored = "**/node_modules/**";
38
38
  }
39
39
  return import_chokidar.default.watch([], options);
package/build/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import chokidar from 'chokidar';
2
- import { debounce } from '@lwrjs/shared-utils';
2
+ import { debounce, isLocalDev } from '@lwrjs/shared-utils';
3
3
  import { logger } from '@lwrjs/diagnostics';
4
4
  /**
5
5
  * Factory comptable with the LWR Runtime to create a file watch library for LWR dev server.
@@ -15,7 +15,7 @@ export class WatcherFactoryImpl {
15
15
  options = { persistent: true };
16
16
  // Don't exclude node modules during local dev for MRT
17
17
  // TODO find a better solution for this
18
- if (process.env.MRT_HMR !== 'true')
18
+ if (!isLocalDev())
19
19
  options.ignored = '**/node_modules/**';
20
20
  }
21
21
  return chokidar.watch([], options);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.8",
7
+ "version": "0.13.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -31,18 +31,18 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "build": "tsc -b",
34
- "clean": "rm -rf build node_modules",
34
+ "clean": "rimraf build node_modules",
35
35
  "test": "jest"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.13.0-alpha.8",
38
+ "@lwrjs/types": "0.13.0",
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.13.0-alpha.8",
45
- "@lwrjs/shared-utils": "0.13.0-alpha.8",
44
+ "@lwrjs/diagnostics": "0.13.0",
45
+ "@lwrjs/shared-utils": "0.13.0",
46
46
  "chokidar": "^3.6.0"
47
47
  },
48
48
  "engines": {
@@ -51,5 +51,5 @@
51
51
  "volta": {
52
52
  "extends": "../../../package.json"
53
53
  },
54
- "gitHead": "91e731eae1457bbbebeb274fa0ea5574705c51a2"
54
+ "gitHead": "21dc6b8ffd2e633f36b46daf9e1563992c5143b9"
55
55
  }