cht-conf 3.21.0 → 3.21.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.21.1](https://github.com/medic/cht-conf/compare/v3.21.0...v3.21.1) (2023-12-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **#593:** properly resolve the path to webpack loaders ([0c015f9](https://github.com/medic/cht-conf/commit/0c015f93afbb2042b9e137156173a24085f488c1))
7
+
1
8
  # [3.21.0](https://github.com/medic/cht-conf/compare/v3.20.0...v3.21.0) (2023-12-06)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -9,7 +9,7 @@ const { info, warn, error } = require('../log');
9
9
 
10
10
  module.exports = (pathToProject, entry, baseEslintPath, options = {}) => {
11
11
  const baseEslintConfig = fsUtils.readJson(baseEslintPath);
12
-
12
+
13
13
  const directoryContainingEntry = path.dirname(entry);
14
14
  const libName = path.basename(directoryContainingEntry);
15
15
  info(`Packaging ${libName}`);
@@ -59,7 +59,7 @@ module.exports = (pathToProject, entry, baseEslintPath, options = {}) => {
59
59
  {
60
60
  enforce: 'pre',
61
61
  test: /\.js$/,
62
- loader: 'eslint-loader',
62
+ loader: require.resolve('eslint-loader'),
63
63
  exclude: /node_modules/,
64
64
  options: {
65
65
  baseConfig: baseEslintConfig,
@@ -85,7 +85,7 @@ module.exports = (pathToProject, entry, baseEslintPath, options = {}) => {
85
85
  if (err.details) {
86
86
  error(err.details);
87
87
  }
88
-
88
+
89
89
  return reject(err);
90
90
  }
91
91