@r5n/sisyphus 0.3.14 → 0.3.17
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 +201 -0
- package/README.md +360 -6
- package/dist/cli.js +2279 -530
- package/package.json +25 -23
- package/schema.json +115 -0
package/package.json
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "@ice-chillios",
|
|
3
|
-
"bin":
|
|
4
|
-
|
|
5
|
-
"@clack/prompts": "0.7.0",
|
|
6
|
-
"picocolors": "1.1.1"
|
|
3
|
+
"bin": {
|
|
4
|
+
"sisyphus": "./dist/cli.js"
|
|
7
5
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@clack/prompts": "0.11.0",
|
|
8
|
+
"fastest-levenshtein": "1.0.16"
|
|
11
9
|
},
|
|
10
|
+
"description": "Sisyphus CLI - A tool for versioning and publishing packages",
|
|
12
11
|
"files": [
|
|
13
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"schema.json",
|
|
14
|
+
"LICENSE"
|
|
14
15
|
],
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"main": "./cli.ts",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"main": "dist/cli.js",
|
|
18
18
|
"name": "@r5n/sisyphus",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
19
23
|
"repository": {
|
|
20
24
|
"directory": "packages/cli/sisyphus",
|
|
21
25
|
"type": "git",
|
|
22
26
|
"url": "git+https://github.com/r5n-dev/ts-packages.git"
|
|
23
27
|
},
|
|
24
|
-
"publishConfig": {
|
|
25
|
-
"access": "public"
|
|
26
|
-
},
|
|
27
28
|
"scripts": {
|
|
28
|
-
"build": "rm -rf
|
|
29
|
-
"clean": "rm -rf
|
|
30
|
-
"dev": "bun
|
|
31
|
-
"
|
|
32
|
-
"package:
|
|
33
|
-
"package:
|
|
34
|
-
"type-check": "bun --bun tsc --noEmit"
|
|
29
|
+
"build": "rm -rf dist && bun build.ts",
|
|
30
|
+
"clean": "rm -rf dist node_modules",
|
|
31
|
+
"dev": "bun --bun src/cli.ts",
|
|
32
|
+
"package:dryRun": "bun run package:prepare && bun publish --dry-run --no-git-checks --access public --force && bun install",
|
|
33
|
+
"package:prepare": "NODE_ENV=production bun run build && bun ../../tools/scripts/prepare-publish.ts .",
|
|
34
|
+
"package:publish": "bun run package:prepare && bun publish --access public --no-git-checks && bun install",
|
|
35
|
+
"type-check": "bun --bun tsc --noEmit",
|
|
36
|
+
"type-check:go": "tsgo"
|
|
35
37
|
},
|
|
36
38
|
"type": "module",
|
|
37
|
-
"types": "
|
|
38
|
-
"version": "0.3.
|
|
39
|
+
"types": "src/cli.ts",
|
|
40
|
+
"version": "0.3.17"
|
|
39
41
|
}
|
package/schema.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://raw.githubusercontent.com/r5n-labs/clis/refs/heads/develop/packages/cli/sisyphus/schema.json",
|
|
3
|
+
"$ref": "#/definitions/SisyphusConfig",
|
|
4
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"SisyphusConfig": {
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"default": "https://raw.githubusercontent.com/r5n-labs/clis/refs/heads/develop/packages/cli/sisyphus/schema.json",
|
|
11
|
+
"description": "JSON Schema reference for IDE support",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"changelog": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"description": "Changelog configuration",
|
|
17
|
+
"properties": {
|
|
18
|
+
"generate": {
|
|
19
|
+
"default": true,
|
|
20
|
+
"description": "If enabled, it will generate a changelog from stones included in release",
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"root": {
|
|
24
|
+
"default": false,
|
|
25
|
+
"description": "If enabled, it will generate a combined changelog for monorepo",
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"type": "object"
|
|
30
|
+
},
|
|
31
|
+
"commit": {
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"description": "Commit configuration",
|
|
34
|
+
"properties": {
|
|
35
|
+
"author": {
|
|
36
|
+
"default": "r5n-bot",
|
|
37
|
+
"description": "Commit author to use for the release",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"email": { "description": "Commit email to use for the release", "type": "string" },
|
|
41
|
+
"message": {
|
|
42
|
+
"default": "release(:tada:): <last-stone-message>",
|
|
43
|
+
"description": "Commit message to use for the release",
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"type": "object"
|
|
48
|
+
},
|
|
49
|
+
"configPath": {
|
|
50
|
+
"default": ".sisyphus",
|
|
51
|
+
"description": "Path to the Sisyphus configuration directory",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"ignore": {
|
|
55
|
+
"default": [],
|
|
56
|
+
"description": "List of packages to ignore",
|
|
57
|
+
"items": { "type": "string" },
|
|
58
|
+
"type": "array"
|
|
59
|
+
},
|
|
60
|
+
"lastStone": {
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"description": "Last released stone, used to determine a chunk of changes for the next release",
|
|
63
|
+
"properties": {
|
|
64
|
+
"commit": { "description": "Commit hash of the last stone", "type": "string" },
|
|
65
|
+
"date": { "description": "ISO-8601 date of the last stone", "type": "string" }
|
|
66
|
+
},
|
|
67
|
+
"required": ["commit", "date"],
|
|
68
|
+
"type": "object"
|
|
69
|
+
},
|
|
70
|
+
"release": {
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"description": "Release configuration",
|
|
73
|
+
"properties": {
|
|
74
|
+
"github": {
|
|
75
|
+
"default": false,
|
|
76
|
+
"description": "If enabled, it will create a release on GitHub",
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
},
|
|
79
|
+
"npm": {
|
|
80
|
+
"default": false,
|
|
81
|
+
"description": "If enabled, it will publish packages to NPM",
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"tags": {
|
|
85
|
+
"default": false,
|
|
86
|
+
"description": "If enabled, it will create tags for the release",
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"type": "object"
|
|
91
|
+
},
|
|
92
|
+
"single": {
|
|
93
|
+
"default": false,
|
|
94
|
+
"description": "If enabled, it will work for root package.json only",
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"stones": {
|
|
98
|
+
"default": [],
|
|
99
|
+
"description": "List of stones to use in next release",
|
|
100
|
+
"items": { "type": "string" },
|
|
101
|
+
"type": "array"
|
|
102
|
+
},
|
|
103
|
+
"tag": {
|
|
104
|
+
"default": "latest",
|
|
105
|
+
"description": "Tag to use for the release",
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": ["lastStone"],
|
|
110
|
+
"type": "object"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"description": "Schema for Sisyphus versioning tool configuration files",
|
|
114
|
+
"title": "Sisyphus Configuration Schema"
|
|
115
|
+
}
|