@frsource/release-it-config 1.0.2 → 1.2.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/CHANGELOG.md +9 -0
- package/monorepoIndependent.cjs +1 -11
- package/package.json +1 -1
- package/version-plugin.mjs +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
# [1.2.0](https://github.com/FRSOURCE/toolkit/compare/@frsource/release-it-config-v1.1.0...${npm.name}-v1.2.0) (2024-04-19)
|
|
4
|
+
|
|
5
|
+
# [1.1.0](https://github.com/FRSOURCE/toolkit/compare/@frsource/release-it-config-v1.0.2...${npm.name}-v1.1.0) (2024-04-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **release-it-config:** fix and test the feature release ([991ed9f](https://github.com/FRSOURCE/toolkit/commit/991ed9f2c8a0bbbd23057c6353b6890a0be8929b))
|
|
11
|
+
|
|
3
12
|
## [1.0.2](https://github.com/FRSOURCE/toolkit/compare/@frsource/release-it-config-v1.0.1...${npm.name}-v1.0.2) (2024-04-19)
|
|
4
13
|
|
|
5
14
|
## [1.0.1](https://github.com/FRSOURCE/toolkit/compare/@frsource/release-it-config-v1.0.0...${npm.name}-v1.0.1) (2024-04-18)
|
package/monorepoIndependent.cjs
CHANGED
|
@@ -4,22 +4,16 @@ const path = require("path");
|
|
|
4
4
|
* Configuration for independent package in monorepo workspace
|
|
5
5
|
* @param {Object} options
|
|
6
6
|
* @param {string} options.pkgName name of the package in the monorepo, e.g. `@frsource/my-package`
|
|
7
|
-
* @param {string} [options.path=`packages/${options.pkgName}`] path of the package relative to the monorepo root, without starting slash. Always use "/" as delimiter. Will default to `packages/${options.pkgName}` (package scope in `options.pkgName` will be omitted)
|
|
8
7
|
* @param {string} [options.buildCmd="pnpm build"] command that should be used to build the package, defaults to `pnpm build`
|
|
9
8
|
*/
|
|
10
9
|
module.exports = ({
|
|
11
10
|
pkgName,
|
|
12
|
-
path: pkgPath = `packages/${pkgName.substring(pkgName.lastIndexOf("/") + 1)}`,
|
|
13
11
|
buildCmd = "pnpm build",
|
|
14
12
|
/**
|
|
15
13
|
* @private (for internal usage)
|
|
16
14
|
*/
|
|
17
15
|
pluginsPath = "@frsource/release-it-config",
|
|
18
16
|
}) => {
|
|
19
|
-
if (pkgPath.startsWith("/")) pkgPath = pkgPath.substring(1);
|
|
20
|
-
const nestingLevel = pkgPath.split("/").length;
|
|
21
|
-
if (path.sep !== "/") pkgPath = pkgPath.replaceAll("/", path.sep);
|
|
22
|
-
|
|
23
17
|
return {
|
|
24
18
|
npm: {
|
|
25
19
|
publishPath: "*.tgz",
|
|
@@ -50,7 +44,7 @@ module.exports = ({
|
|
|
50
44
|
plugins: {
|
|
51
45
|
"@release-it/conventional-changelog": {
|
|
52
46
|
gitRawCommitsOpts: {
|
|
53
|
-
path:
|
|
47
|
+
path: ".",
|
|
54
48
|
},
|
|
55
49
|
preset: "angular",
|
|
56
50
|
infile: "CHANGELOG.md",
|
|
@@ -59,10 +53,6 @@ module.exports = ({
|
|
|
59
53
|
},
|
|
60
54
|
hooks: {
|
|
61
55
|
"before:bump": buildCmd,
|
|
62
|
-
"after:bump": [
|
|
63
|
-
"pnpm install",
|
|
64
|
-
`git add ${"../".repeat(nestingLevel)}pnpm-lock.yaml`,
|
|
65
|
-
],
|
|
66
56
|
"before:npm:release": "pnpm pack",
|
|
67
57
|
"after:npm:release": "rm *.tgz",
|
|
68
58
|
},
|
package/package.json
CHANGED