@divithselvam/jokebook 0.0.0-stage → 1.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,504 @@
1
+ /* eslint-disable no-await-in-loop -- Upgrade planning and application must touch files in a deterministic order. */
2
+ import { execa } from 'execa';
3
+ import { createHash } from 'node:crypto';
4
+ import { lstat, mkdir, mkdtemp, readdir, readFile, rename, rm, stat, writeFile } from 'node:fs/promises';
5
+ import { tmpdir } from 'node:os';
6
+ import path from 'node:path';
7
+ import { isDeepStrictEqual } from 'node:util';
8
+ import { catalogDocument, Issue, presets, release } from './index.js';
9
+ import { extractStarter, starterIndex } from './starter.js';
10
+ const missing = Symbol('missing');
11
+ const revisionPattern = /^\d+(?:\.\d+)*$/v;
12
+ export function publicPlan(plan) {
13
+ return {
14
+ actions: plan.actions,
15
+ catalog: plan.catalog,
16
+ conflicts: plan.conflicts,
17
+ from: plan.from,
18
+ preset: plan.preset,
19
+ stackSha256: plan.stackSha256,
20
+ status: plan.status,
21
+ to: plan.to,
22
+ warnings: plan.warnings,
23
+ };
24
+ }
25
+ function bytes(value) {
26
+ return new TextEncoder().encode(value);
27
+ }
28
+ function text(content) {
29
+ return new TextDecoder().decode(content);
30
+ }
31
+ function digest(content) {
32
+ return createHash('sha256').update(content).digest('hex');
33
+ }
34
+ function change(kind, file, reason) {
35
+ return reason ? { action: kind, path: file, reason } : { action: kind, path: file };
36
+ }
37
+ function compareVersions(left, right) {
38
+ const a = left.split('.').map(Number);
39
+ const b = right.split('.').map(Number);
40
+ for (let index = 0; index < Math.max(a.length, b.length); index += 1) {
41
+ const difference = (a[index] ?? 0) - (b[index] ?? 0);
42
+ if (difference !== 0)
43
+ return difference;
44
+ }
45
+ return 0;
46
+ }
47
+ function safeTarget(root, file) {
48
+ if (path.isAbsolute(file))
49
+ throw new Issue(`Refusing to write an absolute upgrade path: ${file}.`);
50
+ const target = path.resolve(root, file);
51
+ const relative = path.relative(root, target);
52
+ if (relative === '' || relative.startsWith('..') || path.isAbsolute(relative)) {
53
+ throw new Issue(`Refusing to write outside the product: ${file}.`);
54
+ }
55
+ return target;
56
+ }
57
+ async function writableTarget(root, file) {
58
+ const target = safeTarget(root, file);
59
+ let current = root;
60
+ for (const part of path.relative(root, target).split(path.sep)) {
61
+ current = path.join(current, part);
62
+ const entry = await lstat(current).catch((error) => {
63
+ if (error.code === 'ENOENT')
64
+ return undefined;
65
+ throw error;
66
+ });
67
+ if (!entry)
68
+ break;
69
+ if (entry.isSymbolicLink()) {
70
+ throw new Issue(`Refusing to write through a symbolic link during upgrade: ${file}.`);
71
+ }
72
+ if (current !== target && !entry.isDirectory()) {
73
+ throw new Issue(`Refusing to write through a non-directory during upgrade: ${file}.`);
74
+ }
75
+ }
76
+ return target;
77
+ }
78
+ async function walk(root) {
79
+ const files = new Map();
80
+ async function visit(directory) {
81
+ for (const entry of await readdir(directory, { withFileTypes: true })) {
82
+ const full = path.join(directory, entry.name);
83
+ if (entry.isDirectory())
84
+ await visit(full);
85
+ else if (entry.isFile())
86
+ files.set(path.relative(root, full).split(path.sep).join('/'), full);
87
+ }
88
+ }
89
+ await visit(root);
90
+ return files;
91
+ }
92
+ async function readOptional(file) {
93
+ try {
94
+ return await readFile(file);
95
+ }
96
+ catch (error) {
97
+ if (error.code === 'ENOENT')
98
+ return undefined;
99
+ throw error;
100
+ }
101
+ }
102
+ function isObject(value) {
103
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
104
+ }
105
+ function mergeJson(base, current, next, location, conflicts) {
106
+ if (isDeepStrictEqual(current, base))
107
+ return structuredClone(next);
108
+ if (isDeepStrictEqual(next, base))
109
+ return current;
110
+ if (isDeepStrictEqual(current, next))
111
+ return current;
112
+ if (!isObject(base) || !isObject(current) || !isObject(next)) {
113
+ conflicts.push(location);
114
+ return current;
115
+ }
116
+ const result = {};
117
+ const keys = new Set([...Object.keys(base), ...Object.keys(current), ...Object.keys(next)]);
118
+ for (const key of keys) {
119
+ const hasBase = Object.hasOwn(base, key);
120
+ const hasCurrent = Object.hasOwn(current, key);
121
+ const hasNext = Object.hasOwn(next, key);
122
+ if (!hasBase && !hasCurrent && hasNext) {
123
+ result[key] = structuredClone(next[key]);
124
+ continue;
125
+ }
126
+ if (!hasBase && hasCurrent && !hasNext) {
127
+ result[key] = current[key];
128
+ continue;
129
+ }
130
+ if (!hasCurrent && !hasNext)
131
+ continue;
132
+ const child = location === '' ? key : `${location}.${key}`;
133
+ if (!hasCurrent) {
134
+ if (isDeepStrictEqual(next[key], base[key]))
135
+ continue;
136
+ conflicts.push(child);
137
+ continue;
138
+ }
139
+ if (!hasNext) {
140
+ if (isDeepStrictEqual(current[key], base[key]))
141
+ continue;
142
+ conflicts.push(child);
143
+ result[key] = current[key];
144
+ continue;
145
+ }
146
+ const merged = mergeJson(hasBase ? base[key] : missing, current[key], next[key], child, conflicts);
147
+ if (merged !== missing)
148
+ result[key] = merged;
149
+ }
150
+ return result;
151
+ }
152
+ async function mergeText(work, current, base, next, name) {
153
+ const currentFile = path.join(work, `${name}-current`);
154
+ const baseFile = path.join(work, `${name}-base`);
155
+ const nextFile = path.join(work, `${name}-next`);
156
+ await Promise.all([writeFile(currentFile, current), writeFile(baseFile, base), writeFile(nextFile, next)]);
157
+ let result;
158
+ try {
159
+ result = await execa('git', ['merge-file', '-p', '--diff3', currentFile, baseFile, nextFile], { reject: false });
160
+ }
161
+ catch (error) {
162
+ throw new Issue('Git is required to merge starter changes. Install Git and retry the upgrade.', {
163
+ cause: error instanceof Error ? error.message : String(error),
164
+ });
165
+ }
166
+ if (result.exitCode === 0)
167
+ return { conflict: false, content: bytes(result.stdout) };
168
+ if (result.exitCode === 1)
169
+ return { conflict: true };
170
+ throw new Issue('git merge-file could not merge a starter file.', {
171
+ exitCode: result.exitCode,
172
+ stderr: result.stderr,
173
+ stdout: result.stdout,
174
+ });
175
+ }
176
+ function isBinary(content) {
177
+ return content.includes(0);
178
+ }
179
+ async function planFile(file, currentPath, basePath, nextPath, write, actions, conflicts, work, counter) {
180
+ const [current, base, next] = await Promise.all([
181
+ readOptional(currentPath),
182
+ readOptional(basePath),
183
+ readOptional(nextPath),
184
+ ]);
185
+ if (!current && !base && next) {
186
+ write(next);
187
+ actions.push(change('add', file));
188
+ return;
189
+ }
190
+ if (current && !base && next) {
191
+ if (digest(current) === digest(next))
192
+ return;
193
+ conflicts.push(change('conflict', file, 'A user file occupies a path added by the new starter.'));
194
+ return;
195
+ }
196
+ if (current && base && !next) {
197
+ if (digest(current) === digest(base)) {
198
+ actions.push(change('remove', file));
199
+ }
200
+ else {
201
+ conflicts.push(change('conflict', file, 'The new starter removes a file you changed.'));
202
+ }
203
+ return;
204
+ }
205
+ if (!current) {
206
+ if (base && next && digest(base) !== digest(next)) {
207
+ conflicts.push(change('conflict', file, 'The product removed a file that the new starter changed.'));
208
+ }
209
+ return;
210
+ }
211
+ if (!base || !next)
212
+ return;
213
+ if (digest(current) === digest(next))
214
+ return;
215
+ if (digest(current) === digest(base)) {
216
+ write(next);
217
+ actions.push(change('update', file));
218
+ return;
219
+ }
220
+ if (digest(base) === digest(next))
221
+ return;
222
+ if (isBinary(current) || isBinary(base) || isBinary(next)) {
223
+ conflicts.push(change('conflict', file, 'Binary file changed in both the product and the new starter.'));
224
+ return;
225
+ }
226
+ const merged = await mergeText(work, current, base, next, String(counter));
227
+ if (merged.conflict) {
228
+ conflicts.push(change('conflict', file, 'The product and the new starter both changed this file.'));
229
+ return;
230
+ }
231
+ if (digest(merged.content) !== digest(current)) {
232
+ write(merged.content);
233
+ actions.push(change('merge', file, 'Merged automatically; review the result.'));
234
+ }
235
+ }
236
+ function report(plan) {
237
+ const title = plan.from === plan.to
238
+ ? `# Jokebook catalog update ${plan.catalog} (starter ${plan.to})`
239
+ : `# Jokebook upgrade ${plan.from} -> ${plan.to}`;
240
+ const lines = [
241
+ title,
242
+ '',
243
+ `- Preset: \`${plan.preset}\``,
244
+ `- Catalog: \`${plan.catalog}\``,
245
+ `- Catalog SHA-256: \`${plan.stackSha256}\``,
246
+ '',
247
+ '## Applied changes',
248
+ '',
249
+ ];
250
+ if (plan.actions.length === 0)
251
+ lines.push('No product files changed.');
252
+ else {
253
+ lines.push('| File | Action | Note |', '| --- | --- | --- |');
254
+ for (const entry of plan.actions)
255
+ lines.push(`| \`${entry.path}\` | ${entry.action} | ${entry.reason ?? ''} |`);
256
+ }
257
+ lines.push('', '## Needs manual review', '');
258
+ if (plan.conflicts.length === 0)
259
+ lines.push('No conflicts.');
260
+ else {
261
+ for (const entry of plan.conflicts)
262
+ lines.push(`- \`${entry.path}\`: ${entry.reason ?? 'Review this file.'}`);
263
+ }
264
+ lines.push('', '## Next steps', '');
265
+ for (const warning of plan.warnings)
266
+ lines.push(`- ${warning}`);
267
+ lines.push('- Review `git diff`, run the product checks, and commit the result.', '');
268
+ return lines.join('\n');
269
+ }
270
+ export async function planUpgrade(product, currentDigest) {
271
+ const from = product.marker.starter;
272
+ if (!revisionPattern.test(from))
273
+ throw new Issue(`The product records an invalid starter revision: ${from}.`);
274
+ const to = release.revision;
275
+ if (!revisionPattern.test(to))
276
+ throw new Issue(`This CLI has an invalid starter revision: ${to}.`);
277
+ const preset = product.marker.preset;
278
+ if (!Object.hasOwn(presets, preset))
279
+ throw new Issue(`The product records an unknown preset: ${preset}.`);
280
+ const { digest: stackSha256, text: catalog } = await catalogDocument();
281
+ const marker = { catalog: release.catalog, preset, stackSha256, starter: to };
282
+ const basePlan = {
283
+ actions: [], catalog: release.catalog, conflicts: [], from, marker, preset, stackSha256,
284
+ status: 'up-to-date', to, warnings: [], writes: new Map(),
285
+ };
286
+ if (currentDigest !== stackSha256 && product.marker.catalog === release.catalog) {
287
+ throw new Issue(`The product records catalog ${release.catalog}, but its STACK.md does not match the bundled catalog.`);
288
+ }
289
+ if (from === to) {
290
+ if (currentDigest === stackSha256 && product.marker.catalog === release.catalog)
291
+ return basePlan;
292
+ const writes = new Map();
293
+ const actions = [];
294
+ if (currentDigest !== stackSha256) {
295
+ writes.set('STACK.md', { content: bytes(catalog), mode: 0o644 });
296
+ actions.push(change('update', 'STACK.md', `Catalog updated from ${product.marker.catalog ?? 'an earlier revision'} to ${release.catalog}.`));
297
+ }
298
+ if (product.marker.catalog !== release.catalog) {
299
+ const manifestFile = path.join(product.cwd, 'package.json');
300
+ const manifest = JSON.parse(await readFile(manifestFile, 'utf8'));
301
+ const mode = (await stat(manifestFile)).mode % 0o1000;
302
+ writes.set('package.json', { content: bytes(JSON.stringify({ ...manifest, jokebook: marker }, null, 2) + '\n'), mode });
303
+ actions.push(change('update', 'package.json', `Product marker updated to catalog ${release.catalog}.`));
304
+ }
305
+ return {
306
+ ...basePlan,
307
+ actions,
308
+ status: 'ready',
309
+ warnings: ['Review the catalog diff and commit the updated STACK.md and package.json marker.'],
310
+ writes,
311
+ };
312
+ }
313
+ const comparison = compareVersions(from, to);
314
+ if (comparison > 0)
315
+ throw new Issue(`This product uses starter ${from}, which is newer than this CLI's starter ${to}.`);
316
+ const index = await starterIndex();
317
+ if (index.catalog !== release.catalog || index.catalogSha256 !== stackSha256) {
318
+ throw new Issue('The bundled starter index does not match the bundled catalog. Reinstall Jokebook.');
319
+ }
320
+ if (!index.revisions.includes(from)) {
321
+ throw new Issue(`Starter ${from} is not bundled with this CLI, so Jokebook cannot plan the upgrade safely.`, {
322
+ available: index.revisions,
323
+ });
324
+ }
325
+ const work = await mkdtemp(path.join(tmpdir(), 'jokebook-upgrade-'));
326
+ try {
327
+ const oldRoot = path.join(work, 'old');
328
+ const newRoot = path.join(work, 'new');
329
+ await Promise.all([extractStarter(from, preset, oldRoot), extractStarter(to, preset, newRoot)]);
330
+ const oldFiles = await walk(oldRoot);
331
+ const newFiles = await walk(newRoot);
332
+ const paths = [...new Set([...oldFiles.keys(), ...newFiles.keys()])].toSorted();
333
+ const writes = new Map();
334
+ const actions = [];
335
+ const conflicts = [];
336
+ let counter = 0;
337
+ for (const file of paths) {
338
+ const currentPath = safeTarget(product.cwd, file);
339
+ const write = (content) => {
340
+ writes.set(file, { content, mode: 0o644 });
341
+ };
342
+ if (file === 'package.json' || file.endsWith('/tauri.conf.json')) {
343
+ const [current, base, next] = await Promise.all([
344
+ readOptional(currentPath),
345
+ oldFiles.has(file) ? readFile(oldFiles.get(file)) : undefined,
346
+ newFiles.has(file) ? readFile(newFiles.get(file)) : undefined,
347
+ ]);
348
+ if (!current || !base || !next)
349
+ continue;
350
+ let baseJson;
351
+ let currentJson;
352
+ let nextJson;
353
+ try {
354
+ baseJson = JSON.parse(text(base));
355
+ currentJson = JSON.parse(text(current));
356
+ nextJson = JSON.parse(text(next));
357
+ }
358
+ catch (error) {
359
+ conflicts.push(change('conflict', file, `The product or starter contains invalid JSON: ${error instanceof Error ? error.message : String(error)}`));
360
+ continue;
361
+ }
362
+ if (file === 'package.json') {
363
+ baseJson = { ...baseJson };
364
+ currentJson = { ...currentJson };
365
+ nextJson = { ...nextJson };
366
+ delete baseJson.jokebook;
367
+ delete currentJson.jokebook;
368
+ delete nextJson.jokebook;
369
+ }
370
+ const jsonConflicts = [];
371
+ const merged = mergeJson(baseJson, currentJson, nextJson, '', jsonConflicts);
372
+ if (!isObject(merged))
373
+ throw new Issue(`Could not merge ${file}.`);
374
+ if (file === 'package.json')
375
+ merged.jokebook = marker;
376
+ const content = bytes(JSON.stringify(merged, null, 2) + '\n');
377
+ if (digest(content) === digest(current))
378
+ continue;
379
+ writes.set(file, { content, mode: 0o644 });
380
+ actions.push(change('merge', file, jsonConflicts.length > 0 ? 'JSON merged with conflicts; review the listed keys.' : undefined));
381
+ for (const conflict of jsonConflicts) {
382
+ conflicts.push(change('conflict', file, `Review package key ${conflict || '(root)'}.`));
383
+ }
384
+ continue;
385
+ }
386
+ counter += 1;
387
+ await planFile(file, currentPath, oldFiles.get(file) ?? '', newFiles.get(file) ?? '', write, actions, conflicts, work, counter);
388
+ const last = actions.at(-1);
389
+ if (last?.path === file && ['add', 'merge', 'update'].includes(last.action)) {
390
+ const source = last.action === 'merge' ? currentPath : newFiles.get(file);
391
+ if (source) {
392
+ const mode = (await stat(source)).mode % 0o1000;
393
+ const entry = writes.get(file);
394
+ if (entry)
395
+ entry.mode = mode;
396
+ }
397
+ }
398
+ }
399
+ if (currentDigest !== stackSha256) {
400
+ writes.set('STACK.md', { content: bytes(catalog), mode: 0o644 });
401
+ actions.push(change('update', 'STACK.md', `Catalog updated to ${release.catalog}.`));
402
+ }
403
+ const warnings = [];
404
+ if (actions.some((entry) => entry.path === 'package.json' || entry.path === 'pnpm-lock.yaml')) {
405
+ warnings.push('Run `pnpm install` after the upgrade to refresh `pnpm-lock.yaml` and installed dependencies.');
406
+ }
407
+ if (conflicts.length > 0) {
408
+ warnings.push('Resolve the files under "Needs manual review"; Jokebook will refuse to apply while conflicts remain.');
409
+ }
410
+ return {
411
+ ...basePlan,
412
+ actions,
413
+ conflicts,
414
+ status: conflicts.length > 0 ? 'blocked' : 'ready',
415
+ warnings,
416
+ writes,
417
+ };
418
+ }
419
+ finally {
420
+ await rm(work, { force: true, recursive: true });
421
+ }
422
+ }
423
+ async function writeAtomic(target, entry) {
424
+ await mkdir(path.dirname(target), { recursive: true });
425
+ const temporary = path.join(path.dirname(target), `.${path.basename(target)}.jokebook-${process.pid}.tmp`);
426
+ try {
427
+ await writeFile(temporary, entry.content, { mode: entry.mode });
428
+ await rename(temporary, target);
429
+ }
430
+ finally {
431
+ await rm(temporary, { force: true });
432
+ }
433
+ }
434
+ export async function applyUpgrade(product, plan) {
435
+ if (plan.status === 'up-to-date')
436
+ throw new Issue('This product is already up to date.');
437
+ if (plan.status === 'blocked') {
438
+ throw new Issue('Resolve the upgrade conflicts before applying. Jokebook made no changes.', {
439
+ conflicts: plan.conflicts,
440
+ });
441
+ }
442
+ const reportFile = plan.from === plan.to
443
+ ? `.jokebook/catalog-${plan.catalog}.md`
444
+ : `.jokebook/upgrade-${plan.from}-to-${plan.to}.md`;
445
+ const writes = new Map(plan.writes);
446
+ writes.set(reportFile, { content: bytes(report(plan)), mode: 0o644 });
447
+ const removals = plan.actions.filter(({ action: kind }) => kind === 'remove').map(({ path: file }) => file);
448
+ const paths = [...new Set([...writes.keys(), ...removals])];
449
+ const backups = new Map();
450
+ for (const file of paths) {
451
+ const target = await writableTarget(product.cwd, file);
452
+ const entry = await lstat(target).catch((error) => {
453
+ if (error.code === 'ENOENT')
454
+ return undefined;
455
+ throw error;
456
+ });
457
+ if (entry) {
458
+ if (!entry.isFile())
459
+ throw new Issue(`Refusing to replace a non-file path during upgrade: ${file}.`);
460
+ backups.set(file, { content: await readFile(target), mode: entry.mode % 0o1000 });
461
+ }
462
+ else {
463
+ backups.set(file, undefined);
464
+ }
465
+ }
466
+ const applied = new Set();
467
+ try {
468
+ for (const [file, entry] of writes) {
469
+ await writeAtomic(await writableTarget(product.cwd, file), entry);
470
+ applied.add(file);
471
+ }
472
+ for (const file of removals) {
473
+ await rm(await writableTarget(product.cwd, file), { force: true });
474
+ applied.add(file);
475
+ }
476
+ }
477
+ catch (error) {
478
+ const failures = [];
479
+ for (const [file, backup] of backups) {
480
+ if (!applied.has(file))
481
+ continue;
482
+ try {
483
+ const target = await writableTarget(product.cwd, file);
484
+ if (backup)
485
+ await writeAtomic(target, backup);
486
+ else
487
+ await rm(target, { force: true });
488
+ }
489
+ catch (error_) {
490
+ failures.push(`${file}: ${error_ instanceof Error ? error_.message : String(error_)}`);
491
+ }
492
+ }
493
+ if (failures.length > 0) {
494
+ throw new Issue('The upgrade failed and Jokebook could not restore every file.', {
495
+ cause: error instanceof Error ? error.message : String(error),
496
+ failures,
497
+ });
498
+ }
499
+ throw new Issue('The upgrade failed. Jokebook restored the product to its previous state.', {
500
+ cause: error instanceof Error ? error.message : String(error),
501
+ });
502
+ }
503
+ return path.join(product.cwd, reportFile);
504
+ }
package/package.json CHANGED
@@ -1,6 +1,102 @@
1
1
  {
2
2
  "name": "@divithselvam/jokebook",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "description": "Versioned project generator for SvelteKit, Rust/Axum, PostgreSQL, Tauri and shared-Swift native mobile monorepos",
4
+ "version": "1.1.0",
5
+ "author": "Divithselvam",
6
+ "type": "module",
7
+ "bin": {
8
+ "jokebook": "./bin/run.js"
9
+ },
10
+ "engines": {
11
+ "node": "26.13.1",
12
+ "npm": "11.20.0"
13
+ },
14
+ "packageManager": "npm@11.20.0",
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/Divith123/jokebook.git"
19
+ },
20
+ "bugs": "https://github.com/Divith123/jokebook/issues",
21
+ "homepage": "https://github.com/Divith123/jokebook",
22
+ "keywords": [
23
+ "monorepo",
24
+ "project-generator",
25
+ "scaffolding",
26
+ "svelte",
27
+ "sveltekit",
28
+ "rust",
29
+ "axum",
30
+ "postgresql",
31
+ "tauri",
32
+ "kotlin",
33
+ "developer-tools",
34
+ "ai-agents",
35
+ "oclif",
36
+ "swift",
37
+ "swiftui",
38
+ "jetpack-compose",
39
+ "android",
40
+ "ios"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "files": [
46
+ "bin/run.js",
47
+ "dist",
48
+ "CHANGELOG.md"
49
+ ],
50
+ "jokebook": {
51
+ "catalog": "1.1.0",
52
+ "starter": "1.1.0",
53
+ "pnpm": "12.25.1",
54
+ "skillsCli": "1.9.1",
55
+ "skills": [
56
+ {
57
+ "name": "blame-the-intern",
58
+ "repo": "Divith123/skills"
59
+ },
60
+ {
61
+ "name": "modern-web-guidance",
62
+ "repo": "googlechrome/modern-web-guidance"
63
+ }
64
+ ]
65
+ },
66
+ "oclif": {
67
+ "bin": "jokebook",
68
+ "dirname": "jokebook",
69
+ "commands": "./dist/commands",
70
+ "topicSeparator": " ",
71
+ "topics": {
72
+ "stack": {
73
+ "description": "Read the versioned package catalog"
74
+ }
75
+ }
76
+ },
77
+ "scripts": {
78
+ "build": "node scripts/build.mjs",
79
+ "prepack": "npm run build",
80
+ "test": "npm run build && node --test 'test/**/*.test.ts'",
81
+ "lint": "eslint src test scripts",
82
+ "verify": "npm run lint && npm test && npm run verify:package",
83
+ "verify:package": "node scripts/verify-package.mjs",
84
+ "prepublishOnly": "npm run verify",
85
+ "build:release": "node scripts/build-release.mjs"
86
+ },
87
+ "dependencies": {
88
+ "@clack/prompts": "1.9.0",
89
+ "@oclif/core": "5.1.12",
90
+ "ci-info": "4.5.0",
91
+ "execa": "10.2.1",
92
+ "tar": "8.0.3"
93
+ },
94
+ "devDependencies": {
95
+ "@eslint/compat": "2.1.1",
96
+ "@types/node": "26.6.11",
97
+ "eslint": "10.16.0",
98
+ "eslint-config-oclif": "7.1.10",
99
+ "eslint-config-prettier": "^10.1.8",
100
+ "typescript": "6.0.3"
101
+ }
102
+ }