newspack-scripts 4.5.0-alpha.2 → 4.5.0
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/package.json +1 -2
- package/scripts/release.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newspack-scripts",
|
|
3
|
-
"version": "4.5.0
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": {
|
|
6
6
|
"newspack-scripts": "./bin/newspack-scripts.js"
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"prettier": "npm:wp-prettier@^2.6.2-beta-1",
|
|
59
59
|
"semantic-release": "^19.0.5",
|
|
60
60
|
"semantic-release-version-bump": "^1.4.1",
|
|
61
|
-
"slugg": "^1.2.1",
|
|
62
61
|
"stylelint": "^14.1.0",
|
|
63
62
|
"stylelint-config-prettier": "^9.0.3",
|
|
64
63
|
"stylelint-prettier": "^2.0.0",
|
package/scripts/release.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const spawn = require("cross-spawn");
|
|
4
4
|
const path = require("path");
|
|
5
5
|
const utils = require("./utils/index.js");
|
|
6
|
-
const slugg = require("slugg");
|
|
7
6
|
|
|
8
7
|
const semanticRelease = require("semantic-release");
|
|
9
8
|
|
|
@@ -40,7 +39,7 @@ const getConfig = ({ gitBranchName }) => {
|
|
|
40
39
|
name: "hotfix/*",
|
|
41
40
|
// With `prerelease: true`, the `name` would be used for the pre-release tag. A name with a `/`
|
|
42
41
|
// is not valid, though. See https://semver.org/#spec-item-9.
|
|
43
|
-
prerelease:
|
|
42
|
+
prerelease: '${name.replace(/\\//g, "-")}',
|
|
44
43
|
},
|
|
45
44
|
],
|
|
46
45
|
prepare: ["@semantic-release/changelog", "@semantic-release/npm"],
|