cht-conf 3.21.0 → 3.21.2
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,17 @@
|
|
|
1
|
+
## [3.21.2](https://github.com/medic/cht-conf/compare/v3.21.1...v3.21.2) (2024-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **#596:** fix issue with semver in latest cht versions ([86a9954](https://github.com/medic/cht-conf/commit/86a9954c861dd4ea57bcd37361c85d8dfe7edad6))
|
|
7
|
+
|
|
8
|
+
## [3.21.1](https://github.com/medic/cht-conf/compare/v3.21.0...v3.21.1) (2023-12-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **#593:** properly resolve the path to webpack loaders ([0c015f9](https://github.com/medic/cht-conf/commit/0c015f93afbb2042b9e137156173a24085f488c1))
|
|
14
|
+
|
|
1
15
|
# [3.21.0](https://github.com/medic/cht-conf/compare/v3.20.0...v3.21.0) (2023-12-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -38,8 +38,8 @@ async function augmentDeclarativeWithNoolsBoilerplate(appSettings) {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
const actualCoreVersion = await getValidApiVersion(
|
|
42
|
-
const addNoolsBoilerplate = semver.lt(actualCoreVersion, '4.2.0-dev');
|
|
41
|
+
const actualCoreVersion = await getValidApiVersion();
|
|
42
|
+
const addNoolsBoilerplate = actualCoreVersion && semver.lt(actualCoreVersion, '4.2.0-dev');
|
|
43
43
|
if (addNoolsBoilerplate) {
|
|
44
44
|
appSettings.tasks.rules = nools.addBoilerplateToCode(appSettings.tasks.rules);
|
|
45
45
|
|
|
@@ -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
|
|