@whook/create 17.0.2 → 18.0.1

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.
@@ -146,12 +146,12 @@ describe('initCreateWhook', () => {
146
146
  await createWhook();
147
147
 
148
148
  expect(
149
- JSON.parse(
150
- outputFile.mock.calls
151
- .find((call) => call[0].toString().endsWith('package.json'))?.[1]
152
- ?.toString() || '',
153
- ),
154
- ).toMatchInlineSnapshot(`
149
+ JSON.parse(
150
+ outputFile.mock.calls.
151
+ find((call) => call[0].toString().endsWith('package.json'))?.[1]?.
152
+ toString() || ''
153
+ )
154
+ ).toMatchInlineSnapshot(`
155
155
  {
156
156
  "author": {
157
157
  "email": "wayne@warner.com",
@@ -166,40 +166,40 @@ describe('initCreateWhook', () => {
166
166
  "@whook/http-transaction": "<current_version>",
167
167
  "@whook/swagger-ui": "<current_version>",
168
168
  "@whook/whook": "<current_version>",
169
- "application-services": "^6.1.0",
170
- "common-services": "^16.0.4",
169
+ "application-services": "^7.0.0",
170
+ "common-services": "^17.0.0",
171
171
  "http-auth-utils": "^6.0.1",
172
- "jwt-service": "^10.1.1",
173
- "knifecycle": "^17.0.3",
172
+ "jwt-service": "^11.0.0",
173
+ "knifecycle": "^18.0.0",
174
174
  "openapi-types": "^12.1.3",
175
175
  "pkg-dir": "^8.0.0",
176
176
  "strict-qs": "^8.0.3",
177
- "type-fest": "^4.26.1",
177
+ "type-fest": "^4.30.0",
178
178
  "yerror": "^8.0.0",
179
179
  "yhttperror": "^8.0.0",
180
180
  },
181
181
  "description": "A new Whook project",
182
182
  "devDependencies": {
183
- "@eslint/js": "^9.7.0",
184
- "@swc/cli": "^0.4.0",
185
- "@swc/core": "^1.6.13",
186
- "@swc/helpers": "^0.5.12",
187
- "@swc/jest": "^0.2.36",
188
- "axios": "^1.7.7",
183
+ "@eslint/js": "^9.16.0",
184
+ "@swc/cli": "^0.5.2",
185
+ "@swc/core": "^1.10.0",
186
+ "@swc/helpers": "^0.5.15",
187
+ "@swc/jest": "^0.2.37",
188
+ "axios": "^1.7.9",
189
189
  "chokidar": "^3.5.3",
190
- "esbuild-node-externals": "^1.13.1",
191
- "eslint": "^9.7.0",
190
+ "esbuild-node-externals": "^1.15.0",
191
+ "eslint": "^9.16.0",
192
192
  "eslint-config-prettier": "^9.1.0",
193
- "eslint-plugin-jest": "^28.6.0",
194
- "eslint-plugin-prettier": "^5.1.3",
193
+ "eslint-plugin-jest": "^28.9.0",
194
+ "eslint-plugin-prettier": "^5.2.1",
195
195
  "jest": "^29.7.0",
196
- "jsarch": "^6.0.3",
197
- "prettier": "^3.3.3",
196
+ "jsarch": "^6.1.2",
197
+ "prettier": "^3.4.2",
198
198
  "rimraf": "^6.0.1",
199
199
  "schema2dts": "^7.0.2",
200
200
  "tsx": "^4.7.1",
201
- "typescript": "^5.5.3",
202
- "typescript-eslint": "^7.16.0",
201
+ "typescript": "^5.7.2",
202
+ "typescript-eslint": "^8.17.0",
203
203
  },
204
204
  "engines": {
205
205
  "node": ">=20.11.1",
@@ -246,7 +246,7 @@ describe('initCreateWhook', () => {
246
246
  "main": "dist/index.js",
247
247
  "name": "super-project",
248
248
  "overrides": {
249
- "eslint": "^9.7.0",
249
+ "eslint": "^9.16.0",
250
250
  },
251
251
  "prettier": {
252
252
  "printWidth": 80,
@@ -261,22 +261,20 @@ describe('initCreateWhook', () => {
261
261
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
262
262
  "build": "rimraf 'dist' && tsc --outDir dist",
263
263
  "cover": "npm run jest -- --coverage",
264
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
265
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
264
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
265
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
266
266
  "format": "npm run prettier",
267
267
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
268
268
  "lint": "eslint 'src/**/*.ts'",
269
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
269
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
270
270
  "prettier": "prettier --write 'src/**/*.ts'",
271
271
  "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
272
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js",
273
- "start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
272
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
273
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
274
274
  "test": "NODE_ENV=test npm run build && npm run jest",
275
275
  "type-check": "tsc --pretty --noEmit",
276
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
276
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
277
277
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
278
- "whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
279
- "whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
280
278
  },
281
279
  "type": "module",
282
280
  "types": "dist/index.d.ts",
@@ -343,12 +341,12 @@ describe('initCreateWhook', () => {
343
341
  await createWhook();
344
342
 
345
343
  expect(
346
- JSON.parse(
347
- outputFile.mock.calls
348
- .find((call) => call[0].toString().endsWith('package.json'))?.[1]
349
- ?.toString() || '',
350
- ),
351
- ).toMatchInlineSnapshot(`
344
+ JSON.parse(
345
+ outputFile.mock.calls.
346
+ find((call) => call[0].toString().endsWith('package.json'))?.[1]?.
347
+ toString() || ''
348
+ )
349
+ ).toMatchInlineSnapshot(`
352
350
  {
353
351
  "author": {
354
352
  "email": "wayne@warner.com",
@@ -363,40 +361,40 @@ describe('initCreateWhook', () => {
363
361
  "@whook/http-transaction": "<current_version>",
364
362
  "@whook/swagger-ui": "<current_version>",
365
363
  "@whook/whook": "<current_version>",
366
- "application-services": "^6.1.0",
367
- "common-services": "^16.0.4",
364
+ "application-services": "^7.0.0",
365
+ "common-services": "^17.0.0",
368
366
  "http-auth-utils": "^6.0.1",
369
- "jwt-service": "^10.1.1",
370
- "knifecycle": "^17.0.3",
367
+ "jwt-service": "^11.0.0",
368
+ "knifecycle": "^18.0.0",
371
369
  "openapi-types": "^12.1.3",
372
370
  "pkg-dir": "^8.0.0",
373
371
  "strict-qs": "^8.0.3",
374
- "type-fest": "^4.26.1",
372
+ "type-fest": "^4.30.0",
375
373
  "yerror": "^8.0.0",
376
374
  "yhttperror": "^8.0.0",
377
375
  },
378
376
  "description": "A new Whook project",
379
377
  "devDependencies": {
380
- "@eslint/js": "^9.7.0",
381
- "@swc/cli": "^0.4.0",
382
- "@swc/core": "^1.6.13",
383
- "@swc/helpers": "^0.5.12",
384
- "@swc/jest": "^0.2.36",
385
- "axios": "^1.7.7",
378
+ "@eslint/js": "^9.16.0",
379
+ "@swc/cli": "^0.5.2",
380
+ "@swc/core": "^1.10.0",
381
+ "@swc/helpers": "^0.5.15",
382
+ "@swc/jest": "^0.2.37",
383
+ "axios": "^1.7.9",
386
384
  "chokidar": "^3.5.3",
387
- "esbuild-node-externals": "^1.13.1",
388
- "eslint": "^9.7.0",
385
+ "esbuild-node-externals": "^1.15.0",
386
+ "eslint": "^9.16.0",
389
387
  "eslint-config-prettier": "^9.1.0",
390
- "eslint-plugin-jest": "^28.6.0",
391
- "eslint-plugin-prettier": "^5.1.3",
388
+ "eslint-plugin-jest": "^28.9.0",
389
+ "eslint-plugin-prettier": "^5.2.1",
392
390
  "jest": "^29.7.0",
393
- "jsarch": "^6.0.3",
394
- "prettier": "^3.3.3",
391
+ "jsarch": "^6.1.2",
392
+ "prettier": "^3.4.2",
395
393
  "rimraf": "^6.0.1",
396
394
  "schema2dts": "^7.0.2",
397
395
  "tsx": "^4.7.1",
398
- "typescript": "^5.5.3",
399
- "typescript-eslint": "^7.16.0",
396
+ "typescript": "^5.7.2",
397
+ "typescript-eslint": "^8.17.0",
400
398
  },
401
399
  "engines": {
402
400
  "node": ">=20.11.1",
@@ -443,7 +441,7 @@ describe('initCreateWhook', () => {
443
441
  "main": "dist/index.js",
444
442
  "name": "super-project",
445
443
  "overrides": {
446
- "eslint": "^9.7.0",
444
+ "eslint": "^9.16.0",
447
445
  },
448
446
  "prettier": {
449
447
  "printWidth": 80,
@@ -458,22 +456,20 @@ describe('initCreateWhook', () => {
458
456
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
459
457
  "build": "rimraf 'dist' && tsc --outDir dist",
460
458
  "cover": "npm run jest -- --coverage",
461
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
462
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
459
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
460
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
463
461
  "format": "npm run prettier",
464
462
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
465
463
  "lint": "eslint 'src/**/*.ts'",
466
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
464
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
467
465
  "prettier": "prettier --write 'src/**/*.ts'",
468
466
  "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
469
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js",
470
- "start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
467
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
468
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
471
469
  "test": "NODE_ENV=test npm run build && npm run jest",
472
470
  "type-check": "tsc --pretty --noEmit",
473
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
471
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
474
472
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
475
- "whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
476
- "whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
477
473
  },
478
474
  "type": "module",
479
475
  "types": "dist/index.d.ts",
@@ -525,12 +521,12 @@ describe('initCreateWhook', () => {
525
521
  await createWhook();
526
522
 
527
523
  expect(
528
- JSON.parse(
529
- outputFile.mock.calls
530
- .find((call) => call[0].toString().endsWith('package.json'))?.[1]
531
- ?.toString() || '',
532
- ),
533
- ).toMatchInlineSnapshot(`
524
+ JSON.parse(
525
+ outputFile.mock.calls.
526
+ find((call) => call[0].toString().endsWith('package.json'))?.[1]?.
527
+ toString() || ''
528
+ )
529
+ ).toMatchInlineSnapshot(`
534
530
  {
535
531
  "author": {
536
532
  "email": "wayne@warner.com",
@@ -545,40 +541,40 @@ describe('initCreateWhook', () => {
545
541
  "@whook/http-transaction": "<current_version>",
546
542
  "@whook/swagger-ui": "<current_version>",
547
543
  "@whook/whook": "<current_version>",
548
- "application-services": "^6.1.0",
549
- "common-services": "^16.0.4",
544
+ "application-services": "^7.0.0",
545
+ "common-services": "^17.0.0",
550
546
  "http-auth-utils": "^6.0.1",
551
- "jwt-service": "^10.1.1",
552
- "knifecycle": "^17.0.3",
547
+ "jwt-service": "^11.0.0",
548
+ "knifecycle": "^18.0.0",
553
549
  "openapi-types": "^12.1.3",
554
550
  "pkg-dir": "^8.0.0",
555
551
  "strict-qs": "^8.0.3",
556
- "type-fest": "^4.26.1",
552
+ "type-fest": "^4.30.0",
557
553
  "yerror": "^8.0.0",
558
554
  "yhttperror": "^8.0.0",
559
555
  },
560
556
  "description": "A new Whook project",
561
557
  "devDependencies": {
562
- "@eslint/js": "^9.7.0",
563
- "@swc/cli": "^0.4.0",
564
- "@swc/core": "^1.6.13",
565
- "@swc/helpers": "^0.5.12",
566
- "@swc/jest": "^0.2.36",
567
- "axios": "^1.7.7",
558
+ "@eslint/js": "^9.16.0",
559
+ "@swc/cli": "^0.5.2",
560
+ "@swc/core": "^1.10.0",
561
+ "@swc/helpers": "^0.5.15",
562
+ "@swc/jest": "^0.2.37",
563
+ "axios": "^1.7.9",
568
564
  "chokidar": "^3.5.3",
569
- "esbuild-node-externals": "^1.13.1",
570
- "eslint": "^9.7.0",
565
+ "esbuild-node-externals": "^1.15.0",
566
+ "eslint": "^9.16.0",
571
567
  "eslint-config-prettier": "^9.1.0",
572
- "eslint-plugin-jest": "^28.6.0",
573
- "eslint-plugin-prettier": "^5.1.3",
568
+ "eslint-plugin-jest": "^28.9.0",
569
+ "eslint-plugin-prettier": "^5.2.1",
574
570
  "jest": "^29.7.0",
575
- "jsarch": "^6.0.3",
576
- "prettier": "^3.3.3",
571
+ "jsarch": "^6.1.2",
572
+ "prettier": "^3.4.2",
577
573
  "rimraf": "^6.0.1",
578
574
  "schema2dts": "^7.0.2",
579
575
  "tsx": "^4.7.1",
580
- "typescript": "^5.5.3",
581
- "typescript-eslint": "^7.16.0",
576
+ "typescript": "^5.7.2",
577
+ "typescript-eslint": "^8.17.0",
582
578
  },
583
579
  "engines": {
584
580
  "node": ">=20.11.1",
@@ -625,7 +621,7 @@ describe('initCreateWhook', () => {
625
621
  "main": "dist/index.js",
626
622
  "name": "super-project",
627
623
  "overrides": {
628
- "eslint": "^9.7.0",
624
+ "eslint": "^9.16.0",
629
625
  },
630
626
  "prettier": {
631
627
  "printWidth": 80,
@@ -640,22 +636,20 @@ describe('initCreateWhook', () => {
640
636
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
641
637
  "build": "rimraf 'dist' && tsc --outDir dist",
642
638
  "cover": "npm run jest -- --coverage",
643
- "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
644
- "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
639
+ "debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
640
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/run.js",
645
641
  "format": "npm run prettier",
646
642
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
647
643
  "lint": "eslint 'src/**/*.ts'",
648
- "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
644
+ "postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx src/runBuild.js",
649
645
  "prettier": "prettier --write 'src/**/*.ts'",
650
646
  "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
651
- "repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js",
652
- "start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
647
+ "repl": "NODE_ENV=\${NODE_ENV:-development} tsx src/run.js -- __inject repl",
648
+ "start": "NODE_ENV=\${NODE_ENV:-development} node dist/run.js",
653
649
  "test": "NODE_ENV=test npm run build && npm run jest",
654
650
  "type-check": "tsc --pretty --noEmit",
655
- "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
651
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx src/runWatch.js",
656
652
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
657
- "whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
658
- "whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
659
653
  },
660
654
  "type": "module",
661
655
  "types": "dist/index.d.ts",
@@ -281,7 +281,7 @@ builds/
281
281
  );
282
282
  log(
283
283
  'warning',
284
- `➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.`,
284
+ `➕ - Then run \`npm run dev -- __inject httpServer,process,dryRun\` to check installation.`,
285
285
  );
286
286
  log('warning', `➕ - And finally run \`npm run watch\` to start dev!`);
287
287
  };