@openmrs/webpack-config 10.0.1-pre.5086 → 10.0.1-pre.5100

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.
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ const production = 'production';
57
57
  const { ModuleFederationPlugin } = webpack_1.container;
58
58
  function getFrameworkVersion() {
59
59
  try {
60
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
60
61
  const { version } = require('@openmrs/esm-framework/package.json');
61
62
  return `^${version}`;
62
63
  }
@@ -134,6 +135,7 @@ exports.watchConfig = {};
134
135
  exports.optimizationConfig = {};
135
136
  exports.default = (env, argv = {}) => {
136
137
  const root = process.cwd();
138
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
137
139
  const { name, version, peerDependencies, browser, main, types } = require((0, path_1.resolve)(root, 'package.json'));
138
140
  // this typing is provably incorrect, but actually works
139
141
  const mode = (argv.mode || process.env.NODE_ENV || 'development');
@@ -260,6 +262,7 @@ exports.default = (env, argv = {}) => {
260
262
  import: 'swr/',
261
263
  shareKey: 'swr/',
262
264
  shareScope: 'default',
265
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
263
266
  version: require('swr/package.json').version,
264
267
  };
265
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/webpack-config",
3
- "version": "10.0.1-pre.5086",
3
+ "version": "10.0.1-pre.5100",
4
4
  "license": "MPL-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -64,6 +64,7 @@ const { ModuleFederationPlugin } = container;
64
64
 
65
65
  function getFrameworkVersion() {
66
66
  try {
67
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
67
68
  const { version } = require('@openmrs/esm-framework/package.json');
68
69
  return `^${version}`;
69
70
  } catch {
@@ -153,6 +154,7 @@ export const optimizationConfig: Partial<WebpackConfiguration['optimization']> =
153
154
 
154
155
  export default (env: Record<string, string>, argv: Record<string, string> = {}) => {
155
156
  const root = process.cwd();
157
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
156
158
  const { name, version, peerDependencies, browser, main, types } = require(resolve(root, 'package.json'));
157
159
  // this typing is provably incorrect, but actually works
158
160
  const mode = (argv.mode || process.env.NODE_ENV || 'development') as WebpackConfiguration['mode'];
@@ -309,6 +311,7 @@ export default (env: Record<string, string>, argv: Record<string, string> = {})
309
311
  import: 'swr/',
310
312
  shareKey: 'swr/',
311
313
  shareScope: 'default',
314
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
312
315
  version: require('swr/package.json').version,
313
316
  };
314
317
  } else {