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

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