@whook/create 10.0.2 → 10.0.5

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.
@@ -1,4 +1,4 @@
1
- import { jest } from '@jest/globals';
1
+ import { describe, it, beforeEach, jest, expect } from '@jest/globals';
2
2
  import initCreateWhook from './createWhook.js';
3
3
  import { YError } from 'yerror';
4
4
  import { readFileSync } from 'fs';
@@ -105,86 +105,85 @@ Mr Bean
105
105
  expect(JSON.parse(writeFile.mock.calls
106
106
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
107
107
  ?.toString() || '')).toMatchInlineSnapshot(`
108
- Object {
109
- "author": Object {
108
+ {
109
+ "author": {
110
110
  "email": "wayne@warner.com",
111
111
  "name": "Wayne Campbell",
112
112
  },
113
- "dependencies": Object {
113
+ "dependencies": {
114
114
  "@whook/authorization": "<current_version>",
115
115
  "@whook/cli": "<current_version>",
116
116
  "@whook/cors": "<current_version>",
117
117
  "@whook/http-router": "<current_version>",
118
- "@whook/http-server": "^10.0.1",
118
+ "@whook/http-server": "^10.0.4",
119
119
  "@whook/http-transaction": "<current_version>",
120
120
  "@whook/swagger-ui": "<current_version>",
121
121
  "@whook/whook": "<current_version>",
122
- "common-services": "^11.0.1",
123
- "http-auth-utils": "^3.0.3",
124
- "jwt-service": "^9.0.1",
125
- "knifecycle": "^14.0.0",
126
- "openapi-schema-validator": "^12.0.0",
127
- "openapi-types": "^12.0.0",
128
- "strict-qs": "^7.0.0",
129
- "type-fest": "^2.13.1",
122
+ "common-services": "^11.1.0",
123
+ "http-auth-utils": "^3.0.4",
124
+ "jwt-service": "^9.0.2",
125
+ "knifecycle": "^14.1.0",
126
+ "openapi-schema-validator": "^12.0.2",
127
+ "openapi-types": "^12.0.2",
128
+ "strict-qs": "^7.0.1",
129
+ "type-fest": "^2.19.0",
130
130
  "yerror": "^6.1.1",
131
131
  "yhttperror": "^6.1.1",
132
132
  },
133
133
  "description": "A new Whook project",
134
- "devDependencies": Object {
135
- "@types/jest": "^28.1.1",
136
- "@typescript-eslint/eslint-plugin": "^5.27.0",
137
- "@typescript-eslint/parser": "^5.27.0",
134
+ "devDependencies": {
135
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
136
+ "@typescript-eslint/parser": "^5.36.0",
138
137
  "axios": "^0.27.2",
139
138
  "chokidar": "^3.5.1",
140
- "esbuild": "^0.14.46",
139
+ "esbuild": "^0.15.6",
141
140
  "esbuild-jest": "^0.5.0",
142
- "esbuild-node-externals": "^1.4.1",
143
- "eslint": "^8.17.0",
141
+ "esbuild-node-externals": "^1.5.0",
142
+ "eslint": "^8.23.0",
144
143
  "eslint-config-prettier": "^8.5.0",
145
- "eslint-plugin-prettier": "^4.0.0",
146
- "jest": "^28.1.0",
147
- "jsarch": "^5.0.1",
144
+ "eslint-plugin-prettier": "^4.2.1",
145
+ "jest": "^29.0.1",
146
+ "jsarch": "^6.0.0",
148
147
  "parse-gitignore": "^1.0.1",
149
- "prettier": "^2.6.2",
148
+ "prettier": "^2.7.1",
150
149
  "rimraf": "^3.0.2",
151
150
  "schema2dts": "^4.1.1",
152
151
  "ts-node": "^10.8.1",
153
- "typescript": "^4.7.3",
152
+ "typescript": "^4.8.2",
154
153
  },
155
- "engines": Object {
154
+ "engines": {
156
155
  "node": ">=16.15.0",
157
156
  },
158
- "eslintConfig": Object {
159
- "env": Object {
157
+ "eslintConfig": {
158
+ "env": {
160
159
  "es6": true,
161
160
  "jest": true,
162
161
  "mocha": true,
163
162
  "node": true,
164
163
  },
165
- "extends": Array [
164
+ "extends": [
166
165
  "eslint:recommended",
167
166
  "plugin:prettier/recommended",
168
167
  "plugin:@typescript-eslint/eslint-recommended",
169
168
  "plugin:@typescript-eslint/recommended",
170
169
  ],
171
- "ignorePatterns": Array [
170
+ "ignorePatterns": [
172
171
  "*.d.ts",
173
172
  ],
174
173
  "parser": "@typescript-eslint/parser",
175
- "parserOptions": Object {
174
+ "parserOptions": {
176
175
  "ecmaVersion": 2018,
177
176
  "modules": true,
178
177
  "sourceType": "script",
179
178
  },
180
- "plugins": Array [
179
+ "plugins": [
181
180
  "prettier",
182
181
  ],
183
- "rules": Object {
182
+ "rules": {
184
183
  "prettier/prettier": "error",
185
184
  },
186
185
  },
187
- "files": Array [
186
+ "files": [
188
187
  "bin",
189
188
  "dist",
190
189
  "src",
@@ -192,42 +191,42 @@ Mr Bean
192
191
  "README.md",
193
192
  "CHANGELOG.md",
194
193
  ],
195
- "jest": Object {
196
- "coverageReporters": Array [
194
+ "jest": {
195
+ "coverageReporters": [
197
196
  "lcov",
198
197
  "html",
199
198
  ],
200
- "extensionsToTreatAsEsm": Array [
199
+ "extensionsToTreatAsEsm": [
201
200
  ".ts",
202
201
  ],
203
- "moduleNameMapper": Object {
202
+ "moduleNameMapper": {
204
203
  "#(.*)": "<rootDir>/../../node_modules/$1",
205
- "(.+)\\\\.js": "$1",
204
+ "(.+)\\.js": "$1",
206
205
  },
207
- "roots": Array [
206
+ "roots": [
208
207
  "<rootDir>/src",
209
208
  ],
210
209
  "testEnvironment": "node",
211
- "testPathIgnorePatterns": Array [
210
+ "testPathIgnorePatterns": [
212
211
  "/node_modules/",
213
212
  ],
214
- "transform": Object {
215
- "^.+\\\\.tsx?$": Array [
213
+ "transform": {
214
+ "^.+\\.tsx?$": [
216
215
  "esbuild-jest",
217
- Object {
216
+ {
218
217
  "format": "esm",
219
218
  "sourcemap": true,
220
219
  },
221
220
  ],
222
221
  },
223
222
  },
224
- "keywords": Array [
223
+ "keywords": [
225
224
  "whook",
226
225
  ],
227
226
  "license": "SEE LICENSE",
228
227
  "main": "dist/index.js",
229
228
  "name": "super-project",
230
- "prettier": Object {
229
+ "prettier": {
231
230
  "printWidth": 80,
232
231
  "proseWrap": "always",
233
232
  "semi": true,
@@ -235,7 +234,7 @@ Mr Bean
235
234
  "trailingComma": "all",
236
235
  },
237
236
  "private": true,
238
- "scripts": Object {
237
+ "scripts": {
239
238
  "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
240
239
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
241
240
  "build": "rimraf -f 'dist' && tsc --outDir dist",
@@ -245,14 +244,14 @@ Mr Bean
245
244
  "genPackagelock": "npm i --package-lock-only",
246
245
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
247
246
  "lint": "eslint 'src/**/*.ts'",
248
- "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
247
+ "postbuild": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
249
248
  "prettier": "prettier --write 'src/**/*.ts'",
250
- "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
249
+ "start": "PROJECT_SRC="$PWD/dist" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
251
250
  "test": "NODE_ENV=test npm run build && npm run jest",
252
251
  "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
253
252
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
254
- "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
255
- "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
253
+ "whook-dev": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
254
+ "whook-repl": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
256
255
  },
257
256
  "type": "module",
258
257
  "types": "dist/index.d.ts",
@@ -307,86 +306,85 @@ Mr Bean
307
306
  expect(JSON.parse(writeFile.mock.calls
308
307
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
309
308
  ?.toString() || '')).toMatchInlineSnapshot(`
310
- Object {
311
- "author": Object {
309
+ {
310
+ "author": {
312
311
  "email": "wayne@warner.com",
313
312
  "name": "Wayne Campbell",
314
313
  },
315
- "dependencies": Object {
314
+ "dependencies": {
316
315
  "@whook/authorization": "<current_version>",
317
316
  "@whook/cli": "<current_version>",
318
317
  "@whook/cors": "<current_version>",
319
318
  "@whook/http-router": "<current_version>",
320
- "@whook/http-server": "^10.0.1",
319
+ "@whook/http-server": "^10.0.4",
321
320
  "@whook/http-transaction": "<current_version>",
322
321
  "@whook/swagger-ui": "<current_version>",
323
322
  "@whook/whook": "<current_version>",
324
- "common-services": "^11.0.1",
325
- "http-auth-utils": "^3.0.3",
326
- "jwt-service": "^9.0.1",
327
- "knifecycle": "^14.0.0",
328
- "openapi-schema-validator": "^12.0.0",
329
- "openapi-types": "^12.0.0",
330
- "strict-qs": "^7.0.0",
331
- "type-fest": "^2.13.1",
323
+ "common-services": "^11.1.0",
324
+ "http-auth-utils": "^3.0.4",
325
+ "jwt-service": "^9.0.2",
326
+ "knifecycle": "^14.1.0",
327
+ "openapi-schema-validator": "^12.0.2",
328
+ "openapi-types": "^12.0.2",
329
+ "strict-qs": "^7.0.1",
330
+ "type-fest": "^2.19.0",
332
331
  "yerror": "^6.1.1",
333
332
  "yhttperror": "^6.1.1",
334
333
  },
335
334
  "description": "A new Whook project",
336
- "devDependencies": Object {
337
- "@types/jest": "^28.1.1",
338
- "@typescript-eslint/eslint-plugin": "^5.27.0",
339
- "@typescript-eslint/parser": "^5.27.0",
335
+ "devDependencies": {
336
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
337
+ "@typescript-eslint/parser": "^5.36.0",
340
338
  "axios": "^0.27.2",
341
339
  "chokidar": "^3.5.1",
342
- "esbuild": "^0.14.46",
340
+ "esbuild": "^0.15.6",
343
341
  "esbuild-jest": "^0.5.0",
344
- "esbuild-node-externals": "^1.4.1",
345
- "eslint": "^8.17.0",
342
+ "esbuild-node-externals": "^1.5.0",
343
+ "eslint": "^8.23.0",
346
344
  "eslint-config-prettier": "^8.5.0",
347
- "eslint-plugin-prettier": "^4.0.0",
348
- "jest": "^28.1.0",
349
- "jsarch": "^5.0.1",
345
+ "eslint-plugin-prettier": "^4.2.1",
346
+ "jest": "^29.0.1",
347
+ "jsarch": "^6.0.0",
350
348
  "parse-gitignore": "^1.0.1",
351
- "prettier": "^2.6.2",
349
+ "prettier": "^2.7.1",
352
350
  "rimraf": "^3.0.2",
353
351
  "schema2dts": "^4.1.1",
354
352
  "ts-node": "^10.8.1",
355
- "typescript": "^4.7.3",
353
+ "typescript": "^4.8.2",
356
354
  },
357
- "engines": Object {
355
+ "engines": {
358
356
  "node": ">=16.15.0",
359
357
  },
360
- "eslintConfig": Object {
361
- "env": Object {
358
+ "eslintConfig": {
359
+ "env": {
362
360
  "es6": true,
363
361
  "jest": true,
364
362
  "mocha": true,
365
363
  "node": true,
366
364
  },
367
- "extends": Array [
365
+ "extends": [
368
366
  "eslint:recommended",
369
367
  "plugin:prettier/recommended",
370
368
  "plugin:@typescript-eslint/eslint-recommended",
371
369
  "plugin:@typescript-eslint/recommended",
372
370
  ],
373
- "ignorePatterns": Array [
371
+ "ignorePatterns": [
374
372
  "*.d.ts",
375
373
  ],
376
374
  "parser": "@typescript-eslint/parser",
377
- "parserOptions": Object {
375
+ "parserOptions": {
378
376
  "ecmaVersion": 2018,
379
377
  "modules": true,
380
378
  "sourceType": "script",
381
379
  },
382
- "plugins": Array [
380
+ "plugins": [
383
381
  "prettier",
384
382
  ],
385
- "rules": Object {
383
+ "rules": {
386
384
  "prettier/prettier": "error",
387
385
  },
388
386
  },
389
- "files": Array [
387
+ "files": [
390
388
  "bin",
391
389
  "dist",
392
390
  "src",
@@ -394,42 +392,42 @@ Mr Bean
394
392
  "README.md",
395
393
  "CHANGELOG.md",
396
394
  ],
397
- "jest": Object {
398
- "coverageReporters": Array [
395
+ "jest": {
396
+ "coverageReporters": [
399
397
  "lcov",
400
398
  "html",
401
399
  ],
402
- "extensionsToTreatAsEsm": Array [
400
+ "extensionsToTreatAsEsm": [
403
401
  ".ts",
404
402
  ],
405
- "moduleNameMapper": Object {
403
+ "moduleNameMapper": {
406
404
  "#(.*)": "<rootDir>/../../node_modules/$1",
407
- "(.+)\\\\.js": "$1",
405
+ "(.+)\\.js": "$1",
408
406
  },
409
- "roots": Array [
407
+ "roots": [
410
408
  "<rootDir>/src",
411
409
  ],
412
410
  "testEnvironment": "node",
413
- "testPathIgnorePatterns": Array [
411
+ "testPathIgnorePatterns": [
414
412
  "/node_modules/",
415
413
  ],
416
- "transform": Object {
417
- "^.+\\\\.tsx?$": Array [
414
+ "transform": {
415
+ "^.+\\.tsx?$": [
418
416
  "esbuild-jest",
419
- Object {
417
+ {
420
418
  "format": "esm",
421
419
  "sourcemap": true,
422
420
  },
423
421
  ],
424
422
  },
425
423
  },
426
- "keywords": Array [
424
+ "keywords": [
427
425
  "whook",
428
426
  ],
429
427
  "license": "SEE LICENSE",
430
428
  "main": "dist/index.js",
431
429
  "name": "super-project",
432
- "prettier": Object {
430
+ "prettier": {
433
431
  "printWidth": 80,
434
432
  "proseWrap": "always",
435
433
  "semi": true,
@@ -437,7 +435,7 @@ Mr Bean
437
435
  "trailingComma": "all",
438
436
  },
439
437
  "private": true,
440
- "scripts": Object {
438
+ "scripts": {
441
439
  "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
442
440
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
443
441
  "build": "rimraf -f 'dist' && tsc --outDir dist",
@@ -447,14 +445,14 @@ Mr Bean
447
445
  "genPackagelock": "npm i --package-lock-only",
448
446
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
449
447
  "lint": "eslint 'src/**/*.ts'",
450
- "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
448
+ "postbuild": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
451
449
  "prettier": "prettier --write 'src/**/*.ts'",
452
- "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
450
+ "start": "PROJECT_SRC="$PWD/dist" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
453
451
  "test": "NODE_ENV=test npm run build && npm run jest",
454
452
  "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
455
453
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
456
- "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
457
- "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
454
+ "whook-dev": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
455
+ "whook-repl": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
458
456
  },
459
457
  "type": "module",
460
458
  "types": "dist/index.d.ts",
@@ -503,86 +501,85 @@ Mr Bean
503
501
  expect(JSON.parse(writeFile.mock.calls
504
502
  .find((call) => call[0].toString().endsWith('package.json'))?.[1]
505
503
  ?.toString() || '')).toMatchInlineSnapshot(`
506
- Object {
507
- "author": Object {
504
+ {
505
+ "author": {
508
506
  "email": "wayne@warner.com",
509
507
  "name": "Wayne Campbell",
510
508
  },
511
- "dependencies": Object {
509
+ "dependencies": {
512
510
  "@whook/authorization": "<current_version>",
513
511
  "@whook/cli": "<current_version>",
514
512
  "@whook/cors": "<current_version>",
515
513
  "@whook/http-router": "<current_version>",
516
- "@whook/http-server": "^10.0.1",
514
+ "@whook/http-server": "^10.0.4",
517
515
  "@whook/http-transaction": "<current_version>",
518
516
  "@whook/swagger-ui": "<current_version>",
519
517
  "@whook/whook": "<current_version>",
520
- "common-services": "^11.0.1",
521
- "http-auth-utils": "^3.0.3",
522
- "jwt-service": "^9.0.1",
523
- "knifecycle": "^14.0.0",
524
- "openapi-schema-validator": "^12.0.0",
525
- "openapi-types": "^12.0.0",
526
- "strict-qs": "^7.0.0",
527
- "type-fest": "^2.13.1",
518
+ "common-services": "^11.1.0",
519
+ "http-auth-utils": "^3.0.4",
520
+ "jwt-service": "^9.0.2",
521
+ "knifecycle": "^14.1.0",
522
+ "openapi-schema-validator": "^12.0.2",
523
+ "openapi-types": "^12.0.2",
524
+ "strict-qs": "^7.0.1",
525
+ "type-fest": "^2.19.0",
528
526
  "yerror": "^6.1.1",
529
527
  "yhttperror": "^6.1.1",
530
528
  },
531
529
  "description": "A new Whook project",
532
- "devDependencies": Object {
533
- "@types/jest": "^28.1.1",
534
- "@typescript-eslint/eslint-plugin": "^5.27.0",
535
- "@typescript-eslint/parser": "^5.27.0",
530
+ "devDependencies": {
531
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
532
+ "@typescript-eslint/parser": "^5.36.0",
536
533
  "axios": "^0.27.2",
537
534
  "chokidar": "^3.5.1",
538
- "esbuild": "^0.14.46",
535
+ "esbuild": "^0.15.6",
539
536
  "esbuild-jest": "^0.5.0",
540
- "esbuild-node-externals": "^1.4.1",
541
- "eslint": "^8.17.0",
537
+ "esbuild-node-externals": "^1.5.0",
538
+ "eslint": "^8.23.0",
542
539
  "eslint-config-prettier": "^8.5.0",
543
- "eslint-plugin-prettier": "^4.0.0",
544
- "jest": "^28.1.0",
545
- "jsarch": "^5.0.1",
540
+ "eslint-plugin-prettier": "^4.2.1",
541
+ "jest": "^29.0.1",
542
+ "jsarch": "^6.0.0",
546
543
  "parse-gitignore": "^1.0.1",
547
- "prettier": "^2.6.2",
544
+ "prettier": "^2.7.1",
548
545
  "rimraf": "^3.0.2",
549
546
  "schema2dts": "^4.1.1",
550
547
  "ts-node": "^10.8.1",
551
- "typescript": "^4.7.3",
548
+ "typescript": "^4.8.2",
552
549
  },
553
- "engines": Object {
550
+ "engines": {
554
551
  "node": ">=16.15.0",
555
552
  },
556
- "eslintConfig": Object {
557
- "env": Object {
553
+ "eslintConfig": {
554
+ "env": {
558
555
  "es6": true,
559
556
  "jest": true,
560
557
  "mocha": true,
561
558
  "node": true,
562
559
  },
563
- "extends": Array [
560
+ "extends": [
564
561
  "eslint:recommended",
565
562
  "plugin:prettier/recommended",
566
563
  "plugin:@typescript-eslint/eslint-recommended",
567
564
  "plugin:@typescript-eslint/recommended",
568
565
  ],
569
- "ignorePatterns": Array [
566
+ "ignorePatterns": [
570
567
  "*.d.ts",
571
568
  ],
572
569
  "parser": "@typescript-eslint/parser",
573
- "parserOptions": Object {
570
+ "parserOptions": {
574
571
  "ecmaVersion": 2018,
575
572
  "modules": true,
576
573
  "sourceType": "script",
577
574
  },
578
- "plugins": Array [
575
+ "plugins": [
579
576
  "prettier",
580
577
  ],
581
- "rules": Object {
578
+ "rules": {
582
579
  "prettier/prettier": "error",
583
580
  },
584
581
  },
585
- "files": Array [
582
+ "files": [
586
583
  "bin",
587
584
  "dist",
588
585
  "src",
@@ -590,42 +587,42 @@ Mr Bean
590
587
  "README.md",
591
588
  "CHANGELOG.md",
592
589
  ],
593
- "jest": Object {
594
- "coverageReporters": Array [
590
+ "jest": {
591
+ "coverageReporters": [
595
592
  "lcov",
596
593
  "html",
597
594
  ],
598
- "extensionsToTreatAsEsm": Array [
595
+ "extensionsToTreatAsEsm": [
599
596
  ".ts",
600
597
  ],
601
- "moduleNameMapper": Object {
598
+ "moduleNameMapper": {
602
599
  "#(.*)": "<rootDir>/../../node_modules/$1",
603
- "(.+)\\\\.js": "$1",
600
+ "(.+)\\.js": "$1",
604
601
  },
605
- "roots": Array [
602
+ "roots": [
606
603
  "<rootDir>/src",
607
604
  ],
608
605
  "testEnvironment": "node",
609
- "testPathIgnorePatterns": Array [
606
+ "testPathIgnorePatterns": [
610
607
  "/node_modules/",
611
608
  ],
612
- "transform": Object {
613
- "^.+\\\\.tsx?$": Array [
609
+ "transform": {
610
+ "^.+\\.tsx?$": [
614
611
  "esbuild-jest",
615
- Object {
612
+ {
616
613
  "format": "esm",
617
614
  "sourcemap": true,
618
615
  },
619
616
  ],
620
617
  },
621
618
  },
622
- "keywords": Array [
619
+ "keywords": [
623
620
  "whook",
624
621
  ],
625
622
  "license": "SEE LICENSE",
626
623
  "main": "dist/index.js",
627
624
  "name": "super-project",
628
- "prettier": Object {
625
+ "prettier": {
629
626
  "printWidth": 80,
630
627
  "proseWrap": "always",
631
628
  "semi": true,
@@ -633,7 +630,7 @@ Mr Bean
633
630
  "trailingComma": "all",
634
631
  },
635
632
  "private": true,
636
- "scripts": Object {
633
+ "scripts": {
637
634
  "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
638
635
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
639
636
  "build": "rimraf -f 'dist' && tsc --outDir dist",
@@ -643,14 +640,14 @@ Mr Bean
643
640
  "genPackagelock": "npm i --package-lock-only",
644
641
  "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
645
642
  "lint": "eslint 'src/**/*.ts'",
646
- "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
643
+ "postbuild": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
647
644
  "prettier": "prettier --write 'src/**/*.ts'",
648
- "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
645
+ "start": "PROJECT_SRC="$PWD/dist" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
649
646
  "test": "NODE_ENV=test npm run build && npm run jest",
650
647
  "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
651
648
  "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
652
- "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
653
- "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
649
+ "whook-dev": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
650
+ "whook-repl": "PROJECT_SRC="$PWD/src" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js",
654
651
  },
655
652
  "type": "module",
656
653
  "types": "dist/index.d.ts",
@@ -704,9 +701,9 @@ Mr Bean
704
701
  errorCode: err.code,
705
702
  errorParams: err.params,
706
703
  }).toMatchInlineSnapshot(`
707
- Object {
704
+ {
708
705
  "errorCode": "E_ACCESS",
709
- "errorParams": Array [],
706
+ "errorParams": [],
710
707
  }
711
708
  `);
712
709
  expect({