@opinionated-ts/config 1.6.0 โ 1.7.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/README.md +2 -0
- package/dist/configs/release.d.mts +26 -0
- package/dist/configs/release.mjs +74 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -31,6 +31,7 @@ Each configuration can be used directly as a recommended default or customized d
|
|
|
31
31
|
|
|
32
32
|
See the configuration guides for each tool:
|
|
33
33
|
|
|
34
|
+
- [Scripts](./docs/scripts.md)
|
|
34
35
|
- [Typescript](./docs/tsconfig.md)
|
|
35
36
|
- [Commitlint](./docs/commitlint.md)
|
|
36
37
|
- [CSpell](./docs/cspell.md)
|
|
@@ -38,6 +39,7 @@ See the configuration guides for each tool:
|
|
|
38
39
|
- [Oxlint](./docs/oxlint.md)
|
|
39
40
|
- [Lefthook](./docs/lefthook.md)
|
|
40
41
|
- [GitHub Actions](./docs/github-actions.md)
|
|
42
|
+
- [Release](./docs/release.md)
|
|
41
43
|
|
|
42
44
|
## Philosophy
|
|
43
45
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/configs/release.d.ts
|
|
2
|
+
declare const semanticReleaseConfig: {
|
|
3
|
+
branches: (string | {
|
|
4
|
+
name: string;
|
|
5
|
+
prerelease: string;
|
|
6
|
+
channel: string;
|
|
7
|
+
})[];
|
|
8
|
+
plugins: (string | [string, {
|
|
9
|
+
preset: string;
|
|
10
|
+
}] | [string, {
|
|
11
|
+
preset: string;
|
|
12
|
+
presetConfig: {
|
|
13
|
+
types: ({
|
|
14
|
+
type: string;
|
|
15
|
+
section: string;
|
|
16
|
+
effect: "bump";
|
|
17
|
+
} | {
|
|
18
|
+
type: string;
|
|
19
|
+
section: string;
|
|
20
|
+
effect: "changelog";
|
|
21
|
+
})[];
|
|
22
|
+
};
|
|
23
|
+
}])[];
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { semanticReleaseConfig as default, semanticReleaseConfig };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import "conventional-changelog-conventionalcommits";
|
|
2
|
+
import "semantic-release";
|
|
3
|
+
//#region src/configs/release.ts
|
|
4
|
+
const semanticReleaseConfig = {
|
|
5
|
+
branches: [
|
|
6
|
+
"main",
|
|
7
|
+
{
|
|
8
|
+
name: "beta/*",
|
|
9
|
+
prerelease: "beta",
|
|
10
|
+
channel: "beta"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "next/*",
|
|
14
|
+
prerelease: "next",
|
|
15
|
+
channel: "next"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "insiders/*",
|
|
19
|
+
prerelease: "insiders",
|
|
20
|
+
channel: "insiders"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
plugins: [
|
|
24
|
+
["@semantic-release/commit-analyzer", { preset: "conventionalcommits" }],
|
|
25
|
+
["@semantic-release/release-notes-generator", {
|
|
26
|
+
preset: "conventionalcommits",
|
|
27
|
+
presetConfig: { types: [
|
|
28
|
+
{
|
|
29
|
+
type: "feat",
|
|
30
|
+
section: "๐ New Features",
|
|
31
|
+
effect: "bump"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: "fix",
|
|
35
|
+
section: "๐ Bug Fixes",
|
|
36
|
+
effect: "bump"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "docs",
|
|
40
|
+
section: "๐ Documentation Improvements",
|
|
41
|
+
effect: "changelog"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: "style",
|
|
45
|
+
section: "๐จ Code Style & Formatting",
|
|
46
|
+
effect: "changelog"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "refactor",
|
|
50
|
+
section: "๐ง Code Refactoring",
|
|
51
|
+
effect: "changelog"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "perf",
|
|
55
|
+
section: "โก Performance Improvements",
|
|
56
|
+
effect: "bump"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "test",
|
|
60
|
+
section: "๐งช Test Updates",
|
|
61
|
+
effect: "changelog"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "chore",
|
|
65
|
+
section: "๐ Miscellaneous",
|
|
66
|
+
effect: "changelog"
|
|
67
|
+
}
|
|
68
|
+
] }
|
|
69
|
+
}],
|
|
70
|
+
"@semantic-release/github"
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
export { semanticReleaseConfig as default, semanticReleaseConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import semanticReleaseConfig from "./configs/release.mjs";
|
|
1
2
|
import { RuleConfigSeverity } from "@commitlint/types";
|
|
2
3
|
//#region src/configs/commitlint.d.ts
|
|
3
4
|
declare const commitlintConfig: {
|
|
@@ -48,4 +49,4 @@ declare const oxlintConfig: {
|
|
|
48
49
|
plugins: ("import" | "jsx-a11y" | "node" | "oxc" | "promise" | "react" | "react-perf" | "typescript" | "unicorn")[];
|
|
49
50
|
};
|
|
50
51
|
//#endregion
|
|
51
|
-
export { commitlintConfig, cspellConfig, oxfmtConfig, oxlintConfig };
|
|
52
|
+
export { commitlintConfig, cspellConfig, oxfmtConfig, oxlintConfig, semanticReleaseConfig as release };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import semanticReleaseConfig from "./configs/release.mjs";
|
|
1
2
|
import { RuleConfigSeverity } from "@commitlint/types";
|
|
2
3
|
import "oxlint";
|
|
3
4
|
const commitlintConfig = {
|
|
@@ -114,4 +115,4 @@ const oxlintConfig = {
|
|
|
114
115
|
]
|
|
115
116
|
};
|
|
116
117
|
//#endregion
|
|
117
|
-
export { commitlintConfig, cspellConfig, oxfmtConfig, oxlintConfig };
|
|
118
|
+
export { commitlintConfig, cspellConfig, oxfmtConfig, oxlintConfig, semanticReleaseConfig as release };
|
package/package.json
CHANGED
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
".": "./dist/index.mjs",
|
|
49
49
|
"./package.json": "./package.json",
|
|
50
50
|
"./lefthook.yml": "./lefthook.yml",
|
|
51
|
-
"./tsconfig.json": "./tsconfig.json"
|
|
51
|
+
"./tsconfig.json": "./tsconfig.json",
|
|
52
|
+
"./release": "./dist/configs/release.mjs"
|
|
52
53
|
},
|
|
53
54
|
"publishConfig": {
|
|
54
55
|
"access": "public"
|
|
@@ -77,6 +78,8 @@
|
|
|
77
78
|
"devDependencies": {
|
|
78
79
|
"@types/bun": "^1.4.0",
|
|
79
80
|
"@types/node": "^26.2.0",
|
|
81
|
+
"conventional-changelog-conventionalcommits": "^10.4.0",
|
|
82
|
+
"semantic-release": "^25.0.9",
|
|
80
83
|
"tsdown": "^0.22.14"
|
|
81
84
|
},
|
|
82
85
|
"peerDependencies": {
|
|
@@ -87,5 +90,5 @@
|
|
|
87
90
|
"node": "^26.2.0"
|
|
88
91
|
},
|
|
89
92
|
"packageManager": "bun@1.4.0",
|
|
90
|
-
"version": "1.
|
|
93
|
+
"version": "1.7.0"
|
|
91
94
|
}
|