cht-conf 3.16.1 → 3.16.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,10 @@
1
+ ## [3.16.2](https://github.com/medic/cht-conf/compare/v3.16.1...v3.16.2) (2023-03-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **#533:** compile-app-settings with --debug flag should ignore eslint errors ([5592efe](https://github.com/medic/cht-conf/commit/5592efe0ccee0165fa8690f7d4494e7ed7057beb)), closes [#533](https://github.com/medic/cht-conf/issues/533) [#533](https://github.com/medic/cht-conf/issues/533)
7
+
1
8
  ## [3.16.1](https://github.com/medic/cht-conf/compare/v3.16.0...v3.16.1) (2023-03-18)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "3.16.1",
3
+ "version": "3.16.2",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -77,19 +77,20 @@
77
77
  "@semantic-release/git": "^10.0.0",
78
78
  "body-parser": "^1.19.0",
79
79
  "chai": "^4.3.4",
80
+ "chai-as-promised": "^7.1.1",
80
81
  "chai-exclude": "^2.0.3",
81
82
  "chai-shallow-deep-equal": "^1.4.6",
82
83
  "chai-xml": "^0.4.0",
83
84
  "eslint-plugin-node": "^11.1.0",
84
85
  "express": "^4.17.1",
85
86
  "express-pouchdb": "^4.2.0",
87
+ "fs-extra": "8.1.0",
86
88
  "husky": "^7.0.2",
87
89
  "mocha": "^6.2.3",
88
90
  "nyc": "^15.1.0",
89
91
  "pouchdb-adapter-memory": "^7.2.2",
90
92
  "rewire": "^5.0.0",
91
93
  "semantic-release": "^18.0.0",
92
- "sinon": "^7.3.2",
93
- "fs-extra": "8.1.0"
94
+ "sinon": "^7.3.2"
94
95
  }
95
96
  }
@@ -64,6 +64,7 @@ module.exports = (pathToProject, entry, baseEslintPath, options = {}) => {
64
64
  options: {
65
65
  baseConfig: baseEslintConfig,
66
66
  useEslintrc: true,
67
+ ignore: !options.skipEslintIgnore,
67
68
 
68
69
  // pack the library regardless of the eslint result
69
70
  failOnError: false,
@@ -91,7 +92,7 @@ module.exports = (pathToProject, entry, baseEslintPath, options = {}) => {
91
92
  info(stats.toString());
92
93
 
93
94
  if (stats.hasErrors()) {
94
- const hasErrorsNotRelatedToLinting = stats.toJson().errors.some(err => !err.includes('(from ./node_modules/eslint-loader/index.js)'));
95
+ const hasErrorsNotRelatedToLinting = stats.toJson().errors.some(err => !err.includes('node_modules/eslint-loader'));
95
96
  const shouldHalt = options.haltOnLintMessage || hasErrorsNotRelatedToLinting;
96
97
  if (shouldHalt) {
97
98
  return reject(Error(`Webpack errors when building ${libName}`));