@openmrs/webpack-config 4.5.1-pre.779 → 4.5.1-pre.784

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 +1 @@
1
- @openmrs/webpack-config:build: cache hit, replaying output 7b73835d53f43c9f
1
+ @openmrs/webpack-config:build: cache hit, replaying output 7a2443b3ac34a55c
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.assetRuleConfig = exports.scssRuleConfig = exports.cssRuleConfig = exports.scriptRuleConfig = exports.additionalConfig = exports.overrides = void 0;
6
+ exports.watchConfig = exports.assetRuleConfig = exports.scssRuleConfig = exports.cssRuleConfig = exports.scriptRuleConfig = exports.additionalConfig = exports.overrides = void 0;
7
7
  /**
8
8
  * This is the base webpack config for all OpenMRS 3.x modules.
9
9
  *
@@ -116,6 +116,12 @@ exports.scssRuleConfig = {};
116
116
  * Make sure to modify this object and not reassign it.
117
117
  */
118
118
  exports.assetRuleConfig = {};
119
+ /**
120
+ * This object will be merged into the webpack rule governing
121
+ * the watch options.
122
+ * Make sure to modify this object and not reassign it.
123
+ */
124
+ exports.watchConfig = {};
119
125
  exports.default = (env, argv = {}) => {
120
126
  const root = process.cwd();
121
127
  const { name, version, peerDependencies, browser, main, types, } = require((0, path_1.resolve)(root, "package.json"));
@@ -179,7 +185,9 @@ exports.default = (env, argv = {}) => {
179
185
  writeToDisk: true,
180
186
  },
181
187
  static: [(0, path_1.resolve)(root, outDir)],
182
- }, performance: {
188
+ }, watchOptions: (0, lodash_1.merge)({
189
+ ignored: /\.git/,
190
+ }, exports.watchConfig), performance: {
183
191
  hints: mode === production && "warning",
184
192
  }, plugins: [
185
193
  new fork_ts_checker_webpack_plugin_1.default(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/webpack-config",
3
- "version": "4.5.1-pre.779",
3
+ "version": "4.5.1-pre.784",
4
4
  "license": "MPL-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "src/index.ts",
@@ -53,5 +53,5 @@
53
53
  "devDependencies": {
54
54
  "typescript": "~4.5.2"
55
55
  },
56
- "gitHead": "dc6b14e537f918377681d20ecee60d2118d1d882"
56
+ "gitHead": "6357d895dbba1031d860f98e7f57a5f7693a17bd"
57
57
  }
package/src/index.ts CHANGED
@@ -123,6 +123,13 @@ export const scssRuleConfig = {};
123
123
  */
124
124
  export const assetRuleConfig = {};
125
125
 
126
+ /**
127
+ * This object will be merged into the webpack rule governing
128
+ * the watch options.
129
+ * Make sure to modify this object and not reassign it.
130
+ */
131
+ export const watchConfig = {};
132
+
126
133
  export default (
127
134
  env: Record<string, string>,
128
135
  argv: Record<string, string> = {}
@@ -216,6 +223,12 @@ export default (
216
223
  },
217
224
  static: [resolve(root, outDir)],
218
225
  },
226
+ watchOptions: merge(
227
+ {
228
+ ignored: /\.git/,
229
+ },
230
+ watchConfig
231
+ ),
219
232
  performance: {
220
233
  hints: mode === production && "warning",
221
234
  },