@joltdesign/scripts 0.20.0 → 0.22.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/README.md +85 -0
- package/dist/AWSClient.js +102 -0
- package/dist/AWSClient.js.map +1 -0
- package/dist/Command/AWS.js +101 -15
- package/dist/Command/AWS.js.map +1 -1
- package/dist/Command/Build.js +1 -1
- package/dist/Command/Build.js.map +1 -1
- package/dist/Command/Cmd.js +2 -2
- package/dist/Command/Cmd.js.map +1 -1
- package/dist/Command/Config.js +161 -3
- package/dist/Command/Config.js.map +1 -1
- package/dist/Command/DB.js +3 -2
- package/dist/Command/DB.js.map +1 -1
- package/dist/Command/Docker.js +9 -7
- package/dist/Command/Docker.js.map +1 -1
- package/dist/Command/JoltCommand.js +1 -1
- package/dist/Command/JoltCommand.js.map +1 -1
- package/dist/Command/Nexcess.js +58 -3
- package/dist/Command/Nexcess.js.map +1 -1
- package/dist/Command/Prepare.js +5 -4
- package/dist/Command/Prepare.js.map +1 -1
- package/dist/Command/SSH.js +3 -3
- package/dist/Command/SSH.js.map +1 -1
- package/dist/Command/WP.js +801 -4
- package/dist/Command/WP.js.map +1 -1
- package/dist/Config.js +123 -13
- package/dist/Config.js.map +1 -1
- package/dist/cli.js +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/schemas.js +111 -6
- package/dist/schemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/compose.js +2 -0
- package/dist/types/compose.js.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/package.js +2 -0
- package/dist/types/package.js.map +1 -0
- package/dist/utils.js.map +1 -1
- package/jolt-config.schema.json +308 -0
- package/package.json +17 -10
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAGrD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,SAAS,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAGrD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,SAAS,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAQnD,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAc;IAC7C,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;IACpC,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAc;IAClD,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;IACzC,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAA;AACv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CAAC,CAAC,CAAC,CAAA;QAExC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,GAAG,IAAI,CAAA;QACf,CAAC;aAAM,CAAC;YACN,iDAAiD;YACjD,IAAI,CAAC;gBACH,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;oBAC5C,KAAK,EAAE,QAAQ;oBACf,OAAO,EAAE,IAAI;iBACd,CAAC,CAAA;gBAEF,MAAM,GAAG,UAAU,CAAA;YACrB,CAAC;YAAC,WAAM,CAAC;gBACP,sCAAsC;gBACtC,MAAM,GAAG,IAAI,CAAA;YACf,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,MAAM,SAAS,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;IAClD,CAAC;IAED,mBAAmB;IACnB,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAE3B,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAA;IACzE,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;AACxC,CAAC"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"awsRegion": {
|
|
6
|
+
"default": "eu-west-1",
|
|
7
|
+
"description": "AWS region for operations",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"imageName": {
|
|
11
|
+
"description": "Docker image name for production builds",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"devImageName": {
|
|
15
|
+
"description": "Docker image name for development builds (overrides imageName + dev suffix)",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"devSuffix": {
|
|
19
|
+
"default": "-dev",
|
|
20
|
+
"description": "Suffix to append to image name for development builds",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"buildPlatform": {
|
|
24
|
+
"description": "Docker build platform (e.g., linux/amd64, linux/arm64)",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"buildContext": {
|
|
28
|
+
"default": ".",
|
|
29
|
+
"description": "Docker build context path",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"ecrBaseUrl": {
|
|
33
|
+
"description": "ECR repository base URL",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"ecsCluster": {
|
|
37
|
+
"description": "Production ECS cluster name",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"devEcsCluster": {
|
|
41
|
+
"description": "Development ECS cluster name",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"ecsService": {
|
|
45
|
+
"description": "Production ECS service name",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"devEcsService": {
|
|
49
|
+
"description": "Development ECS service name",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"codebuildProject": {
|
|
53
|
+
"description": "Production CodeBuild project name",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"devCodebuildProject": {
|
|
57
|
+
"description": "Development CodeBuild project name",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"cloudfrontDistribution": {
|
|
61
|
+
"description": "CloudFront distribution ID for cache invalidation",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"sshAccount": {
|
|
65
|
+
"description": "SSH account for production deployments (user@host format)",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"devSshAccount": {
|
|
69
|
+
"description": "SSH account for development deployments (user@host format)",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"sshPort": {
|
|
73
|
+
"default": "22",
|
|
74
|
+
"description": "SSH port number",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"liveFolder": {
|
|
78
|
+
"description": "Remote folder path for production deployments",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"devFolder": {
|
|
82
|
+
"description": "Remote folder path for development deployments",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"branch": {
|
|
86
|
+
"description": "Git branch for production deployments",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"devBranch": {
|
|
90
|
+
"description": "Git branch for development deployments",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"repo": {
|
|
94
|
+
"description": "Git repository URL",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"codeSubfolder": {
|
|
98
|
+
"description": "Subfolder within repository containing the code",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"nexcessDeployScript": {
|
|
102
|
+
"default": "bin/nexcess-deploy-script.sh",
|
|
103
|
+
"description": "Path to Nexcess deployment script",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"nexcessCleanupScript": {
|
|
107
|
+
"default": "bin/nexcess-cleanup.sh",
|
|
108
|
+
"description": "Path to Nexcess cleanup script",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"dbSeed": {
|
|
112
|
+
"description": "Database seed file path",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"dbBackupPath": {
|
|
116
|
+
"description": "Path for database backups",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"devPlugins": {
|
|
120
|
+
"description": "WordPress plugins to activate in development",
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"devPluginDelay": {
|
|
124
|
+
"default": "30",
|
|
125
|
+
"description": "Delay in seconds before activating dev plugins",
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
"wpCliContainer": {
|
|
129
|
+
"description": "Docker container name for WP-CLI operations",
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"wpCliContainerProfile": {
|
|
133
|
+
"description": "Docker Compose profile for WP-CLI container",
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"wpUpdates": {
|
|
137
|
+
"description": "WordPress automatic update configuration",
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"doNotUpdate": {
|
|
141
|
+
"description": "List of plugins/themes to skip during updates",
|
|
142
|
+
"default": [],
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"pluginFolder": {
|
|
149
|
+
"description": "Path to WordPress plugins folder",
|
|
150
|
+
"default": "code/wp-content/plugins",
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"themeFolder": {
|
|
154
|
+
"description": "Path to WordPress themes folder",
|
|
155
|
+
"default": "code/wp-content/themes",
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"wpRoot": {
|
|
159
|
+
"description": "Path to WordPress root directory",
|
|
160
|
+
"default": "code/",
|
|
161
|
+
"type": "string"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
},
|
|
166
|
+
"dockerCommand": {
|
|
167
|
+
"default": "docker",
|
|
168
|
+
"description": "Override for docker command",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"composeCommand": {
|
|
172
|
+
"default": "docker compose",
|
|
173
|
+
"description": "Override for docker compose command",
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"terraformCommand": {
|
|
177
|
+
"description": "Override for terraform/tofu command (auto-detects tofu vs terraform)",
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"nodeCommand": {
|
|
181
|
+
"default": "node",
|
|
182
|
+
"description": "Override for node command",
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"yarnCommand": {
|
|
186
|
+
"default": "yarn",
|
|
187
|
+
"description": "Override for yarn command",
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"awsCommand": {
|
|
191
|
+
"default": "aws",
|
|
192
|
+
"description": "Override for aws command",
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
"sshCommand": {
|
|
196
|
+
"default": "ssh",
|
|
197
|
+
"description": "Override for ssh command",
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
"rsyncCommand": {
|
|
201
|
+
"default": "rsync",
|
|
202
|
+
"description": "Override for rsync command",
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"gitCommand": {
|
|
206
|
+
"default": "git",
|
|
207
|
+
"description": "Override for git command",
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"gzipCommand": {
|
|
211
|
+
"default": "gzip",
|
|
212
|
+
"description": "Override for gzip command",
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"prepareCommands": {
|
|
216
|
+
"description": "Commands to run during preparation phase",
|
|
217
|
+
"type": "array",
|
|
218
|
+
"items": {
|
|
219
|
+
"anyOf": [
|
|
220
|
+
{
|
|
221
|
+
"description": "Simple command string",
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"cmd": {
|
|
228
|
+
"description": "Command to execute",
|
|
229
|
+
"type": "string"
|
|
230
|
+
},
|
|
231
|
+
"name": {
|
|
232
|
+
"description": "Display name for the command",
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
"fail": {
|
|
236
|
+
"description": "Whether to fail if command returns non-zero exit code",
|
|
237
|
+
"default": true,
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
240
|
+
"dir": {
|
|
241
|
+
"description": "Working directory for the command",
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"timing": {
|
|
245
|
+
"description": "When to run the command during preparation",
|
|
246
|
+
"default": "normal",
|
|
247
|
+
"type": "string",
|
|
248
|
+
"enum": ["early", "normal"]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"required": ["cmd"],
|
|
252
|
+
"additionalProperties": false
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"sites": {
|
|
258
|
+
"description": "Site-specific configuration overrides",
|
|
259
|
+
"type": "object",
|
|
260
|
+
"propertyNames": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"additionalProperties": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"propertyNames": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"additionalProperties": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"$schema": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"description": "JSON Schema reference for IDE support"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"additionalProperties": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"$id": "https://github.com/Jolt-Design/jolt-scripts/schema/jolt-config.json",
|
|
282
|
+
"title": "Jolt Scripts Configuration",
|
|
283
|
+
"description": "Configuration schema for Jolt Scripts DevOps automation tool",
|
|
284
|
+
"examples": [
|
|
285
|
+
{
|
|
286
|
+
"imageName": "my-app",
|
|
287
|
+
"awsRegion": "us-east-1",
|
|
288
|
+
"ecsCluster": "production-cluster",
|
|
289
|
+
"ecsService": "my-app-service",
|
|
290
|
+
"devEcsCluster": "dev-cluster",
|
|
291
|
+
"devEcsService": "my-app-dev-service",
|
|
292
|
+
"prepareCommands": [
|
|
293
|
+
"yarn install",
|
|
294
|
+
{
|
|
295
|
+
"cmd": "yarn build",
|
|
296
|
+
"name": "Build application",
|
|
297
|
+
"timing": "normal"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"sites": {
|
|
301
|
+
"staging": {
|
|
302
|
+
"ecsCluster": "staging-cluster",
|
|
303
|
+
"ecsService": "my-app-staging"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
package/package.json
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joltdesign/scripts",
|
|
3
|
-
"packageManager": "yarn@4.
|
|
3
|
+
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f",
|
|
4
4
|
"bin": {
|
|
5
5
|
"jolt": "./dist/cli.js"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.22.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@biomejs/biome": "^2.2.4",
|
|
11
|
-
"@types/node": "^24.
|
|
11
|
+
"@types/node": "^24.6.2",
|
|
12
12
|
"@types/which": "^3.0.4",
|
|
13
13
|
"@vitest/coverage-v8": "^3.2.4",
|
|
14
|
-
"@vitest/ui": "3.2.4",
|
|
15
|
-
"
|
|
14
|
+
"@vitest/ui": "^3.2.4",
|
|
15
|
+
"rimraf": "^6.0.1",
|
|
16
|
+
"typescript": "^5.9.3",
|
|
16
17
|
"vitest": "^3.2.4"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
|
-
"/dist"
|
|
20
|
+
"/dist",
|
|
21
|
+
"jolt-config.schema.json"
|
|
20
22
|
],
|
|
21
23
|
"scripts": {
|
|
22
|
-
"build": "tsc",
|
|
24
|
+
"build": "tsc -b && yarn run generate-schema",
|
|
25
|
+
"clean": "rimraf dist",
|
|
23
26
|
"debug": "node --inspect-brk ./dist/cli.js",
|
|
27
|
+
"generate-schema": "yarn node ./scripts/generate-schema.js && yarn lint --write jolt-config.schema.json",
|
|
24
28
|
"lint": "biome check",
|
|
25
29
|
"fmt": "biome format",
|
|
26
30
|
"prepack": "run build",
|
|
27
31
|
"prepare": "jolt prepare",
|
|
32
|
+
"release": "yarn test:run && yarn lint && && yarn clean && yarn build && git stash push -u -m 'temp stash for release' && npm version patch --tag-version-prefix='' --message='Version %s' && git push && git push --tags && yarn npm publish --access=public && git stash pop || true",
|
|
33
|
+
"release:minor": "yarn test:run && yarn lint && && yarn clean && yarn build && git stash push -u -m 'temp stash for release' && npm version minor --tag-version-prefix='' --message='Version %s' && git push && git push --tags && yarn npm publish --access=public && git stash pop || true",
|
|
34
|
+
"release:major": "yarn test:run && yarn lint && && yarn clean && yarn build && git stash push -u -m 'temp stash for release' && npm version major --tag-version-prefix='' --message='Version %s' && git push && git push --tags && yarn npm publish --access=public && git stash pop || true",
|
|
28
35
|
"test": "vitest",
|
|
29
36
|
"test:coverage": "vitest --coverage.enabled=true",
|
|
30
37
|
"test:run": "vitest run",
|
|
31
38
|
"watch": "tsc -w"
|
|
32
39
|
},
|
|
33
40
|
"dependencies": {
|
|
34
|
-
"ansis": "^4.
|
|
41
|
+
"ansis": "^4.2.0",
|
|
35
42
|
"change-case": "^5.4.4",
|
|
36
43
|
"clipanion": "^4.0.0-rc.4",
|
|
37
|
-
"dotenv": "^17.2.
|
|
44
|
+
"dotenv": "^17.2.3",
|
|
38
45
|
"execa": "^9.6.0",
|
|
39
46
|
"object-resolve-path": "^1.1.1",
|
|
40
47
|
"typanion": "^3.14.0",
|
|
41
48
|
"which": "^5.0.0",
|
|
42
|
-
"zod": "^4.1.
|
|
49
|
+
"zod": "^4.1.11"
|
|
43
50
|
}
|
|
44
51
|
}
|
package/dist/types.js
DELETED
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|