tegami 1.0.2 → 1.1.1
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/dist/_accessExpressionAsString-QhbUZzwv.js +44 -0
- package/dist/_assertGuard-BBn2NbSz.js +91 -0
- package/dist/_createStandardSchema-BGQyz-uA.js +89 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/{draft-BqHcSCeX.js → draft-DsxZOCOb.js} +212 -55
- package/dist/{generate-Rvz4Lu98.js → generate-Bg86OJP4.js} +1 -1
- package/dist/generators/simple.d.ts +1 -1
- package/dist/{graph-gThXu8Cz.js → graph-BmXTJZxx.js} +18 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/{npm-5cG02krT.js → npm-BLkgWr-D.js} +289 -42
- package/dist/plugins/cargo.d.ts +1 -1
- package/dist/plugins/cargo.js +583 -159
- package/dist/plugins/git.d.ts +1 -1
- package/dist/plugins/git.js +1 -2
- package/dist/plugins/github.d.ts +1 -1
- package/dist/plugins/github.js +39 -12
- package/dist/plugins/gitlab.d.ts +1 -1
- package/dist/plugins/gitlab.js +2 -2
- package/dist/plugins/go.d.ts +1 -1
- package/dist/plugins/go.js +246 -32
- package/dist/providers/npm.d.ts +1 -1
- package/dist/providers/npm.js +1 -1
- package/dist/shared-C_iSTp_s.js +115 -0
- package/dist/{types-DHddSAez.d.ts → types-VvvN6oyT.d.ts} +258 -377
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/index.js +2 -2
- package/package.json +7 -3
- package/dist/shared-C92toqVI.js +0 -32
package/dist/utils/index.d.ts
CHANGED
|
@@ -3,4 +3,8 @@ import { Result } from "tinyexec";
|
|
|
3
3
|
//#region src/utils/error.d.ts
|
|
4
4
|
declare function execFailure(context: string, result: Awaited<Result>): Error;
|
|
5
5
|
//#endregion
|
|
6
|
-
|
|
6
|
+
//#region src/utils/common.d.ts
|
|
7
|
+
declare const isCI: () => boolean;
|
|
8
|
+
declare function joinPath(...paths: string[]): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { execFailure, isCI, joinPath };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as execFailure } from "../error-BhMYq9iW.js";
|
|
2
|
-
export { execFailure };
|
|
1
|
+
import { n as execFailure, o as isCI, s as joinPath } from "../error-BhMYq9iW.js";
|
|
2
|
+
export { execFailure, isCI, joinPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tegami",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Utility for package versioning & publish",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fuma Nama",
|
|
@@ -31,20 +31,24 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@clack/prompts": "^1.6.0",
|
|
33
33
|
"@rainbowatcher/toml-edit-js": "^0.6.5",
|
|
34
|
-
"js-yaml": "^5.2.0",
|
|
35
34
|
"package-manager-detector": "^1.6.0",
|
|
36
35
|
"semver": "^7.8.5",
|
|
37
36
|
"tinyexec": "^1.2.4",
|
|
38
37
|
"tinyglobby": "^0.2.17",
|
|
39
|
-
"
|
|
38
|
+
"yaml": "^2.9.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@types/node": "^26.0.1",
|
|
43
42
|
"@types/semver": "^7.7.1",
|
|
44
43
|
"tsdown": "^0.22.3",
|
|
45
44
|
"typescript": "6.0.3",
|
|
45
|
+
"typia": "^12.1.1",
|
|
46
46
|
"@repo/typescript-config": "0.0.0"
|
|
47
47
|
},
|
|
48
|
+
"inlinedDependencies": {
|
|
49
|
+
"@typia/interface": "12.1.1",
|
|
50
|
+
"typia": "12.1.1"
|
|
51
|
+
},
|
|
48
52
|
"scripts": {
|
|
49
53
|
"types:check": "tsc --noEmit",
|
|
50
54
|
"build": "tsdown",
|
package/dist/shared-C92toqVI.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { dump } from "js-yaml";
|
|
3
|
-
//#region src/changelog/shared.ts
|
|
4
|
-
const bumpTypeSchema = z.enum([
|
|
5
|
-
"major",
|
|
6
|
-
"minor",
|
|
7
|
-
"patch"
|
|
8
|
-
]);
|
|
9
|
-
const changelogPackageConfigSchema = z.object({
|
|
10
|
-
type: bumpTypeSchema.optional(),
|
|
11
|
-
replay: z.array(z.string().min(1)).optional()
|
|
12
|
-
});
|
|
13
|
-
const changelogFrontmatterSchema = z.object({
|
|
14
|
-
subject: z.string().optional(),
|
|
15
|
-
packages: z.union([z.array(z.string()), z.record(z.string(), z.union([
|
|
16
|
-
bumpTypeSchema,
|
|
17
|
-
z.null(),
|
|
18
|
-
changelogPackageConfigSchema
|
|
19
|
-
]))]).optional()
|
|
20
|
-
});
|
|
21
|
-
function renderChangelog(frontmatter, body) {
|
|
22
|
-
return [
|
|
23
|
-
"---",
|
|
24
|
-
dump(frontmatter).trim(),
|
|
25
|
-
"---",
|
|
26
|
-
"",
|
|
27
|
-
body.trim(),
|
|
28
|
-
""
|
|
29
|
-
].join("\n");
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { renderChangelog as n, changelogFrontmatterSchema as t };
|