@lobehub/semantic-release-config 2.0.0-beta.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 LobeHub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,133 @@
1
+ <a name="readme-top"></a>
2
+
3
+ <div align="center">
4
+
5
+ <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
6
+ <img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
7
+ <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/triangular-ruler.webp">
8
+
9
+ <h1>@lobehub/semantic-release-config</h1>
10
+
11
+ Semantic release configuration for LobeHub projects
12
+
13
+ [![][npm-release-shield]][npm-release-link]
14
+ [![][npm-downloads-shield]][npm-downloads-link]
15
+ [![][github-license-shield]][github-license-link]
16
+
17
+ </div>
18
+
19
+ ## Features
20
+
21
+ - Gitmoji commit convention
22
+ - Automated versioning and changelog
23
+ - GitHub releases
24
+ - NPM publishing
25
+ - Monorepo support
26
+
27
+ ## Installation
28
+
29
+ ```bash
30
+ pnpm add -D @lobehub/semantic-release-config semantic-release
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ ### Standard Project
36
+
37
+ Create `.releaserc.js` in your project root:
38
+
39
+ ```js
40
+ import config from '@lobehub/semantic-release-config';
41
+
42
+ export default config;
43
+ ```
44
+
45
+ ### Monorepo
46
+
47
+ ```js
48
+ import config from '@lobehub/semantic-release-config/monorepo';
49
+
50
+ export default config;
51
+ ```
52
+
53
+ ### Changelog Only
54
+
55
+ For generating changelog without releasing:
56
+
57
+ ```js
58
+ import config from '@lobehub/semantic-release-config/changelog';
59
+
60
+ export default config;
61
+ ```
62
+
63
+ ## Exports
64
+
65
+ | Export | Description |
66
+ | -------------------------------------------- | ------------------------- |
67
+ | `@lobehub/semantic-release-config` | Standard release config |
68
+ | `@lobehub/semantic-release-config/monorepo` | Monorepo release config |
69
+ | `@lobehub/semantic-release-config/changelog` | Changelog generation only |
70
+
71
+ ## GitHub Actions
72
+
73
+ ```yaml
74
+ name: Release
75
+
76
+ on:
77
+ push:
78
+ branches: [master, main]
79
+
80
+ jobs:
81
+ release:
82
+ runs-on: ubuntu-latest
83
+ steps:
84
+ - uses: actions/checkout@v4
85
+ with:
86
+ fetch-depth: 0
87
+
88
+ - uses: pnpm/action-setup@v2
89
+
90
+ - uses: actions/setup-node@v4
91
+ with:
92
+ node-version: 20
93
+ cache: pnpm
94
+
95
+ - run: pnpm install --frozen-lockfile
96
+
97
+ - run: pnpm build
98
+
99
+ - name: Release
100
+ env:
101
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
103
+ run: pnpm semantic-release
104
+ ```
105
+
106
+ ## Extending
107
+
108
+ ```js
109
+ import config, { options } from '@lobehub/semantic-release-config';
110
+
111
+ export default {
112
+ ...config,
113
+ branches: ['main', 'next'],
114
+ };
115
+ ```
116
+
117
+ ## Requirements
118
+
119
+ - Node.js >= 18
120
+ - semantic-release >= 21.0.0
121
+
122
+ ## License
123
+
124
+ MIT © [LobeHub](https://github.com/lobehub)
125
+
126
+ <!-- LINK GROUP -->
127
+
128
+ [github-license-link]: https://github.com/lobehub/lobe-lint/blob/master/LICENSE
129
+ [github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-lint?color=white&labelColor=black&style=flat-square
130
+ [npm-downloads-link]: https://www.npmjs.com/package/@lobehub/semantic-release-config
131
+ [npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/semantic-release-config?labelColor=black&style=flat-square
132
+ [npm-release-link]: https://www.npmjs.com/package/@lobehub/semantic-release-config
133
+ [npm-release-shield]: https://img.shields.io/npm/v/@lobehub/semantic-release-config?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ //#region src/changelog.ts
4
+ const config = {
5
+ addBackToTop: true,
6
+ customTypeMap: {
7
+ build: { emoji: "📦" },
8
+ chore: { emoji: "🔧" },
9
+ ci: { emoji: "👷" }
10
+ },
11
+ displayTypes: [
12
+ "feat",
13
+ "fix",
14
+ "style",
15
+ "pref",
16
+ "refactor"
17
+ ],
18
+ newlineTimestamp: true,
19
+ reduceHeadingLevel: true,
20
+ scopeDisplayName: { "*": "misc" },
21
+ showAuthor: true,
22
+ showSummary: true
23
+ };
24
+ var changelog_default = config;
25
+
26
+ //#endregion
27
+ module.exports = changelog_default;
@@ -0,0 +1,25 @@
1
+ //#region src/changelog.d.ts
2
+ declare const config: {
3
+ addBackToTop: boolean;
4
+ customTypeMap: {
5
+ build: {
6
+ emoji: string;
7
+ };
8
+ chore: {
9
+ emoji: string;
10
+ };
11
+ ci: {
12
+ emoji: string;
13
+ };
14
+ };
15
+ displayTypes: string[];
16
+ newlineTimestamp: boolean;
17
+ reduceHeadingLevel: boolean;
18
+ scopeDisplayName: {
19
+ '*': string;
20
+ };
21
+ showAuthor: boolean;
22
+ showSummary: boolean;
23
+ }; //#endregion
24
+ export { config as default };
25
+ //# sourceMappingURL=changelog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changelog.d.cts","names":[],"sources":["../src/changelog.ts"],"sourcesContent":null,"mappings":";cAAM;EAAA,YAqBL,EAAA,OAAA"}
@@ -0,0 +1,25 @@
1
+ //#region src/changelog.d.ts
2
+ declare const config: {
3
+ addBackToTop: boolean;
4
+ customTypeMap: {
5
+ build: {
6
+ emoji: string;
7
+ };
8
+ chore: {
9
+ emoji: string;
10
+ };
11
+ ci: {
12
+ emoji: string;
13
+ };
14
+ };
15
+ displayTypes: string[];
16
+ newlineTimestamp: boolean;
17
+ reduceHeadingLevel: boolean;
18
+ scopeDisplayName: {
19
+ '*': string;
20
+ };
21
+ showAuthor: boolean;
22
+ showSummary: boolean;
23
+ }; //#endregion
24
+ export { config as default };
25
+ //# sourceMappingURL=changelog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changelog.d.ts","names":[],"sources":["../src/changelog.ts"],"sourcesContent":null,"mappings":";cAAM;EAAA,YAqBL,EAAA,OAAA"}
@@ -0,0 +1,26 @@
1
+ //#region src/changelog.ts
2
+ const config = {
3
+ addBackToTop: true,
4
+ customTypeMap: {
5
+ build: { emoji: "📦" },
6
+ chore: { emoji: "🔧" },
7
+ ci: { emoji: "👷" }
8
+ },
9
+ displayTypes: [
10
+ "feat",
11
+ "fix",
12
+ "style",
13
+ "pref",
14
+ "refactor"
15
+ ],
16
+ newlineTimestamp: true,
17
+ reduceHeadingLevel: true,
18
+ scopeDisplayName: { "*": "misc" },
19
+ showAuthor: true,
20
+ showSummary: true
21
+ };
22
+ var changelog_default = config;
23
+
24
+ //#endregion
25
+ export { changelog_default as default };
26
+ //# sourceMappingURL=changelog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changelog.js","names":[],"sources":["../src/changelog.ts"],"sourcesContent":["const config = {\n addBackToTop: true,\n customTypeMap: {\n build: {\n emoji: '📦',\n },\n chore: {\n emoji: '🔧',\n },\n ci: {\n emoji: '👷',\n },\n },\n displayTypes: ['feat', 'fix', 'style', 'pref', 'refactor'],\n newlineTimestamp: true,\n reduceHeadingLevel: true,\n scopeDisplayName: {\n '*': 'misc',\n },\n showAuthor: true,\n showSummary: true,\n};\n\nexport default config;\n"],"mappings":";AAAA,MAAM,SAAS;CACb,cAAc;CACd,eAAe;EACb,OAAO,EACL,OAAO,KACR;EACD,OAAO,EACL,OAAO,KACR;EACD,IAAI,EACF,OAAO,KACR;CACF;CACD,cAAc;EAAC;EAAQ;EAAO;EAAS;EAAQ;CAAW;CAC1D,kBAAkB;CAClB,oBAAoB;CACpB,kBAAkB,EAChB,KAAK,OACN;CACD,YAAY;CACZ,aAAa;AACd;AAED,wBAAe"}
package/dist/index.cjs ADDED
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ const require_src = require('./src-BkbAH-yB.cjs');
3
+
4
+ exports.default = require_src.src_default
5
+ exports.options = require_src.options
@@ -0,0 +1,22 @@
1
+ import * as semantic_release3 from "semantic-release";
2
+ import * as semantic_release4 from "semantic-release";
3
+ import * as semantic_release5 from "semantic-release";
4
+ import { Options } from "semantic-release-config-gitmoji/lib/createConfig.js";
5
+
6
+ //#region src/index.d.ts
7
+ declare const options: Options;
8
+ declare const config: {
9
+ [name: string]: any;
10
+ extends?: ReadonlyArray<string> | string | undefined;
11
+ branches?: ReadonlyArray<semantic_release3.BranchSpec> | semantic_release4.BranchSpec | undefined;
12
+ repositoryUrl?: string | undefined;
13
+ tagFormat?: string | undefined;
14
+ plugins?: ReadonlyArray<semantic_release5.PluginSpec> | undefined;
15
+ dryRun?: boolean | undefined;
16
+ ci?: boolean | undefined;
17
+ noCi?: true;
18
+ };
19
+
20
+ //#endregion
21
+ export { config as default, options };
22
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":null,"mappings":";;;;;;cAGa,SAAS;cAoEhB;;YAEL;;EAtEY,aAkED,CAAA,EAAA,MAlEU,GAAA,SAkEV;EAEN,SAEL,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,OAAA,CAAA,eAAA,8BAAA,GAAA,SAAA;EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
@@ -0,0 +1,22 @@
1
+ import { Options } from "semantic-release-config-gitmoji/lib/createConfig.js";
2
+ import * as semantic_release3 from "semantic-release";
3
+ import * as semantic_release4 from "semantic-release";
4
+ import * as semantic_release5 from "semantic-release";
5
+
6
+ //#region src/index.d.ts
7
+ declare const options: Options;
8
+ declare const config: {
9
+ [name: string]: any;
10
+ extends?: ReadonlyArray<string> | string | undefined;
11
+ branches?: ReadonlyArray<semantic_release3.BranchSpec> | semantic_release4.BranchSpec | undefined;
12
+ repositoryUrl?: string | undefined;
13
+ tagFormat?: string | undefined;
14
+ plugins?: ReadonlyArray<semantic_release5.PluginSpec> | undefined;
15
+ dryRun?: boolean | undefined;
16
+ ci?: boolean | undefined;
17
+ noCi?: true;
18
+ };
19
+
20
+ //#endregion
21
+ export { config as default, options };
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":null,"mappings":";;;;;;cAGa,SAAS;cAoEhB;;YAEL;;EAtEY,aAkED,CAAA,EAAA,MAlEU,GAAA,SAkEV;EAEN,SAEL,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,OAAA,CAAA,eAAA,8BAAA,GAAA,SAAA;EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { options, src_default } from "./src-B_KP4Lzb.js";
2
+
3
+ export { src_default as default, options };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const require_src = require('./src-BkbAH-yB.cjs');
3
+ const semantic_release_config_gitmoji_lib_createConfig_js = require_src.__toESM(require("semantic-release-config-gitmoji/lib/createConfig.js"));
4
+
5
+ //#region src/monorepo.ts
6
+ const config = { ...(0, semantic_release_config_gitmoji_lib_createConfig_js.createConfig)({
7
+ ...require_src.options,
8
+ monorepo: true
9
+ }) };
10
+ var monorepo_default = config;
11
+
12
+ //#endregion
13
+ module.exports = monorepo_default;
@@ -0,0 +1,20 @@
1
+ import * as semantic_release0 from "semantic-release";
2
+ import * as semantic_release1 from "semantic-release";
3
+ import * as semantic_release2 from "semantic-release";
4
+
5
+ //#region src/monorepo.d.ts
6
+ declare const config: {
7
+ [name: string]: any;
8
+ extends?: ReadonlyArray<string> | string | undefined;
9
+ branches?: ReadonlyArray<semantic_release0.BranchSpec> | semantic_release1.BranchSpec | undefined;
10
+ repositoryUrl?: string | undefined;
11
+ tagFormat?: string | undefined;
12
+ plugins?: ReadonlyArray<semantic_release2.PluginSpec> | undefined;
13
+ dryRun?: boolean | undefined;
14
+ ci?: boolean | undefined;
15
+ noCi?: true;
16
+ };
17
+
18
+ //#endregion
19
+ export { config as default };
20
+ //# sourceMappingURL=monorepo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monorepo.d.cts","names":[],"sources":["../src/monorepo.ts"],"sourcesContent":null,"mappings":";;;;;cAIM;;YAEL;;;EAFK,SAEL,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,OAAA,CAAA,eAAA,8BAAA,GAAA,SAAA;EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
@@ -0,0 +1,20 @@
1
+ import * as semantic_release0 from "semantic-release";
2
+ import * as semantic_release1 from "semantic-release";
3
+ import * as semantic_release2 from "semantic-release";
4
+
5
+ //#region src/monorepo.d.ts
6
+ declare const config: {
7
+ [name: string]: any;
8
+ extends?: ReadonlyArray<string> | string | undefined;
9
+ branches?: ReadonlyArray<semantic_release0.BranchSpec> | semantic_release1.BranchSpec | undefined;
10
+ repositoryUrl?: string | undefined;
11
+ tagFormat?: string | undefined;
12
+ plugins?: ReadonlyArray<semantic_release2.PluginSpec> | undefined;
13
+ dryRun?: boolean | undefined;
14
+ ci?: boolean | undefined;
15
+ noCi?: true;
16
+ };
17
+
18
+ //#endregion
19
+ export { config as default };
20
+ //# sourceMappingURL=monorepo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monorepo.d.ts","names":[],"sources":["../src/monorepo.ts"],"sourcesContent":null,"mappings":";;;;;cAIM;;YAEL;;;EAFK,SAEL,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,OAAA,CAAA,eAAA,8BAAA,GAAA,SAAA;EAAA,MAAA,CAAA,EAAA,OAAA,GAAA,SAAA"}
@@ -0,0 +1,13 @@
1
+ import { options } from "./src-B_KP4Lzb.js";
2
+ import { createConfig } from "semantic-release-config-gitmoji/lib/createConfig.js";
3
+
4
+ //#region src/monorepo.ts
5
+ const config = { ...createConfig({
6
+ ...options,
7
+ monorepo: true
8
+ }) };
9
+ var monorepo_default = config;
10
+
11
+ //#endregion
12
+ export { monorepo_default as default };
13
+ //# sourceMappingURL=monorepo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monorepo.js","names":[],"sources":["../src/monorepo.ts"],"sourcesContent":["import { createConfig } from 'semantic-release-config-gitmoji/lib/createConfig.js';\n\nimport { options } from './index.js';\n\nconst config = {\n ...createConfig({ ...options, monorepo: true }),\n};\n\nexport default config;\n"],"mappings":";;;;AAIA,MAAM,SAAS,EACb,GAAG,aAAa;CAAE,GAAG;CAAS,UAAU;AAAM,EAAC,CAChD;AAED,uBAAe"}
@@ -0,0 +1,102 @@
1
+ import { createConfig } from "semantic-release-config-gitmoji/lib/createConfig.js";
2
+
3
+ //#region src/index.ts
4
+ const options = {
5
+ changelogTitle: `<a name="readme-top"></a>
6
+
7
+ # Changelog`,
8
+ releaseRules: [
9
+ {
10
+ release: "minor",
11
+ type: "feat"
12
+ },
13
+ {
14
+ release: "patch",
15
+ type: "fix"
16
+ },
17
+ {
18
+ release: "patch",
19
+ type: "perf"
20
+ },
21
+ {
22
+ release: "patch",
23
+ type: "style"
24
+ },
25
+ {
26
+ release: "patch",
27
+ type: "refactor"
28
+ },
29
+ {
30
+ release: "patch",
31
+ type: "build"
32
+ },
33
+ {
34
+ release: "patch",
35
+ scope: "README",
36
+ type: "docs"
37
+ },
38
+ {
39
+ release: "patch",
40
+ scope: "README.md",
41
+ type: "docs"
42
+ },
43
+ {
44
+ release: false,
45
+ type: "docs"
46
+ },
47
+ {
48
+ release: false,
49
+ type: "test"
50
+ },
51
+ {
52
+ release: false,
53
+ type: "ci"
54
+ },
55
+ {
56
+ release: false,
57
+ type: "chore"
58
+ },
59
+ {
60
+ release: false,
61
+ type: "wip"
62
+ },
63
+ {
64
+ release: "major",
65
+ type: "BREAKING CHANGE"
66
+ },
67
+ {
68
+ release: "major",
69
+ scope: "BREAKING CHANGE"
70
+ },
71
+ {
72
+ release: "major",
73
+ subject: "*BREAKING CHANGE*"
74
+ },
75
+ {
76
+ release: "patch",
77
+ subject: "*force release*"
78
+ },
79
+ {
80
+ release: "patch",
81
+ subject: "*force patch*"
82
+ },
83
+ {
84
+ release: "minor",
85
+ subject: "*force minor*"
86
+ },
87
+ {
88
+ release: "major",
89
+ subject: "*force major*"
90
+ },
91
+ {
92
+ release: false,
93
+ subject: "*skip release*"
94
+ }
95
+ ]
96
+ };
97
+ const config = { ...createConfig(options) };
98
+ var src_default = config;
99
+
100
+ //#endregion
101
+ export { options, src_default };
102
+ //# sourceMappingURL=src-B_KP4Lzb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"src-B_KP4Lzb.js","names":["options: Options"],"sources":["../src/index.ts"],"sourcesContent":["import type { Options } from 'semantic-release-config-gitmoji/lib/createConfig.js';\nimport { createConfig } from 'semantic-release-config-gitmoji/lib/createConfig.js';\n\nexport const options: Options = {\n changelogTitle: `<a name=\"readme-top\"></a>\n\n# Changelog`,\n releaseRules: [\n {\n release: 'minor',\n type: 'feat',\n },\n {\n release: 'patch',\n type: 'fix',\n },\n {\n release: 'patch',\n type: 'perf',\n },\n {\n release: 'patch',\n type: 'style',\n },\n {\n release: 'patch',\n type: 'refactor',\n },\n {\n release: 'patch',\n type: 'build',\n },\n { release: 'patch', scope: 'README', type: 'docs' },\n { release: 'patch', scope: 'README.md', type: 'docs' },\n { release: false, type: 'docs' },\n {\n release: false,\n type: 'test',\n },\n {\n release: false,\n type: 'ci',\n },\n {\n release: false,\n type: 'chore',\n },\n {\n release: false,\n type: 'wip',\n },\n {\n release: 'major',\n type: 'BREAKING CHANGE',\n },\n {\n release: 'major',\n scope: 'BREAKING CHANGE',\n },\n {\n release: 'major',\n subject: '*BREAKING CHANGE*',\n },\n { release: 'patch', subject: '*force release*' },\n { release: 'patch', subject: '*force patch*' },\n { release: 'minor', subject: '*force minor*' },\n { release: 'major', subject: '*force major*' },\n { release: false, subject: '*skip release*' },\n ],\n} as Options;\n\nconst config = {\n ...createConfig(options),\n};\n\nexport default config;\n"],"mappings":";;;AAGA,MAAaA,UAAmB;CAC9B,iBAAiB;;;CAGjB,cAAc;EACZ;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GAAE,SAAS;GAAS,OAAO;GAAU,MAAM;EAAQ;EACnD;GAAE,SAAS;GAAS,OAAO;GAAa,MAAM;EAAQ;EACtD;GAAE,SAAS;GAAO,MAAM;EAAQ;EAChC;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,MAAM;EACP;EACD;GACE,SAAS;GACT,OAAO;EACR;EACD;GACE,SAAS;GACT,SAAS;EACV;EACD;GAAE,SAAS;GAAS,SAAS;EAAmB;EAChD;GAAE,SAAS;GAAS,SAAS;EAAiB;EAC9C;GAAE,SAAS;GAAS,SAAS;EAAiB;EAC9C;GAAE,SAAS;GAAS,SAAS;EAAiB;EAC9C;GAAE,SAAS;GAAO,SAAS;EAAkB;CAC9C;AACF;AAED,MAAM,SAAS,EACb,GAAG,aAAa,QAAQ,CACzB;AAED,kBAAe"}
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ //#region rolldown:runtime
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+
24
+ //#endregion
25
+ const semantic_release_config_gitmoji_lib_createConfig_js = __toESM(require("semantic-release-config-gitmoji/lib/createConfig.js"));
26
+
27
+ //#region src/index.ts
28
+ const options = {
29
+ changelogTitle: `<a name="readme-top"></a>
30
+
31
+ # Changelog`,
32
+ releaseRules: [
33
+ {
34
+ release: "minor",
35
+ type: "feat"
36
+ },
37
+ {
38
+ release: "patch",
39
+ type: "fix"
40
+ },
41
+ {
42
+ release: "patch",
43
+ type: "perf"
44
+ },
45
+ {
46
+ release: "patch",
47
+ type: "style"
48
+ },
49
+ {
50
+ release: "patch",
51
+ type: "refactor"
52
+ },
53
+ {
54
+ release: "patch",
55
+ type: "build"
56
+ },
57
+ {
58
+ release: "patch",
59
+ scope: "README",
60
+ type: "docs"
61
+ },
62
+ {
63
+ release: "patch",
64
+ scope: "README.md",
65
+ type: "docs"
66
+ },
67
+ {
68
+ release: false,
69
+ type: "docs"
70
+ },
71
+ {
72
+ release: false,
73
+ type: "test"
74
+ },
75
+ {
76
+ release: false,
77
+ type: "ci"
78
+ },
79
+ {
80
+ release: false,
81
+ type: "chore"
82
+ },
83
+ {
84
+ release: false,
85
+ type: "wip"
86
+ },
87
+ {
88
+ release: "major",
89
+ type: "BREAKING CHANGE"
90
+ },
91
+ {
92
+ release: "major",
93
+ scope: "BREAKING CHANGE"
94
+ },
95
+ {
96
+ release: "major",
97
+ subject: "*BREAKING CHANGE*"
98
+ },
99
+ {
100
+ release: "patch",
101
+ subject: "*force release*"
102
+ },
103
+ {
104
+ release: "patch",
105
+ subject: "*force patch*"
106
+ },
107
+ {
108
+ release: "minor",
109
+ subject: "*force minor*"
110
+ },
111
+ {
112
+ release: "major",
113
+ subject: "*force major*"
114
+ },
115
+ {
116
+ release: false,
117
+ subject: "*skip release*"
118
+ }
119
+ ]
120
+ };
121
+ const config = { ...(0, semantic_release_config_gitmoji_lib_createConfig_js.createConfig)(options) };
122
+ var src_default = config;
123
+
124
+ //#endregion
125
+ Object.defineProperty(exports, '__toESM', {
126
+ enumerable: true,
127
+ get: function () {
128
+ return __toESM;
129
+ }
130
+ });
131
+ Object.defineProperty(exports, 'options', {
132
+ enumerable: true,
133
+ get: function () {
134
+ return options;
135
+ }
136
+ });
137
+ Object.defineProperty(exports, 'src_default', {
138
+ enumerable: true,
139
+ get: function () {
140
+ return src_default;
141
+ }
142
+ });
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@lobehub/semantic-release-config",
3
+ "version": "2.0.0-beta.10",
4
+ "description": "Semantic release configuration for LobeHub projects",
5
+ "homepage": "https://github.com/lobehub/lobe-lint/tree/master/packages/semantic-release-config",
6
+ "bugs": {
7
+ "url": "https://github.com/lobehub/lobe-lint/issues/new"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/lobehub/lobe-lint.git",
12
+ "directory": "packages/semantic-release-config"
13
+ },
14
+ "license": "MIT",
15
+ "author": "canisminor1990 <i@canisminor.cc>, Innei <i@innei.in>",
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./monorepo": {
24
+ "types": "./dist/monorepo.d.ts",
25
+ "import": "./dist/monorepo.js",
26
+ "require": "./dist/monorepo.cjs"
27
+ },
28
+ "./changelog": {
29
+ "types": "./dist/changelog.d.ts",
30
+ "import": "./dist/changelog.js",
31
+ "require": "./dist/changelog.cjs"
32
+ }
33
+ },
34
+ "main": "./dist/index.cjs",
35
+ "module": "./dist/index.js",
36
+ "types": "./dist/index.d.ts",
37
+ "files": [
38
+ "dist"
39
+ ],
40
+ "dependencies": {
41
+ "semantic-release-config-gitmoji": "^1.5.3"
42
+ },
43
+ "peerDependencies": {
44
+ "semantic-release": ">=21.0.0"
45
+ },
46
+ "engines": {
47
+ "node": ">=18"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "registry": "https://registry.npmjs.org"
52
+ },
53
+ "scripts": {
54
+ "build": "tsdown src/index.ts src/monorepo.ts src/changelog.ts",
55
+ "dev": "tsdown src/index.ts src/monorepo.ts src/changelog.ts --watch",
56
+ "type-check": "tsc --noEmit"
57
+ }
58
+ }