@bensandee/tooling 0.25.3 → 0.27.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/dist/index.d.mts CHANGED
@@ -44,6 +44,10 @@ interface ProjectConfig {
44
44
  setupRenovate: boolean;
45
45
  /** Release management strategy */
46
46
  releaseStrategy: ReleaseStrategy;
47
+ /** Opt-in: publish packages to npm registry */
48
+ publishNpm: boolean;
49
+ /** Opt-in: publish Docker images to a registry */
50
+ publishDocker: boolean;
47
51
  /** Project type determines tsconfig base configuration */
48
52
  projectType: "default" | "node" | "react" | "library";
49
53
  /** Auto-detect and configure tsconfig bases for monorepo packages */
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@bensandee/tooling",
3
- "version": "0.25.3",
3
+ "version": "0.27.0",
4
4
  "description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
5
5
  "bin": {
6
- "tooling": "./dist/bin.mjs"
6
+ "bst": "./dist/bin.mjs"
7
7
  },
8
8
  "files": [
9
9
  "dist",
@@ -34,25 +34,28 @@
34
34
  "citty": "^0.2.1",
35
35
  "json5": "^2.2.3",
36
36
  "jsonc-parser": "^3.3.1",
37
+ "picomatch": "^4.0.3",
37
38
  "yaml": "^2.8.2",
38
39
  "zod": "^4.3.6",
39
40
  "@bensandee/common": "0.1.2"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@types/node": "24.12.0",
44
+ "@types/picomatch": "4.0.2",
43
45
  "tsdown": "0.21.2",
44
46
  "typescript": "5.9.3",
45
- "vitest": "4.0.18",
46
- "@bensandee/config": "0.9.0"
47
+ "vitest": "4.1.0",
48
+ "@bensandee/config": "0.9.1"
47
49
  },
48
50
  "optionalDependencies": {
49
- "@changesets/cli": "^2.29.4",
50
- "commit-and-tag-version": "^12.5.0"
51
+ "@changesets/cli": "^2.30.0",
52
+ "commit-and-tag-version": "^12.6.1"
51
53
  },
52
54
  "scripts": {
53
55
  "build": "tsdown",
54
56
  "dev": "tsdown --watch",
55
57
  "typecheck": "tsc --noEmit",
56
- "test": "vitest run"
58
+ "test": "vitest run",
59
+ "generate:schema": "node scripts/generate-schema.ts"
57
60
  }
58
61
  }
@@ -3,107 +3,120 @@
3
3
  "title": "@bensandee/tooling configuration",
4
4
  "description": "Override convention-detected defaults for repo:sync. Only fields that differ from detected defaults need to be specified.",
5
5
  "type": "object",
6
- "additionalProperties": false,
7
6
  "properties": {
8
7
  "$schema": {
9
- "type": "string",
10
- "description": "JSON Schema reference (ignored by tooling)"
8
+ "description": "JSON Schema reference (ignored by tooling)",
9
+ "type": "string"
11
10
  },
12
11
  "structure": {
12
+ "description": "Project structure",
13
13
  "type": "string",
14
- "enum": ["single", "monorepo"],
15
- "description": "Project structure"
14
+ "enum": ["single", "monorepo"]
16
15
  },
17
16
  "useEslintPlugin": {
18
- "type": "boolean",
19
- "description": "Include @bensandee/eslint-plugin oxlint plugin"
17
+ "description": "Include @bensandee/eslint-plugin oxlint plugin",
18
+ "type": "boolean"
20
19
  },
21
20
  "formatter": {
21
+ "description": "Formatter choice",
22
22
  "type": "string",
23
- "enum": ["oxfmt", "prettier"],
24
- "description": "Formatter choice"
23
+ "enum": ["oxfmt", "prettier"]
25
24
  },
26
25
  "setupVitest": {
27
- "type": "boolean",
28
- "description": "Generate vitest config and example test"
26
+ "description": "Generate vitest config and example test",
27
+ "type": "boolean"
29
28
  },
30
29
  "ci": {
30
+ "description": "CI platform",
31
31
  "type": "string",
32
- "enum": ["github", "forgejo", "none"],
33
- "description": "CI platform"
32
+ "enum": ["github", "forgejo", "none"]
34
33
  },
35
34
  "setupRenovate": {
36
- "type": "boolean",
37
- "description": "Generate Renovate config"
35
+ "description": "Generate Renovate config",
36
+ "type": "boolean"
38
37
  },
39
38
  "releaseStrategy": {
39
+ "description": "Release management strategy",
40
40
  "type": "string",
41
- "enum": ["release-it", "simple", "changesets", "none"],
42
- "description": "Release management strategy"
41
+ "enum": ["release-it", "simple", "changesets", "none"]
42
+ },
43
+ "publishNpm": {
44
+ "description": "Publish packages to npm (opt-in)",
45
+ "type": "boolean"
46
+ },
47
+ "publishDocker": {
48
+ "description": "Publish Docker images to a registry (opt-in)",
49
+ "type": "boolean"
43
50
  },
44
51
  "projectType": {
52
+ "description": "Project type (determines tsconfig base)",
45
53
  "type": "string",
46
- "enum": ["default", "node", "react", "library"],
47
- "description": "Project type (determines tsconfig base)"
54
+ "enum": ["default", "node", "react", "library"]
48
55
  },
49
56
  "detectPackageTypes": {
50
- "type": "boolean",
51
- "description": "Auto-detect project types for monorepo packages"
57
+ "description": "Auto-detect project types for monorepo packages",
58
+ "type": "boolean"
52
59
  },
53
60
  "setupDocker": {
54
- "type": "boolean",
55
- "description": "Generate Docker build/check scripts"
61
+ "description": "Generate Docker build/check scripts",
62
+ "type": "boolean"
56
63
  },
57
64
  "docker": {
58
- "type": "object",
59
65
  "description": "Docker package overrides (package name → config)",
66
+ "type": "object",
67
+ "propertyNames": {
68
+ "type": "string"
69
+ },
60
70
  "additionalProperties": {
61
71
  "type": "object",
62
- "required": ["dockerfile"],
63
72
  "properties": {
64
73
  "dockerfile": {
65
74
  "type": "string",
66
75
  "description": "Path to Dockerfile relative to package"
67
76
  },
68
77
  "context": {
69
- "type": "string",
70
78
  "default": ".",
71
- "description": "Docker build context relative to package"
79
+ "description": "Docker build context relative to package",
80
+ "type": "string"
72
81
  }
73
82
  },
83
+ "required": ["dockerfile", "context"],
74
84
  "additionalProperties": false
75
85
  }
76
86
  },
77
87
  "dockerCheck": {
78
- "oneOf": [
88
+ "description": "Docker health check configuration or false to disable",
89
+ "anyOf": [
79
90
  {
80
- "const": false,
81
- "description": "Disable Docker health checks"
91
+ "type": "boolean",
92
+ "const": false
82
93
  },
83
94
  {
84
95
  "type": "object",
85
- "additionalProperties": false,
86
96
  "properties": {
87
97
  "composeFiles": {
98
+ "description": "Compose files to use",
88
99
  "type": "array",
89
- "items": { "type": "string" },
90
- "description": "Compose files to use"
100
+ "items": {
101
+ "type": "string"
102
+ }
91
103
  },
92
104
  "envFile": {
93
- "type": "string",
94
- "description": "Environment file for compose"
105
+ "description": "Environment file for compose",
106
+ "type": "string"
95
107
  },
96
108
  "services": {
109
+ "description": "Services to check (default: all)",
97
110
  "type": "array",
98
- "items": { "type": "string" },
99
- "description": "Services to check (default: all)"
111
+ "items": {
112
+ "type": "string"
113
+ }
100
114
  },
101
115
  "healthChecks": {
116
+ "description": "Health check definitions",
102
117
  "type": "array",
103
118
  "items": {
104
119
  "type": "object",
105
- "required": ["name", "url"],
106
- "additionalProperties": false,
107
120
  "properties": {
108
121
  "name": {
109
122
  "type": "string",
@@ -114,35 +127,41 @@
114
127
  "description": "Health check URL"
115
128
  },
116
129
  "status": {
130
+ "description": "Expected HTTP status code",
117
131
  "type": "integer",
118
- "description": "Expected HTTP status code"
132
+ "minimum": -9007199254740991,
133
+ "maximum": 9007199254740991
119
134
  }
120
- }
121
- },
122
- "description": "Health check definitions"
135
+ },
136
+ "required": ["name", "url"],
137
+ "additionalProperties": false
138
+ }
123
139
  },
124
140
  "buildCommand": {
125
- "type": "string",
126
- "description": "Command to build images before checking"
141
+ "description": "Command to build images before checking",
142
+ "type": "string"
127
143
  },
128
144
  "buildCwd": {
129
- "type": "string",
130
- "description": "Working directory for build command"
145
+ "description": "Working directory for build command",
146
+ "type": "string"
131
147
  },
132
148
  "timeoutMs": {
149
+ "description": "Overall timeout in milliseconds",
133
150
  "type": "integer",
134
- "minimum": 1,
135
- "description": "Overall timeout in milliseconds"
151
+ "exclusiveMinimum": 0,
152
+ "maximum": 9007199254740991
136
153
  },
137
154
  "pollIntervalMs": {
155
+ "description": "Poll interval in milliseconds",
138
156
  "type": "integer",
139
- "minimum": 1,
140
- "description": "Poll interval in milliseconds"
157
+ "exclusiveMinimum": 0,
158
+ "maximum": 9007199254740991
141
159
  }
142
- }
160
+ },
161
+ "additionalProperties": false
143
162
  }
144
- ],
145
- "description": "Docker health check configuration or false to disable"
163
+ ]
146
164
  }
147
- }
165
+ },
166
+ "additionalProperties": false
148
167
  }