@html-validate/semantic-release-config 4.0.5 → 4.0.6

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const path = require("path");
4
- const { spawn } = require("child_process"); // eslint-disable-line security/detect-child-process
4
+ const { spawn } = require("child_process");
5
5
 
6
6
  const pkgPath = path.dirname(require.resolve("semantic-release/package.json"));
7
7
  const binary = path.join(pkgPath, "bin/semantic-release.js");
@@ -9,6 +9,5 @@ const binary = path.join(pkgPath, "bin/semantic-release.js");
9
9
  spawn("node", [binary, ...process.argv.slice(2)], {
10
10
  stdio: "inherit",
11
11
  }).on("exit", (code) => {
12
- /* eslint-disable-next-line no-process-exit */
13
- process.exit(code);
12
+ process.exitCode = code;
14
13
  });
package/lib/changelog.js CHANGED
@@ -1,9 +1,8 @@
1
+ const fs = require("fs");
1
2
  const findUp = require("find-up");
2
3
 
3
4
  const pkgPath = findUp.sync("package.json");
4
-
5
- /* eslint-disable-next-line import/no-dynamic-require, security/detect-non-literal-require */
6
- const pkg = require(pkgPath);
5
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
7
6
 
8
7
  module.exports = {
9
8
  changelogTitle: `# ${pkg.name} changelog`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/semantic-release-config",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Semantic release configuration used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "semantic-release"
@@ -27,11 +27,11 @@
27
27
  "!**/*.spec.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@semantic-release/changelog": "6.0.2",
30
+ "@semantic-release/changelog": "6.0.3",
31
31
  "@semantic-release/exec": "6.0.3",
32
32
  "@semantic-release/git": "10.0.1",
33
- "@semantic-release/gitlab": "12.0.0",
34
- "@semantic-release/npm": "9.0.2",
33
+ "@semantic-release/gitlab": "12.0.1",
34
+ "@semantic-release/npm": "10.0.2",
35
35
  "@semantic-release/release-notes-generator": "10.0.3",
36
36
  "conventional-changelog-conventionalcommits": "5.0.0",
37
37
  "find-up": "^5.0.0",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "a0d9c8b3a9dfb68eefa774629845f8cb6dedc309"
55
+ "gitHead": "eed7eb9e949fbcb7669de790f1f4b24c7d8236c0"
56
56
  }