@whook/create 16.1.1 → 17.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.
@@ -166,72 +166,44 @@ 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.0.0",
170
- "common-services": "^16.0.1",
171
- "http-auth-utils": "^6.0.0",
172
- "jwt-service": "^10.1.0",
173
- "knifecycle": "^17.0.1",
169
+ "application-services": "^6.1.0",
170
+ "common-services": "^16.0.4",
171
+ "http-auth-utils": "^6.0.1",
172
+ "jwt-service": "^10.1.1",
173
+ "knifecycle": "^17.0.3",
174
174
  "openapi-types": "^12.1.3",
175
175
  "pkg-dir": "^8.0.0",
176
- "strict-qs": "^8.0.2",
177
- "type-fest": "^4.18.3",
176
+ "strict-qs": "^8.0.3",
177
+ "type-fest": "^4.21.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
- "@swc/cli": "^0.3.12",
184
- "@swc/core": "^1.5.7",
185
- "@swc/helpers": "^0.5.11",
183
+ "@eslint/js": "^9.7.0",
184
+ "@swc/cli": "^0.4.0",
185
+ "@swc/core": "^1.6.13",
186
+ "@swc/helpers": "^0.5.12",
186
187
  "@swc/jest": "^0.2.36",
187
- "@typescript-eslint/eslint-plugin": "^7.10.0",
188
- "@typescript-eslint/parser": "^7.10.0",
189
188
  "axios": "^1.7.2",
190
189
  "chokidar": "^3.5.3",
191
190
  "esbuild-node-externals": "^1.13.1",
192
- "eslint": "^8.57.0",
193
- "eslint-config-prettier": "^8.10.0",
191
+ "eslint": "^9.7.0",
192
+ "eslint-config-prettier": "^9.1.0",
193
+ "eslint-plugin-jest": "^28.6.0",
194
194
  "eslint-plugin-prettier": "^5.1.3",
195
195
  "jest": "^29.7.0",
196
196
  "jsarch": "^6.0.3",
197
- "prettier": "^3.2.5",
198
- "rimraf": "^5.0.7",
199
- "schema2dts": "^5.3.0",
197
+ "prettier": "^3.3.3",
198
+ "rimraf": "^6.0.1",
199
+ "schema2dts": "^6.0.1",
200
200
  "tsx": "^4.7.1",
201
- "typescript": "^5.4.5",
201
+ "typescript": "^5.5.3",
202
+ "typescript-eslint": "^7.16.0",
202
203
  },
203
204
  "engines": {
204
205
  "node": ">=20.11.1",
205
206
  },
206
- "eslintConfig": {
207
- "env": {
208
- "es6": true,
209
- "jest": true,
210
- "mocha": true,
211
- "node": true,
212
- },
213
- "extends": [
214
- "eslint:recommended",
215
- "plugin:prettier/recommended",
216
- "plugin:@typescript-eslint/eslint-recommended",
217
- "plugin:@typescript-eslint/recommended",
218
- ],
219
- "ignorePatterns": [
220
- "*.d.ts",
221
- ],
222
- "parser": "@typescript-eslint/parser",
223
- "parserOptions": {
224
- "ecmaVersion": 2018,
225
- "modules": true,
226
- "sourceType": "script",
227
- },
228
- "plugins": [
229
- "prettier",
230
- ],
231
- "rules": {
232
- "prettier/prettier": "error",
233
- },
234
- },
235
207
  "files": [
236
208
  "bin",
237
209
  "dist",
@@ -273,6 +245,9 @@ describe('initCreateWhook', () => {
273
245
  "license": "SEE LICENSE",
274
246
  "main": "dist/index.js",
275
247
  "name": "super-project",
248
+ "overrides": {
249
+ "eslint": "^9.7.0",
250
+ },
276
251
  "prettier": {
277
252
  "printWidth": 80,
278
253
  "proseWrap": "always",
@@ -388,72 +363,44 @@ describe('initCreateWhook', () => {
388
363
  "@whook/http-transaction": "<current_version>",
389
364
  "@whook/swagger-ui": "<current_version>",
390
365
  "@whook/whook": "<current_version>",
391
- "application-services": "^6.0.0",
392
- "common-services": "^16.0.1",
393
- "http-auth-utils": "^6.0.0",
394
- "jwt-service": "^10.1.0",
395
- "knifecycle": "^17.0.1",
366
+ "application-services": "^6.1.0",
367
+ "common-services": "^16.0.4",
368
+ "http-auth-utils": "^6.0.1",
369
+ "jwt-service": "^10.1.1",
370
+ "knifecycle": "^17.0.3",
396
371
  "openapi-types": "^12.1.3",
397
372
  "pkg-dir": "^8.0.0",
398
- "strict-qs": "^8.0.2",
399
- "type-fest": "^4.18.3",
373
+ "strict-qs": "^8.0.3",
374
+ "type-fest": "^4.21.0",
400
375
  "yerror": "^8.0.0",
401
376
  "yhttperror": "^8.0.0",
402
377
  },
403
378
  "description": "A new Whook project",
404
379
  "devDependencies": {
405
- "@swc/cli": "^0.3.12",
406
- "@swc/core": "^1.5.7",
407
- "@swc/helpers": "^0.5.11",
380
+ "@eslint/js": "^9.7.0",
381
+ "@swc/cli": "^0.4.0",
382
+ "@swc/core": "^1.6.13",
383
+ "@swc/helpers": "^0.5.12",
408
384
  "@swc/jest": "^0.2.36",
409
- "@typescript-eslint/eslint-plugin": "^7.10.0",
410
- "@typescript-eslint/parser": "^7.10.0",
411
385
  "axios": "^1.7.2",
412
386
  "chokidar": "^3.5.3",
413
387
  "esbuild-node-externals": "^1.13.1",
414
- "eslint": "^8.57.0",
415
- "eslint-config-prettier": "^8.10.0",
388
+ "eslint": "^9.7.0",
389
+ "eslint-config-prettier": "^9.1.0",
390
+ "eslint-plugin-jest": "^28.6.0",
416
391
  "eslint-plugin-prettier": "^5.1.3",
417
392
  "jest": "^29.7.0",
418
393
  "jsarch": "^6.0.3",
419
- "prettier": "^3.2.5",
420
- "rimraf": "^5.0.7",
421
- "schema2dts": "^5.3.0",
394
+ "prettier": "^3.3.3",
395
+ "rimraf": "^6.0.1",
396
+ "schema2dts": "^6.0.1",
422
397
  "tsx": "^4.7.1",
423
- "typescript": "^5.4.5",
398
+ "typescript": "^5.5.3",
399
+ "typescript-eslint": "^7.16.0",
424
400
  },
425
401
  "engines": {
426
402
  "node": ">=20.11.1",
427
403
  },
428
- "eslintConfig": {
429
- "env": {
430
- "es6": true,
431
- "jest": true,
432
- "mocha": true,
433
- "node": true,
434
- },
435
- "extends": [
436
- "eslint:recommended",
437
- "plugin:prettier/recommended",
438
- "plugin:@typescript-eslint/eslint-recommended",
439
- "plugin:@typescript-eslint/recommended",
440
- ],
441
- "ignorePatterns": [
442
- "*.d.ts",
443
- ],
444
- "parser": "@typescript-eslint/parser",
445
- "parserOptions": {
446
- "ecmaVersion": 2018,
447
- "modules": true,
448
- "sourceType": "script",
449
- },
450
- "plugins": [
451
- "prettier",
452
- ],
453
- "rules": {
454
- "prettier/prettier": "error",
455
- },
456
- },
457
404
  "files": [
458
405
  "bin",
459
406
  "dist",
@@ -495,6 +442,9 @@ describe('initCreateWhook', () => {
495
442
  "license": "SEE LICENSE",
496
443
  "main": "dist/index.js",
497
444
  "name": "super-project",
445
+ "overrides": {
446
+ "eslint": "^9.7.0",
447
+ },
498
448
  "prettier": {
499
449
  "printWidth": 80,
500
450
  "proseWrap": "always",
@@ -595,72 +545,44 @@ describe('initCreateWhook', () => {
595
545
  "@whook/http-transaction": "<current_version>",
596
546
  "@whook/swagger-ui": "<current_version>",
597
547
  "@whook/whook": "<current_version>",
598
- "application-services": "^6.0.0",
599
- "common-services": "^16.0.1",
600
- "http-auth-utils": "^6.0.0",
601
- "jwt-service": "^10.1.0",
602
- "knifecycle": "^17.0.1",
548
+ "application-services": "^6.1.0",
549
+ "common-services": "^16.0.4",
550
+ "http-auth-utils": "^6.0.1",
551
+ "jwt-service": "^10.1.1",
552
+ "knifecycle": "^17.0.3",
603
553
  "openapi-types": "^12.1.3",
604
554
  "pkg-dir": "^8.0.0",
605
- "strict-qs": "^8.0.2",
606
- "type-fest": "^4.18.3",
555
+ "strict-qs": "^8.0.3",
556
+ "type-fest": "^4.21.0",
607
557
  "yerror": "^8.0.0",
608
558
  "yhttperror": "^8.0.0",
609
559
  },
610
560
  "description": "A new Whook project",
611
561
  "devDependencies": {
612
- "@swc/cli": "^0.3.12",
613
- "@swc/core": "^1.5.7",
614
- "@swc/helpers": "^0.5.11",
562
+ "@eslint/js": "^9.7.0",
563
+ "@swc/cli": "^0.4.0",
564
+ "@swc/core": "^1.6.13",
565
+ "@swc/helpers": "^0.5.12",
615
566
  "@swc/jest": "^0.2.36",
616
- "@typescript-eslint/eslint-plugin": "^7.10.0",
617
- "@typescript-eslint/parser": "^7.10.0",
618
567
  "axios": "^1.7.2",
619
568
  "chokidar": "^3.5.3",
620
569
  "esbuild-node-externals": "^1.13.1",
621
- "eslint": "^8.57.0",
622
- "eslint-config-prettier": "^8.10.0",
570
+ "eslint": "^9.7.0",
571
+ "eslint-config-prettier": "^9.1.0",
572
+ "eslint-plugin-jest": "^28.6.0",
623
573
  "eslint-plugin-prettier": "^5.1.3",
624
574
  "jest": "^29.7.0",
625
575
  "jsarch": "^6.0.3",
626
- "prettier": "^3.2.5",
627
- "rimraf": "^5.0.7",
628
- "schema2dts": "^5.3.0",
576
+ "prettier": "^3.3.3",
577
+ "rimraf": "^6.0.1",
578
+ "schema2dts": "^6.0.1",
629
579
  "tsx": "^4.7.1",
630
- "typescript": "^5.4.5",
580
+ "typescript": "^5.5.3",
581
+ "typescript-eslint": "^7.16.0",
631
582
  },
632
583
  "engines": {
633
584
  "node": ">=20.11.1",
634
585
  },
635
- "eslintConfig": {
636
- "env": {
637
- "es6": true,
638
- "jest": true,
639
- "mocha": true,
640
- "node": true,
641
- },
642
- "extends": [
643
- "eslint:recommended",
644
- "plugin:prettier/recommended",
645
- "plugin:@typescript-eslint/eslint-recommended",
646
- "plugin:@typescript-eslint/recommended",
647
- ],
648
- "ignorePatterns": [
649
- "*.d.ts",
650
- ],
651
- "parser": "@typescript-eslint/parser",
652
- "parserOptions": {
653
- "ecmaVersion": 2018,
654
- "modules": true,
655
- "sourceType": "script",
656
- },
657
- "plugins": [
658
- "prettier",
659
- ],
660
- "rules": {
661
- "prettier/prettier": "error",
662
- },
663
- },
664
586
  "files": [
665
587
  "bin",
666
588
  "dist",
@@ -702,6 +624,9 @@ describe('initCreateWhook', () => {
702
624
  "license": "SEE LICENSE",
703
625
  "main": "dist/index.js",
704
626
  "name": "super-project",
627
+ "overrides": {
628
+ "eslint": "^9.7.0",
629
+ },
705
630
  "prettier": {
706
631
  "printWidth": 80,
707
632
  "proseWrap": "always",
@@ -81,6 +81,7 @@ export default autoService(async function initCreateWhook({
81
81
  eslintConfig: basePackageJSON.eslintConfig,
82
82
  prettier: basePackageJSON.prettier,
83
83
  jest: basePackageJSON.jest,
84
+ overrides: basePackageJSON.overrides,
84
85
  metapak: undefined,
85
86
  };
86
87
 
@@ -30,18 +30,22 @@ export default autoService(async function initProject({
30
30
  try {
31
31
  await lock.take('cli:input');
32
32
 
33
- const { projectName } = await inquirer.prompt([
33
+ const { projectName } = await inquirer.prompt<{ projectName: string }>([
34
34
  {
35
35
  name: 'projectName',
36
36
  message: "What's this new project name",
37
+ type: 'input',
37
38
  default: DEFAULT_PROJECT_NAME,
38
39
  },
39
40
  ]);
40
41
 
41
- const { projectDirectory } = await inquirer.prompt([
42
+ const { projectDirectory } = await inquirer.prompt<{
43
+ projectDirectory: string;
44
+ }>([
42
45
  {
43
46
  name: 'projectDirectory',
44
47
  message: "Provide the project's directory",
48
+ type: 'input',
45
49
  default: path.join(CWD, projectName),
46
50
  },
47
51
  ]);