starpak 0.1.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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Unevaluated applicator vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "unevaluatedItems": {"$dynamicRef": "#meta"},
13
+ "unevaluatedProperties": {"$dynamicRef": "#meta"}
14
+ }
15
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/validation",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/validation": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Validation vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "type": {
13
+ "anyOf": [
14
+ {"$ref": "#/$defs/simpleTypes"},
15
+ {
16
+ "type": "array",
17
+ "items": {"$ref": "#/$defs/simpleTypes"},
18
+ "minItems": 1,
19
+ "uniqueItems": true
20
+ }
21
+ ]
22
+ },
23
+ "const": true,
24
+ "enum": {
25
+ "type": "array",
26
+ "items": true
27
+ },
28
+ "multipleOf": {
29
+ "type": "number",
30
+ "exclusiveMinimum": 0
31
+ },
32
+ "maximum": {
33
+ "type": "number"
34
+ },
35
+ "exclusiveMaximum": {
36
+ "type": "number"
37
+ },
38
+ "minimum": {
39
+ "type": "number"
40
+ },
41
+ "exclusiveMinimum": {
42
+ "type": "number"
43
+ },
44
+ "maxLength": {"$ref": "#/$defs/nonNegativeInteger"},
45
+ "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
46
+ "pattern": {
47
+ "type": "string",
48
+ "format": "regex"
49
+ },
50
+ "maxItems": {"$ref": "#/$defs/nonNegativeInteger"},
51
+ "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
52
+ "uniqueItems": {
53
+ "type": "boolean",
54
+ "default": false
55
+ },
56
+ "maxContains": {"$ref": "#/$defs/nonNegativeInteger"},
57
+ "minContains": {
58
+ "$ref": "#/$defs/nonNegativeInteger",
59
+ "default": 1
60
+ },
61
+ "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"},
62
+ "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
63
+ "required": {"$ref": "#/$defs/stringArray"},
64
+ "dependentRequired": {
65
+ "type": "object",
66
+ "additionalProperties": {
67
+ "$ref": "#/$defs/stringArray"
68
+ }
69
+ }
70
+ },
71
+ "$defs": {
72
+ "nonNegativeInteger": {
73
+ "type": "integer",
74
+ "minimum": 0
75
+ },
76
+ "nonNegativeIntegerDefault0": {
77
+ "$ref": "#/$defs/nonNegativeInteger",
78
+ "default": 0
79
+ },
80
+ "simpleTypes": {
81
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
82
+ },
83
+ "stringArray": {
84
+ "type": "array",
85
+ "items": {"type": "string"},
86
+ "uniqueItems": true,
87
+ "default": []
88
+ }
89
+ }
90
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "starpak",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "智能应用部署工具 — cd 进去,剩下的自动完成",
7
+ "bin": {
8
+ "starpak": "./cli/dist/index.cjs"
9
+ },
10
+ "files": [
11
+ "cli/dist/",
12
+ "README.md"
13
+ ],
14
+ "preferGlobal": true,
15
+ "engines": {
16
+ "node": ">=20.0.0"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/starlight-apk/starpak.git"
21
+ },
22
+ "homepage": "https://github.com/starlight-apk/starpak#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/starlight-apk/starpak/issues"
25
+ },
26
+ "author": "starlight-apk",
27
+ "license": "Apache-2.0",
28
+ "scripts": {
29
+ "prepublish": "npm run build",
30
+ "build": "tsup --config cli/tsup.config.ts",
31
+ "dev": "tsx cli/index.ts",
32
+ "typecheck": "tsc --noEmit",
33
+ "start": "node cli/dist/index.cjs"
34
+ },
35
+ "dependencies": {
36
+ "better-sqlite3": "^11.0.0",
37
+ "cli-progress": "^3.12.0",
38
+ "commander": "^13.0.0",
39
+ "conf": "^13.0.0",
40
+ "execa": "^9.0.0",
41
+ "glob": "^11.0.0",
42
+ "ora": "^8.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/better-sqlite3": "^7.6.0",
46
+ "@types/cli-progress": "^3.11.0",
47
+ "@types/node": "^22.0.0",
48
+ "tsup": "^8.0.0",
49
+ "tsx": "^4.0.0",
50
+ "typescript": "^5.7.0"
51
+ }
52
+ }