@releasekit/publish 0.2.0-next.9 → 0.3.0-next.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/LICENSE +21 -0
- package/README.md +13 -1
- package/dist/{chunk-Y7Y6GQ6R.js → chunk-GOBII36Q.js} +297 -112
- package/dist/cli.cjs +317 -134
- package/dist/cli.js +1 -1
- package/dist/index.cjs +311 -128
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1 -1
- package/package.json +38 -28
package/dist/index.d.cts
CHANGED
|
@@ -25,14 +25,16 @@ interface GitConfig {
|
|
|
25
25
|
pushMethod: 'auto' | 'ssh' | 'https';
|
|
26
26
|
remote: string;
|
|
27
27
|
branch: string;
|
|
28
|
+
httpsTokenEnv?: string;
|
|
29
|
+
skipHooks?: boolean;
|
|
28
30
|
}
|
|
29
31
|
interface GitHubReleaseConfig {
|
|
30
32
|
enabled: boolean;
|
|
31
33
|
draft: boolean;
|
|
32
|
-
generateNotes: boolean;
|
|
33
34
|
perPackage: boolean;
|
|
34
35
|
prerelease: 'auto' | boolean;
|
|
35
|
-
|
|
36
|
+
/** 'auto' | 'github' | 'none' | file path */
|
|
37
|
+
releaseNotes: string;
|
|
36
38
|
}
|
|
37
39
|
interface VerifyRegistryConfig {
|
|
38
40
|
enabled: boolean;
|
|
@@ -58,11 +60,16 @@ interface PublishCliOptions {
|
|
|
58
60
|
npmAuth: 'auto' | 'oidc' | 'token';
|
|
59
61
|
dryRun: boolean;
|
|
60
62
|
skipGit: boolean;
|
|
63
|
+
skipGitCommit?: boolean;
|
|
61
64
|
skipPublish: boolean;
|
|
62
65
|
skipGithubRelease: boolean;
|
|
63
66
|
skipVerification: boolean;
|
|
64
67
|
json: boolean;
|
|
65
68
|
verbose: boolean;
|
|
69
|
+
/** Per-package release notes keyed by package name, from the notes pipeline. */
|
|
70
|
+
releaseNotes?: Record<string, string>;
|
|
71
|
+
/** Additional files to stage in the git commit (e.g., changelog files from the notes step). */
|
|
72
|
+
additionalFiles?: string[];
|
|
66
73
|
}
|
|
67
74
|
interface PublishResult {
|
|
68
75
|
packageName: string;
|
|
@@ -108,6 +115,10 @@ interface PipelineContext {
|
|
|
108
115
|
packageManager: PackageManager;
|
|
109
116
|
output: PublishOutput;
|
|
110
117
|
cwd: string;
|
|
118
|
+
/** Per-package release notes keyed by package name, passed from the notes pipeline. */
|
|
119
|
+
releaseNotes?: Record<string, string>;
|
|
120
|
+
/** Additional files to stage in the git commit (e.g., changelog files from the notes step). */
|
|
121
|
+
additionalFiles?: string[];
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
declare function loadConfig(options?: LoadOptions): PublishConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,14 +25,16 @@ interface GitConfig {
|
|
|
25
25
|
pushMethod: 'auto' | 'ssh' | 'https';
|
|
26
26
|
remote: string;
|
|
27
27
|
branch: string;
|
|
28
|
+
httpsTokenEnv?: string;
|
|
29
|
+
skipHooks?: boolean;
|
|
28
30
|
}
|
|
29
31
|
interface GitHubReleaseConfig {
|
|
30
32
|
enabled: boolean;
|
|
31
33
|
draft: boolean;
|
|
32
|
-
generateNotes: boolean;
|
|
33
34
|
perPackage: boolean;
|
|
34
35
|
prerelease: 'auto' | boolean;
|
|
35
|
-
|
|
36
|
+
/** 'auto' | 'github' | 'none' | file path */
|
|
37
|
+
releaseNotes: string;
|
|
36
38
|
}
|
|
37
39
|
interface VerifyRegistryConfig {
|
|
38
40
|
enabled: boolean;
|
|
@@ -58,11 +60,16 @@ interface PublishCliOptions {
|
|
|
58
60
|
npmAuth: 'auto' | 'oidc' | 'token';
|
|
59
61
|
dryRun: boolean;
|
|
60
62
|
skipGit: boolean;
|
|
63
|
+
skipGitCommit?: boolean;
|
|
61
64
|
skipPublish: boolean;
|
|
62
65
|
skipGithubRelease: boolean;
|
|
63
66
|
skipVerification: boolean;
|
|
64
67
|
json: boolean;
|
|
65
68
|
verbose: boolean;
|
|
69
|
+
/** Per-package release notes keyed by package name, from the notes pipeline. */
|
|
70
|
+
releaseNotes?: Record<string, string>;
|
|
71
|
+
/** Additional files to stage in the git commit (e.g., changelog files from the notes step). */
|
|
72
|
+
additionalFiles?: string[];
|
|
66
73
|
}
|
|
67
74
|
interface PublishResult {
|
|
68
75
|
packageName: string;
|
|
@@ -108,6 +115,10 @@ interface PipelineContext {
|
|
|
108
115
|
packageManager: PackageManager;
|
|
109
116
|
output: PublishOutput;
|
|
110
117
|
cwd: string;
|
|
118
|
+
/** Per-package release notes keyed by package name, passed from the notes pipeline. */
|
|
119
|
+
releaseNotes?: Record<string, string>;
|
|
120
|
+
/** Additional files to stage in the git commit (e.g., changelog files from the notes step). */
|
|
121
|
+
additionalFiles?: string[];
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
declare function loadConfig(options?: LoadOptions): PublishConfig;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@releasekit/publish",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-next.0",
|
|
4
4
|
"description": "Publish packages to npm and crates.io with git tagging and GitHub releases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -21,17 +21,13 @@
|
|
|
21
21
|
"bin": {
|
|
22
22
|
"releasekit-publish": "dist/cli.js"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"lint": "biome check .",
|
|
32
|
-
"typecheck": "tsc --noEmit"
|
|
33
|
-
},
|
|
34
|
-
"keywords": ["publish", "npm", "cargo", "release", "ci"],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"publish",
|
|
26
|
+
"npm",
|
|
27
|
+
"cargo",
|
|
28
|
+
"release",
|
|
29
|
+
"ci"
|
|
30
|
+
],
|
|
35
31
|
"author": {
|
|
36
32
|
"name": "Sam Maister",
|
|
37
33
|
"email": "goosewobbler@protonmail.com"
|
|
@@ -42,29 +38,43 @@
|
|
|
42
38
|
"directory": "packages/publish"
|
|
43
39
|
},
|
|
44
40
|
"license": "MIT",
|
|
45
|
-
"files": [
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"README.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
50
|
+
"chalk": "^5.6.2",
|
|
51
|
+
"commander": "^14.0.3",
|
|
52
|
+
"semver": "^7.7.4",
|
|
53
|
+
"smol-toml": "^1.6.0",
|
|
54
|
+
"zod": "^4.3.6",
|
|
55
|
+
"@releasekit/core": "0.1.0",
|
|
56
|
+
"@releasekit/config": "0.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@biomejs/biome": "
|
|
60
|
-
"@types/node": "
|
|
61
|
-
"@types/semver": "
|
|
62
|
-
"@vitest/coverage-v8": "
|
|
63
|
-
"tsup": "
|
|
64
|
-
"typescript": "
|
|
65
|
-
"vitest": "
|
|
59
|
+
"@biomejs/biome": "^2.4.6",
|
|
60
|
+
"@types/node": "^22.19.15",
|
|
61
|
+
"@types/semver": "^7.7.1",
|
|
62
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
63
|
+
"tsup": "^8.5.1",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"vitest": "^4.1.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=20"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts",
|
|
72
|
+
"dev": "tsup src/index.ts src/cli.ts --format esm,cjs --watch --dts",
|
|
73
|
+
"clean": "rm -rf dist coverage .turbo",
|
|
74
|
+
"test": "vitest run",
|
|
75
|
+
"test:unit": "vitest run --coverage",
|
|
76
|
+
"test:coverage": "vitest run --coverage",
|
|
77
|
+
"lint": "biome check .",
|
|
78
|
+
"typecheck": "tsc --noEmit"
|
|
69
79
|
}
|
|
70
|
-
}
|
|
80
|
+
}
|