@whook/create 10.0.0 → 10.0.3

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,49 +1,49 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`initCreateWhook should fail with access problems 2`] = `
4
- Object {
5
- "copyCalls": Array [
6
- Array [
4
+ {
5
+ "copyCalls": [
6
+ [
7
7
  "/var/lib/node/node_modules/whook-example",
8
8
  "/home/whoiam/projects/yolo",
9
- Object {
9
+ {
10
10
  "filter": [Function],
11
11
  },
12
12
  ],
13
13
  ],
14
- "execCalls": Array [
15
- Array [
14
+ "execCalls": [
15
+ [
16
16
  "git init",
17
- Object {
17
+ {
18
18
  "cwd": "/home/whoiam/projects/yolo",
19
19
  },
20
20
  [Function],
21
21
  ],
22
22
  ],
23
- "logCalls": Array [
24
- Array [
23
+ "logCalls": [
24
+ [
25
25
  "warning",
26
26
  "🏁️ - Starting Whook project's creation!",
27
27
  ],
28
28
  ],
29
- "oraCalls": Array [],
30
- "oraStartCalls": Array [],
31
- "oraStopAndPersistCalls": Array [],
32
- "readFileCalls": Array [
33
- Array [
29
+ "oraCalls": [],
30
+ "oraStartCalls": [],
31
+ "oraStopAndPersistCalls": [],
32
+ "readFileCalls": [
33
+ [
34
34
  "/var/lib/node/node_modules/whook-example/package.json",
35
35
  ],
36
- Array [
36
+ [
37
37
  "/var/lib/node/node_modules/whook-example/README.md",
38
38
  ],
39
39
  ],
40
- "readdirCalls": Array [
41
- Array [
40
+ "readdirCalls": [
41
+ [
42
42
  "/var/lib/node/node_modules/whook-example/src/config",
43
43
  ],
44
44
  ],
45
- "writeFileCalls": Array [
46
- Array [
45
+ "writeFileCalls": [
46
+ [
47
47
  "/home/whoiam/projects/yolo/README.md",
48
48
  "# super-project
49
49
 
@@ -54,25 +54,201 @@ Wayne Campbell
54
54
 
55
55
  ",
56
56
  ],
57
- Array [
57
+ [
58
58
  "/home/whoiam/projects/yolo/.env.development",
59
59
  "JWT_SECRET=oudelali
60
60
  ",
61
61
  ],
62
- Array [
62
+ [
63
63
  "/home/whoiam/projects/yolo/.env.production",
64
64
  "JWT_SECRET=oudelali
65
65
  ",
66
66
  ],
67
- Array [
67
+ [
68
68
  "/home/whoiam/projects/yolo/package.json",
69
- "{\\"name\\":\\"super-project\\",\\"description\\":\\"A new Whook project\\",\\"version\\":\\"0.0.0\\",\\"license\\":\\"SEE LICENSE\\",\\"engines\\":{\\"node\\":\\">=16.15.0\\"},\\"main\\":\\"dist/index.js\\",\\"types\\":\\"dist/index.d.ts\\",\\"type\\":\\"module\\",\\"private\\":true,\\"keywords\\":[\\"whook\\"],\\"author\\":{\\"name\\":\\"Wayne Campbell\\",\\"email\\":\\"wayne@warner.com\\"},\\"scripts\\":{\\"apitypes\\":\\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",\\"architecture\\":\\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",\\"build\\":\\"rimraf -f 'dist' && tsc --outDir dist\\",\\"cover\\":\\"npm run jest -- --coverage\\",\\"debug\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",\\"dev\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",\\"genPackagelock\\":\\"npm i --package-lock-only\\",\\"jest\\":\\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",\\"lint\\":\\"eslint 'src/**/*.ts'\\",\\"postbuild\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",\\"prettier\\":\\"prettier --write 'src/**/*.ts'\\",\\"start\\":\\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",\\"test\\":\\"NODE_ENV=test npm run build && npm run jest\\",\\"watch\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",\\"whook\\":\\"NODE_ENV=\${NODE_ENV:-development} whook\\",\\"whook-dev\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",\\"whook-repl\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"},\\"files\\":[\\"bin\\",\\"dist\\",\\"src\\",\\"LICENSE\\",\\"README.md\\",\\"CHANGELOG.md\\"],\\"dependencies\\":{\\"@whook/authorization\\":\\"<current_version>\\",\\"@whook/cli\\":\\"<current_version>\\",\\"@whook/cors\\":\\"<current_version>\\",\\"@whook/http-router\\":\\"<current_version>\\",\\"@whook/http-server\\":\\"^9.0.1\\",\\"@whook/http-transaction\\":\\"<current_version>\\",\\"@whook/swagger-ui\\":\\"<current_version>\\",\\"@whook/whook\\":\\"<current_version>\\",\\"common-services\\":\\"^11.0.1\\",\\"http-auth-utils\\":\\"^3.0.3\\",\\"jwt-service\\":\\"^9.0.1\\",\\"knifecycle\\":\\"^14.0.0\\",\\"openapi-schema-validator\\":\\"^12.0.0\\",\\"openapi-types\\":\\"^12.0.0\\",\\"strict-qs\\":\\"^7.0.0\\",\\"type-fest\\":\\"^2.13.1\\",\\"yerror\\":\\"^6.1.1\\",\\"yhttperror\\":\\"^6.1.1\\"},\\"devDependencies\\":{\\"@types/jest\\":\\"^28.1.1\\",\\"@typescript-eslint/eslint-plugin\\":\\"^5.27.0\\",\\"@typescript-eslint/parser\\":\\"^5.27.0\\",\\"axios\\":\\"^0.27.2\\",\\"chokidar\\":\\"^3.5.1\\",\\"esbuild\\":\\"^0.14.46\\",\\"esbuild-jest\\":\\"^0.5.0\\",\\"esbuild-node-externals\\":\\"^1.4.1\\",\\"eslint\\":\\"^8.17.0\\",\\"eslint-config-prettier\\":\\"^8.5.0\\",\\"eslint-plugin-prettier\\":\\"^4.0.0\\",\\"jest\\":\\"^28.1.0\\",\\"jsarch\\":\\"^5.0.1\\",\\"parse-gitignore\\":\\"^1.0.1\\",\\"prettier\\":\\"^2.6.2\\",\\"rimraf\\":\\"^3.0.2\\",\\"schema2dts\\":\\"^4.1.1\\",\\"ts-node\\":\\"^10.8.1\\",\\"typescript\\":\\"^4.7.3\\"},\\"eslintConfig\\":{\\"extends\\":[\\"eslint:recommended\\",\\"plugin:prettier/recommended\\",\\"plugin:@typescript-eslint/eslint-recommended\\",\\"plugin:@typescript-eslint/recommended\\"],\\"parserOptions\\":{\\"ecmaVersion\\":2018,\\"sourceType\\":\\"script\\",\\"modules\\":true},\\"env\\":{\\"es6\\":true,\\"node\\":true,\\"jest\\":true,\\"mocha\\":true},\\"plugins\\":[\\"prettier\\"],\\"rules\\":{\\"prettier/prettier\\":\\"error\\"},\\"parser\\":\\"@typescript-eslint/parser\\",\\"ignorePatterns\\":[\\"*.d.ts\\"]},\\"prettier\\":{\\"semi\\":true,\\"printWidth\\":80,\\"singleQuote\\":true,\\"trailingComma\\":\\"all\\",\\"proseWrap\\":\\"always\\"},\\"jest\\":{\\"coverageReporters\\":[\\"lcov\\",\\"html\\"],\\"testPathIgnorePatterns\\":[\\"/node_modules/\\"],\\"roots\\":[\\"<rootDir>/src\\"],\\"testEnvironment\\":\\"node\\",\\"transform\\":{\\"^.+\\\\\\\\.tsx?$\\":[\\"esbuild-jest\\",{\\"sourcemap\\":true,\\"format\\":\\"esm\\"}]},\\"moduleNameMapper\\":{\\"#(.*)\\":\\"<rootDir>/../../node_modules/$1\\",\\"(.+)\\\\\\\\.js\\":\\"$1\\"},\\"extensionsToTreatAsEsm\\":[\\".ts\\"]}}",
69
+ "{
70
+ "name": "super-project",
71
+ "description": "A new Whook project",
72
+ "version": "0.0.0",
73
+ "license": "SEE LICENSE",
74
+ "engines": {
75
+ "node": ">=16.15.0"
76
+ },
77
+ "main": "dist/index.js",
78
+ "types": "dist/index.d.ts",
79
+ "type": "module",
80
+ "private": true,
81
+ "keywords": [
82
+ "whook"
83
+ ],
84
+ "author": {
85
+ "name": "Wayne Campbell",
86
+ "email": "wayne@warner.com"
87
+ },
88
+ "scripts": {
89
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
90
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
91
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
92
+ "cover": "npm run jest -- --coverage",
93
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
94
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
95
+ "genPackagelock": "npm i --package-lock-only",
96
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
97
+ "lint": "eslint 'src/**/*.ts'",
98
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
99
+ "prettier": "prettier --write 'src/**/*.ts'",
100
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
101
+ "test": "NODE_ENV=test npm run build && npm run jest",
102
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
103
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
104
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
105
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
106
+ },
107
+ "files": [
108
+ "bin",
109
+ "dist",
110
+ "src",
111
+ "LICENSE",
112
+ "README.md",
113
+ "CHANGELOG.md"
114
+ ],
115
+ "dependencies": {
116
+ "@whook/authorization": "<current_version>",
117
+ "@whook/cli": "<current_version>",
118
+ "@whook/cors": "<current_version>",
119
+ "@whook/http-router": "<current_version>",
120
+ "@whook/http-server": "^10.0.2",
121
+ "@whook/http-transaction": "<current_version>",
122
+ "@whook/swagger-ui": "<current_version>",
123
+ "@whook/whook": "<current_version>",
124
+ "common-services": "^11.1.0",
125
+ "http-auth-utils": "^3.0.3",
126
+ "jwt-service": "^9.0.2",
127
+ "knifecycle": "^14.1.0",
128
+ "openapi-schema-validator": "^12.0.0",
129
+ "openapi-types": "^12.0.2",
130
+ "strict-qs": "^7.0.0",
131
+ "type-fest": "^2.19.0",
132
+ "yerror": "^6.1.1",
133
+ "yhttperror": "^6.1.1"
134
+ },
135
+ "devDependencies": {
136
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
137
+ "@typescript-eslint/parser": "^5.36.0",
138
+ "axios": "^0.27.2",
139
+ "chokidar": "^3.5.1",
140
+ "esbuild": "^0.15.6",
141
+ "esbuild-jest": "^0.5.0",
142
+ "esbuild-node-externals": "^1.5.0",
143
+ "eslint": "^8.23.0",
144
+ "eslint-config-prettier": "^8.5.0",
145
+ "eslint-plugin-prettier": "^4.2.1",
146
+ "jest": "^29.0.1",
147
+ "jsarch": "^6.0.0",
148
+ "parse-gitignore": "^1.0.1",
149
+ "prettier": "^2.7.1",
150
+ "rimraf": "^3.0.2",
151
+ "schema2dts": "^4.1.1",
152
+ "ts-node": "^10.8.1",
153
+ "typescript": "^4.8.2"
154
+ },
155
+ "eslintConfig": {
156
+ "extends": [
157
+ "eslint:recommended",
158
+ "plugin:prettier/recommended",
159
+ "plugin:@typescript-eslint/eslint-recommended",
160
+ "plugin:@typescript-eslint/recommended"
161
+ ],
162
+ "parserOptions": {
163
+ "ecmaVersion": 2018,
164
+ "sourceType": "script",
165
+ "modules": true
166
+ },
167
+ "env": {
168
+ "es6": true,
169
+ "node": true,
170
+ "jest": true,
171
+ "mocha": true
172
+ },
173
+ "plugins": [
174
+ "prettier"
175
+ ],
176
+ "rules": {
177
+ "prettier/prettier": "error"
178
+ },
179
+ "parser": "@typescript-eslint/parser",
180
+ "ignorePatterns": [
181
+ "*.d.ts"
182
+ ]
183
+ },
184
+ "prettier": {
185
+ "semi": true,
186
+ "printWidth": 80,
187
+ "singleQuote": true,
188
+ "trailingComma": "all",
189
+ "proseWrap": "always"
190
+ },
191
+ "jest": {
192
+ "coverageReporters": [
193
+ "lcov",
194
+ "html"
195
+ ],
196
+ "testPathIgnorePatterns": [
197
+ "/node_modules/"
198
+ ],
199
+ "roots": [
200
+ "<rootDir>/src"
201
+ ],
202
+ "testEnvironment": "node",
203
+ "transform": {
204
+ "^.+\\\\.tsx?$": [
205
+ "esbuild-jest",
206
+ {
207
+ "sourcemap": true,
208
+ "format": "esm"
209
+ }
210
+ ]
211
+ },
212
+ "moduleNameMapper": {
213
+ "#(.*)": "<rootDir>/../../node_modules/$1",
214
+ "(.+)\\\\.js": "$1"
215
+ },
216
+ "extensionsToTreatAsEsm": [
217
+ ".ts"
218
+ ]
219
+ }
220
+ }",
221
+ ],
222
+ [
223
+ "/home/whoiam/projects/yolo/tsconfig.json",
224
+ "{
225
+ "compilerOptions": {
226
+ "module": "Node16",
227
+ "moduleResolution": "Node16",
228
+ "target": "es2022",
229
+ "noImplicitAny": false,
230
+ "removeComments": false,
231
+ "preserveConstEnums": true,
232
+ "allowSyntheticDefaultImports": true,
233
+ "esModuleInterop": true,
234
+ "strict": true,
235
+ "declaration": true,
236
+ "outDir": "dist",
237
+ "sourceMap": true
238
+ },
239
+ "include": [
240
+ "src/**/*.ts"
241
+ ],
242
+ "exclude": [
243
+ "node_modules"
244
+ ]
245
+ }",
70
246
  ],
71
- Array [
247
+ [
72
248
  "/home/whoiam/projects/yolo/LICENSE",
73
249
  "Copyright Wayne Campbell, all rights reserved.",
74
250
  ],
75
- Array [
251
+ [
76
252
  "/home/whoiam/projects/yolo/.gitignore",
77
253
  "node_modules",
78
254
  ],
@@ -81,94 +257,94 @@ Wayne Campbell
81
257
  `;
82
258
 
83
259
  exports[`initCreateWhook should handle git initialization problems 2`] = `
84
- Object {
85
- "copyCalls": Array [
86
- Array [
260
+ {
261
+ "copyCalls": [
262
+ [
87
263
  "/var/lib/node/node_modules/whook-example",
88
264
  "/home/whoiam/projects/yolo",
89
- Object {
265
+ {
90
266
  "filter": [Function],
91
267
  },
92
268
  ],
93
269
  ],
94
- "execCalls": Array [
95
- Array [
270
+ "execCalls": [
271
+ [
96
272
  "git init",
97
- Object {
273
+ {
98
274
  "cwd": "/home/whoiam/projects/yolo",
99
275
  },
100
276
  [Function],
101
277
  ],
102
- Array [
278
+ [
103
279
  "npm i",
104
- Object {
280
+ {
105
281
  "cwd": "/home/whoiam/projects/yolo",
106
282
  },
107
283
  [Function],
108
284
  ],
109
285
  ],
110
- "logCalls": Array [
111
- Array [
286
+ "logCalls": [
287
+ [
112
288
  "warning",
113
289
  "🏁️ - Starting Whook project's creation!",
114
290
  ],
115
- Array [
291
+ [
116
292
  "error",
117
293
  "⚠️ - Could not initialize the git project!",
118
294
  ],
119
- Array [
295
+ [
120
296
  "warning",
121
297
  "✔️ - Project created!",
122
298
  ],
123
- Array [
299
+ [
124
300
  "warning",
125
301
  "➕ - Run \`cd yolo\` to enter the project.",
126
302
  ],
127
- Array [
303
+ [
128
304
  "warning",
129
305
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
130
306
  ],
131
- Array [
307
+ [
132
308
  "warning",
133
309
  "➕ - And finally run \`npm run watch\` to start dev!",
134
310
  ],
135
311
  ],
136
- "oraCalls": Array [
137
- Array [
138
- Object {
312
+ "oraCalls": [
313
+ [
314
+ {
139
315
  "text": "Installing dependencies...",
140
316
  },
141
317
  ],
142
318
  ],
143
- "oraStartCalls": Array [
144
- Array [],
319
+ "oraStartCalls": [
320
+ [],
145
321
  ],
146
- "oraStopAndPersistCalls": Array [
147
- Array [
148
- Object {
322
+ "oraStopAndPersistCalls": [
323
+ [
324
+ {
149
325
  "symbol": "✔️",
150
326
  "text": "Installed dependencies",
151
327
  },
152
328
  ],
153
329
  ],
154
- "readFileCalls": Array [
155
- Array [
330
+ "readFileCalls": [
331
+ [
156
332
  "/var/lib/node/node_modules/whook-example/package.json",
157
333
  ],
158
- Array [
334
+ [
159
335
  "/var/lib/node/node_modules/whook-example/README.md",
160
336
  ],
161
337
  ],
162
- "readdirCalls": Array [
163
- Array [
338
+ "readdirCalls": [
339
+ [
164
340
  "/var/lib/node/node_modules/whook-example/package.json",
165
341
  ],
166
- Array [
342
+ [
167
343
  "/var/lib/node/node_modules/whook-example/README.md",
168
344
  ],
169
345
  ],
170
- "writeFileCalls": Array [
171
- Array [
346
+ "writeFileCalls": [
347
+ [
172
348
  "/home/whoiam/projects/yolo/README.md",
173
349
  "# super-project
174
350
 
@@ -179,25 +355,201 @@ Wayne Campbell
179
355
 
180
356
  ",
181
357
  ],
182
- Array [
358
+ [
183
359
  "/home/whoiam/projects/yolo/.env.development",
184
360
  "JWT_SECRET=oudelali
185
361
  ",
186
362
  ],
187
- Array [
363
+ [
188
364
  "/home/whoiam/projects/yolo/.env.production",
189
365
  "JWT_SECRET=oudelali
190
366
  ",
191
367
  ],
192
- Array [
368
+ [
193
369
  "/home/whoiam/projects/yolo/package.json",
194
- "{\\"name\\":\\"super-project\\",\\"description\\":\\"A new Whook project\\",\\"version\\":\\"0.0.0\\",\\"license\\":\\"SEE LICENSE\\",\\"engines\\":{\\"node\\":\\">=16.15.0\\"},\\"main\\":\\"dist/index.js\\",\\"types\\":\\"dist/index.d.ts\\",\\"type\\":\\"module\\",\\"private\\":true,\\"keywords\\":[\\"whook\\"],\\"author\\":{\\"name\\":\\"Wayne Campbell\\",\\"email\\":\\"wayne@warner.com\\"},\\"scripts\\":{\\"apitypes\\":\\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",\\"architecture\\":\\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",\\"build\\":\\"rimraf -f 'dist' && tsc --outDir dist\\",\\"cover\\":\\"npm run jest -- --coverage\\",\\"debug\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",\\"dev\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",\\"genPackagelock\\":\\"npm i --package-lock-only\\",\\"jest\\":\\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",\\"lint\\":\\"eslint 'src/**/*.ts'\\",\\"postbuild\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",\\"prettier\\":\\"prettier --write 'src/**/*.ts'\\",\\"start\\":\\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",\\"test\\":\\"NODE_ENV=test npm run build && npm run jest\\",\\"watch\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",\\"whook\\":\\"NODE_ENV=\${NODE_ENV:-development} whook\\",\\"whook-dev\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",\\"whook-repl\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"},\\"files\\":[\\"bin\\",\\"dist\\",\\"src\\",\\"LICENSE\\",\\"README.md\\",\\"CHANGELOG.md\\"],\\"dependencies\\":{\\"@whook/authorization\\":\\"<current_version>\\",\\"@whook/cli\\":\\"<current_version>\\",\\"@whook/cors\\":\\"<current_version>\\",\\"@whook/http-router\\":\\"<current_version>\\",\\"@whook/http-server\\":\\"^9.0.1\\",\\"@whook/http-transaction\\":\\"<current_version>\\",\\"@whook/swagger-ui\\":\\"<current_version>\\",\\"@whook/whook\\":\\"<current_version>\\",\\"common-services\\":\\"^11.0.1\\",\\"http-auth-utils\\":\\"^3.0.3\\",\\"jwt-service\\":\\"^9.0.1\\",\\"knifecycle\\":\\"^14.0.0\\",\\"openapi-schema-validator\\":\\"^12.0.0\\",\\"openapi-types\\":\\"^12.0.0\\",\\"strict-qs\\":\\"^7.0.0\\",\\"type-fest\\":\\"^2.13.1\\",\\"yerror\\":\\"^6.1.1\\",\\"yhttperror\\":\\"^6.1.1\\"},\\"devDependencies\\":{\\"@types/jest\\":\\"^28.1.1\\",\\"@typescript-eslint/eslint-plugin\\":\\"^5.27.0\\",\\"@typescript-eslint/parser\\":\\"^5.27.0\\",\\"axios\\":\\"^0.27.2\\",\\"chokidar\\":\\"^3.5.1\\",\\"esbuild\\":\\"^0.14.46\\",\\"esbuild-jest\\":\\"^0.5.0\\",\\"esbuild-node-externals\\":\\"^1.4.1\\",\\"eslint\\":\\"^8.17.0\\",\\"eslint-config-prettier\\":\\"^8.5.0\\",\\"eslint-plugin-prettier\\":\\"^4.0.0\\",\\"jest\\":\\"^28.1.0\\",\\"jsarch\\":\\"^5.0.1\\",\\"parse-gitignore\\":\\"^1.0.1\\",\\"prettier\\":\\"^2.6.2\\",\\"rimraf\\":\\"^3.0.2\\",\\"schema2dts\\":\\"^4.1.1\\",\\"ts-node\\":\\"^10.8.1\\",\\"typescript\\":\\"^4.7.3\\"},\\"eslintConfig\\":{\\"extends\\":[\\"eslint:recommended\\",\\"plugin:prettier/recommended\\",\\"plugin:@typescript-eslint/eslint-recommended\\",\\"plugin:@typescript-eslint/recommended\\"],\\"parserOptions\\":{\\"ecmaVersion\\":2018,\\"sourceType\\":\\"script\\",\\"modules\\":true},\\"env\\":{\\"es6\\":true,\\"node\\":true,\\"jest\\":true,\\"mocha\\":true},\\"plugins\\":[\\"prettier\\"],\\"rules\\":{\\"prettier/prettier\\":\\"error\\"},\\"parser\\":\\"@typescript-eslint/parser\\",\\"ignorePatterns\\":[\\"*.d.ts\\"]},\\"prettier\\":{\\"semi\\":true,\\"printWidth\\":80,\\"singleQuote\\":true,\\"trailingComma\\":\\"all\\",\\"proseWrap\\":\\"always\\"},\\"jest\\":{\\"coverageReporters\\":[\\"lcov\\",\\"html\\"],\\"testPathIgnorePatterns\\":[\\"/node_modules/\\"],\\"roots\\":[\\"<rootDir>/src\\"],\\"testEnvironment\\":\\"node\\",\\"transform\\":{\\"^.+\\\\\\\\.tsx?$\\":[\\"esbuild-jest\\",{\\"sourcemap\\":true,\\"format\\":\\"esm\\"}]},\\"moduleNameMapper\\":{\\"#(.*)\\":\\"<rootDir>/../../node_modules/$1\\",\\"(.+)\\\\\\\\.js\\":\\"$1\\"},\\"extensionsToTreatAsEsm\\":[\\".ts\\"]}}",
370
+ "{
371
+ "name": "super-project",
372
+ "description": "A new Whook project",
373
+ "version": "0.0.0",
374
+ "license": "SEE LICENSE",
375
+ "engines": {
376
+ "node": ">=16.15.0"
377
+ },
378
+ "main": "dist/index.js",
379
+ "types": "dist/index.d.ts",
380
+ "type": "module",
381
+ "private": true,
382
+ "keywords": [
383
+ "whook"
384
+ ],
385
+ "author": {
386
+ "name": "Wayne Campbell",
387
+ "email": "wayne@warner.com"
388
+ },
389
+ "scripts": {
390
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
391
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
392
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
393
+ "cover": "npm run jest -- --coverage",
394
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
395
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
396
+ "genPackagelock": "npm i --package-lock-only",
397
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
398
+ "lint": "eslint 'src/**/*.ts'",
399
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
400
+ "prettier": "prettier --write 'src/**/*.ts'",
401
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
402
+ "test": "NODE_ENV=test npm run build && npm run jest",
403
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
404
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
405
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
406
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
407
+ },
408
+ "files": [
409
+ "bin",
410
+ "dist",
411
+ "src",
412
+ "LICENSE",
413
+ "README.md",
414
+ "CHANGELOG.md"
415
+ ],
416
+ "dependencies": {
417
+ "@whook/authorization": "<current_version>",
418
+ "@whook/cli": "<current_version>",
419
+ "@whook/cors": "<current_version>",
420
+ "@whook/http-router": "<current_version>",
421
+ "@whook/http-server": "^10.0.2",
422
+ "@whook/http-transaction": "<current_version>",
423
+ "@whook/swagger-ui": "<current_version>",
424
+ "@whook/whook": "<current_version>",
425
+ "common-services": "^11.1.0",
426
+ "http-auth-utils": "^3.0.3",
427
+ "jwt-service": "^9.0.2",
428
+ "knifecycle": "^14.1.0",
429
+ "openapi-schema-validator": "^12.0.0",
430
+ "openapi-types": "^12.0.2",
431
+ "strict-qs": "^7.0.0",
432
+ "type-fest": "^2.19.0",
433
+ "yerror": "^6.1.1",
434
+ "yhttperror": "^6.1.1"
435
+ },
436
+ "devDependencies": {
437
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
438
+ "@typescript-eslint/parser": "^5.36.0",
439
+ "axios": "^0.27.2",
440
+ "chokidar": "^3.5.1",
441
+ "esbuild": "^0.15.6",
442
+ "esbuild-jest": "^0.5.0",
443
+ "esbuild-node-externals": "^1.5.0",
444
+ "eslint": "^8.23.0",
445
+ "eslint-config-prettier": "^8.5.0",
446
+ "eslint-plugin-prettier": "^4.2.1",
447
+ "jest": "^29.0.1",
448
+ "jsarch": "^6.0.0",
449
+ "parse-gitignore": "^1.0.1",
450
+ "prettier": "^2.7.1",
451
+ "rimraf": "^3.0.2",
452
+ "schema2dts": "^4.1.1",
453
+ "ts-node": "^10.8.1",
454
+ "typescript": "^4.8.2"
455
+ },
456
+ "eslintConfig": {
457
+ "extends": [
458
+ "eslint:recommended",
459
+ "plugin:prettier/recommended",
460
+ "plugin:@typescript-eslint/eslint-recommended",
461
+ "plugin:@typescript-eslint/recommended"
462
+ ],
463
+ "parserOptions": {
464
+ "ecmaVersion": 2018,
465
+ "sourceType": "script",
466
+ "modules": true
467
+ },
468
+ "env": {
469
+ "es6": true,
470
+ "node": true,
471
+ "jest": true,
472
+ "mocha": true
473
+ },
474
+ "plugins": [
475
+ "prettier"
476
+ ],
477
+ "rules": {
478
+ "prettier/prettier": "error"
479
+ },
480
+ "parser": "@typescript-eslint/parser",
481
+ "ignorePatterns": [
482
+ "*.d.ts"
483
+ ]
484
+ },
485
+ "prettier": {
486
+ "semi": true,
487
+ "printWidth": 80,
488
+ "singleQuote": true,
489
+ "trailingComma": "all",
490
+ "proseWrap": "always"
491
+ },
492
+ "jest": {
493
+ "coverageReporters": [
494
+ "lcov",
495
+ "html"
496
+ ],
497
+ "testPathIgnorePatterns": [
498
+ "/node_modules/"
499
+ ],
500
+ "roots": [
501
+ "<rootDir>/src"
502
+ ],
503
+ "testEnvironment": "node",
504
+ "transform": {
505
+ "^.+\\\\.tsx?$": [
506
+ "esbuild-jest",
507
+ {
508
+ "sourcemap": true,
509
+ "format": "esm"
510
+ }
511
+ ]
512
+ },
513
+ "moduleNameMapper": {
514
+ "#(.*)": "<rootDir>/../../node_modules/$1",
515
+ "(.+)\\\\.js": "$1"
516
+ },
517
+ "extensionsToTreatAsEsm": [
518
+ ".ts"
519
+ ]
520
+ }
521
+ }",
522
+ ],
523
+ [
524
+ "/home/whoiam/projects/yolo/tsconfig.json",
525
+ "{
526
+ "compilerOptions": {
527
+ "module": "Node16",
528
+ "moduleResolution": "Node16",
529
+ "target": "es2022",
530
+ "noImplicitAny": false,
531
+ "removeComments": false,
532
+ "preserveConstEnums": true,
533
+ "allowSyntheticDefaultImports": true,
534
+ "esModuleInterop": true,
535
+ "strict": true,
536
+ "declaration": true,
537
+ "outDir": "dist",
538
+ "sourceMap": true
539
+ },
540
+ "include": [
541
+ "src/**/*.ts"
542
+ ],
543
+ "exclude": [
544
+ "node_modules"
545
+ ]
546
+ }",
195
547
  ],
196
- Array [
548
+ [
197
549
  "/home/whoiam/projects/yolo/LICENSE",
198
550
  "Copyright Wayne Campbell, all rights reserved.",
199
551
  ],
200
- Array [
552
+ [
201
553
  "/home/whoiam/projects/yolo/.gitignore",
202
554
  "node_modules",
203
555
  ],
@@ -206,126 +558,126 @@ Wayne Campbell
206
558
  `;
207
559
 
208
560
  exports[`initCreateWhook should handle network issues 2`] = `
209
- Object {
210
- "copyCalls": Array [
211
- Array [
561
+ {
562
+ "copyCalls": [
563
+ [
212
564
  "/var/lib/node/node_modules/whook-example",
213
565
  "/home/whoiam/projects/yolo",
214
- Object {
566
+ {
215
567
  "filter": [Function],
216
568
  },
217
569
  ],
218
570
  ],
219
- "execCalls": Array [
220
- Array [
571
+ "execCalls": [
572
+ [
221
573
  "git init",
222
- Object {
574
+ {
223
575
  "cwd": "/home/whoiam/projects/yolo",
224
576
  },
225
577
  [Function],
226
578
  ],
227
- Array [
579
+ [
228
580
  "npm i",
229
- Object {
581
+ {
230
582
  "cwd": "/home/whoiam/projects/yolo",
231
583
  },
232
584
  [Function],
233
585
  ],
234
586
  ],
235
- "logCalls": Array [
236
- Array [
587
+ "logCalls": [
588
+ [
237
589
  "warning",
238
590
  "🏁️ - Starting Whook project's creation!",
239
591
  ],
240
- Array [
592
+ [
241
593
  "debug",
242
- "Discarding \\"/var/lib/node/node_modules/whook-example/package.json\\" => \\"/home/whoiam/projects/yolo/package.json (\\"..\\").",
594
+ "Discarding "/var/lib/node/node_modules/whook-example/package.json" => "/home/whoiam/projects/yolo/package.json ("..").",
243
595
  ],
244
- Array [
596
+ [
245
597
  "debug",
246
- "Discarding \\"/var/lib/node/node_modules/whook-example/package-lock.json\\" => \\"/home/whoiam/projects/yolo/package-lock.json (\\"..\\").",
598
+ "Discarding "/var/lib/node/node_modules/whook-example/package-lock.json" => "/home/whoiam/projects/yolo/package-lock.json ("..").",
247
599
  ],
248
- Array [
600
+ [
249
601
  "debug",
250
- "Discarding \\"/var/lib/node/node_modules/whook-example/LICENSE\\" => \\"/home/whoiam/projects/yolo/LICENSE (\\"..\\").",
602
+ "Discarding "/var/lib/node/node_modules/whook-example/LICENSE" => "/home/whoiam/projects/yolo/LICENSE ("..").",
251
603
  ],
252
- Array [
604
+ [
253
605
  "debug",
254
- "Discarding \\"/var/lib/node/node_modules/whook-example/dist/index.js\\" => \\"/home/whoiam/projects/yolo/dist/index.js (\\"../..\\").",
606
+ "Discarding "/var/lib/node/node_modules/whook-example/dist/index.js" => "/home/whoiam/projects/yolo/dist/index.js ("../..").",
255
607
  ],
256
- Array [
608
+ [
257
609
  "debug",
258
- "Moving \\"/var/lib/node/node_modules/whook-example/src/index.js\\" => \\"/home/whoiam/projects/yolo/src/index.js\\".",
610
+ "Moving "/var/lib/node/node_modules/whook-example/src/index.js" => "/home/whoiam/projects/yolo/src/index.js".",
259
611
  ],
260
- Array [
612
+ [
261
613
  "debug",
262
- "Discarding \\"/var/lib/node/node_modules/whook-example/coverage/index.html\\" => \\"/home/whoiam/projects/yolo/coverage/index.html (\\"../..\\").",
614
+ "Discarding "/var/lib/node/node_modules/whook-example/coverage/index.html" => "/home/whoiam/projects/yolo/coverage/index.html ("../..").",
263
615
  ],
264
- Array [
616
+ [
265
617
  "debug",
266
- "Discarding \\"/var/lib/node/node_modules/whook-example/node_modules/whook/index.js\\" => \\"/home/whoiam/projects/yolo/node_modules/whook/index.js (\\"../../..\\").",
618
+ "Discarding "/var/lib/node/node_modules/whook-example/node_modules/whook/index.js" => "/home/whoiam/projects/yolo/node_modules/whook/index.js ("../../..").",
267
619
  ],
268
- Array [
620
+ [
269
621
  "error",
270
622
  "⚠️ - Could not initialize the git project!",
271
623
  ],
272
- Array [
624
+ [
273
625
  "error",
274
- "⚠️ - Could not retrieve the \`.gitignore\` file contents from: \\"https://www.gitignore.io/api/osx,node,linux\\"",
626
+ "⚠️ - Could not retrieve the \`.gitignore\` file contents from: "https://www.gitignore.io/api/osx,node,linux"",
275
627
  ],
276
- Array [
628
+ [
277
629
  "warning",
278
630
  "✔️ - Project created!",
279
631
  ],
280
- Array [
632
+ [
281
633
  "warning",
282
634
  "➕ - Run \`cd yolo\` to enter the project.",
283
635
  ],
284
- Array [
636
+ [
285
637
  "warning",
286
638
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
287
639
  ],
288
- Array [
640
+ [
289
641
  "warning",
290
642
  "➕ - And finally run \`npm run watch\` to start dev!",
291
643
  ],
292
644
  ],
293
- "oraCalls": Array [
294
- Array [
295
- Object {
645
+ "oraCalls": [
646
+ [
647
+ {
296
648
  "text": "Installing dependencies...",
297
649
  },
298
650
  ],
299
651
  ],
300
- "oraStartCalls": Array [
301
- Array [],
652
+ "oraStartCalls": [
653
+ [],
302
654
  ],
303
- "oraStopAndPersistCalls": Array [
304
- Array [
305
- Object {
655
+ "oraStopAndPersistCalls": [
656
+ [
657
+ {
306
658
  "symbol": "✔️",
307
659
  "text": "Installed dependencies",
308
660
  },
309
661
  ],
310
662
  ],
311
- "readFileCalls": Array [
312
- Array [
663
+ "readFileCalls": [
664
+ [
313
665
  "/var/lib/node/node_modules/whook-example/package.json",
314
666
  ],
315
- Array [
667
+ [
316
668
  "/var/lib/node/node_modules/whook-example/README.md",
317
669
  ],
318
670
  ],
319
- "readdirCalls": Array [
320
- Array [
671
+ "readdirCalls": [
672
+ [
321
673
  "/var/lib/node/node_modules/whook-example/package.json",
322
674
  ],
323
- Array [
675
+ [
324
676
  "/var/lib/node/node_modules/whook-example/README.md",
325
677
  ],
326
678
  ],
327
- "writeFileCalls": Array [
328
- Array [
679
+ "writeFileCalls": [
680
+ [
329
681
  "/home/whoiam/projects/yolo/README.md",
330
682
  "# super-project
331
683
 
@@ -336,21 +688,197 @@ Wayne Campbell
336
688
 
337
689
  ",
338
690
  ],
339
- Array [
691
+ [
340
692
  "/home/whoiam/projects/yolo/.env.development",
341
693
  "JWT_SECRET=oudelali
342
694
  ",
343
695
  ],
344
- Array [
696
+ [
345
697
  "/home/whoiam/projects/yolo/.env.production",
346
698
  "JWT_SECRET=oudelali
347
699
  ",
348
700
  ],
349
- Array [
701
+ [
350
702
  "/home/whoiam/projects/yolo/package.json",
351
- "{\\"name\\":\\"super-project\\",\\"description\\":\\"A new Whook project\\",\\"version\\":\\"0.0.0\\",\\"license\\":\\"SEE LICENSE\\",\\"engines\\":{\\"node\\":\\">=16.15.0\\"},\\"main\\":\\"dist/index.js\\",\\"types\\":\\"dist/index.d.ts\\",\\"type\\":\\"module\\",\\"private\\":true,\\"keywords\\":[\\"whook\\"],\\"author\\":{\\"name\\":\\"Wayne Campbell\\",\\"email\\":\\"wayne@warner.com\\"},\\"scripts\\":{\\"apitypes\\":\\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",\\"architecture\\":\\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",\\"build\\":\\"rimraf -f 'dist' && tsc --outDir dist\\",\\"cover\\":\\"npm run jest -- --coverage\\",\\"debug\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",\\"dev\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",\\"genPackagelock\\":\\"npm i --package-lock-only\\",\\"jest\\":\\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",\\"lint\\":\\"eslint 'src/**/*.ts'\\",\\"postbuild\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",\\"prettier\\":\\"prettier --write 'src/**/*.ts'\\",\\"start\\":\\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",\\"test\\":\\"NODE_ENV=test npm run build && npm run jest\\",\\"watch\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",\\"whook\\":\\"NODE_ENV=\${NODE_ENV:-development} whook\\",\\"whook-dev\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",\\"whook-repl\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"},\\"files\\":[\\"bin\\",\\"dist\\",\\"src\\",\\"LICENSE\\",\\"README.md\\",\\"CHANGELOG.md\\"],\\"dependencies\\":{\\"@whook/authorization\\":\\"<current_version>\\",\\"@whook/cli\\":\\"<current_version>\\",\\"@whook/cors\\":\\"<current_version>\\",\\"@whook/http-router\\":\\"<current_version>\\",\\"@whook/http-server\\":\\"^9.0.1\\",\\"@whook/http-transaction\\":\\"<current_version>\\",\\"@whook/swagger-ui\\":\\"<current_version>\\",\\"@whook/whook\\":\\"<current_version>\\",\\"common-services\\":\\"^11.0.1\\",\\"http-auth-utils\\":\\"^3.0.3\\",\\"jwt-service\\":\\"^9.0.1\\",\\"knifecycle\\":\\"^14.0.0\\",\\"openapi-schema-validator\\":\\"^12.0.0\\",\\"openapi-types\\":\\"^12.0.0\\",\\"strict-qs\\":\\"^7.0.0\\",\\"type-fest\\":\\"^2.13.1\\",\\"yerror\\":\\"^6.1.1\\",\\"yhttperror\\":\\"^6.1.1\\"},\\"devDependencies\\":{\\"@types/jest\\":\\"^28.1.1\\",\\"@typescript-eslint/eslint-plugin\\":\\"^5.27.0\\",\\"@typescript-eslint/parser\\":\\"^5.27.0\\",\\"axios\\":\\"^0.27.2\\",\\"chokidar\\":\\"^3.5.1\\",\\"esbuild\\":\\"^0.14.46\\",\\"esbuild-jest\\":\\"^0.5.0\\",\\"esbuild-node-externals\\":\\"^1.4.1\\",\\"eslint\\":\\"^8.17.0\\",\\"eslint-config-prettier\\":\\"^8.5.0\\",\\"eslint-plugin-prettier\\":\\"^4.0.0\\",\\"jest\\":\\"^28.1.0\\",\\"jsarch\\":\\"^5.0.1\\",\\"parse-gitignore\\":\\"^1.0.1\\",\\"prettier\\":\\"^2.6.2\\",\\"rimraf\\":\\"^3.0.2\\",\\"schema2dts\\":\\"^4.1.1\\",\\"ts-node\\":\\"^10.8.1\\",\\"typescript\\":\\"^4.7.3\\"},\\"eslintConfig\\":{\\"extends\\":[\\"eslint:recommended\\",\\"plugin:prettier/recommended\\",\\"plugin:@typescript-eslint/eslint-recommended\\",\\"plugin:@typescript-eslint/recommended\\"],\\"parserOptions\\":{\\"ecmaVersion\\":2018,\\"sourceType\\":\\"script\\",\\"modules\\":true},\\"env\\":{\\"es6\\":true,\\"node\\":true,\\"jest\\":true,\\"mocha\\":true},\\"plugins\\":[\\"prettier\\"],\\"rules\\":{\\"prettier/prettier\\":\\"error\\"},\\"parser\\":\\"@typescript-eslint/parser\\",\\"ignorePatterns\\":[\\"*.d.ts\\"]},\\"prettier\\":{\\"semi\\":true,\\"printWidth\\":80,\\"singleQuote\\":true,\\"trailingComma\\":\\"all\\",\\"proseWrap\\":\\"always\\"},\\"jest\\":{\\"coverageReporters\\":[\\"lcov\\",\\"html\\"],\\"testPathIgnorePatterns\\":[\\"/node_modules/\\"],\\"roots\\":[\\"<rootDir>/src\\"],\\"testEnvironment\\":\\"node\\",\\"transform\\":{\\"^.+\\\\\\\\.tsx?$\\":[\\"esbuild-jest\\",{\\"sourcemap\\":true,\\"format\\":\\"esm\\"}]},\\"moduleNameMapper\\":{\\"#(.*)\\":\\"<rootDir>/../../node_modules/$1\\",\\"(.+)\\\\\\\\.js\\":\\"$1\\"},\\"extensionsToTreatAsEsm\\":[\\".ts\\"]}}",
703
+ "{
704
+ "name": "super-project",
705
+ "description": "A new Whook project",
706
+ "version": "0.0.0",
707
+ "license": "SEE LICENSE",
708
+ "engines": {
709
+ "node": ">=16.15.0"
710
+ },
711
+ "main": "dist/index.js",
712
+ "types": "dist/index.d.ts",
713
+ "type": "module",
714
+ "private": true,
715
+ "keywords": [
716
+ "whook"
717
+ ],
718
+ "author": {
719
+ "name": "Wayne Campbell",
720
+ "email": "wayne@warner.com"
721
+ },
722
+ "scripts": {
723
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
724
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
725
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
726
+ "cover": "npm run jest -- --coverage",
727
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
728
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
729
+ "genPackagelock": "npm i --package-lock-only",
730
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
731
+ "lint": "eslint 'src/**/*.ts'",
732
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
733
+ "prettier": "prettier --write 'src/**/*.ts'",
734
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
735
+ "test": "NODE_ENV=test npm run build && npm run jest",
736
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
737
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
738
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
739
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
740
+ },
741
+ "files": [
742
+ "bin",
743
+ "dist",
744
+ "src",
745
+ "LICENSE",
746
+ "README.md",
747
+ "CHANGELOG.md"
748
+ ],
749
+ "dependencies": {
750
+ "@whook/authorization": "<current_version>",
751
+ "@whook/cli": "<current_version>",
752
+ "@whook/cors": "<current_version>",
753
+ "@whook/http-router": "<current_version>",
754
+ "@whook/http-server": "^10.0.2",
755
+ "@whook/http-transaction": "<current_version>",
756
+ "@whook/swagger-ui": "<current_version>",
757
+ "@whook/whook": "<current_version>",
758
+ "common-services": "^11.1.0",
759
+ "http-auth-utils": "^3.0.3",
760
+ "jwt-service": "^9.0.2",
761
+ "knifecycle": "^14.1.0",
762
+ "openapi-schema-validator": "^12.0.0",
763
+ "openapi-types": "^12.0.2",
764
+ "strict-qs": "^7.0.0",
765
+ "type-fest": "^2.19.0",
766
+ "yerror": "^6.1.1",
767
+ "yhttperror": "^6.1.1"
768
+ },
769
+ "devDependencies": {
770
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
771
+ "@typescript-eslint/parser": "^5.36.0",
772
+ "axios": "^0.27.2",
773
+ "chokidar": "^3.5.1",
774
+ "esbuild": "^0.15.6",
775
+ "esbuild-jest": "^0.5.0",
776
+ "esbuild-node-externals": "^1.5.0",
777
+ "eslint": "^8.23.0",
778
+ "eslint-config-prettier": "^8.5.0",
779
+ "eslint-plugin-prettier": "^4.2.1",
780
+ "jest": "^29.0.1",
781
+ "jsarch": "^6.0.0",
782
+ "parse-gitignore": "^1.0.1",
783
+ "prettier": "^2.7.1",
784
+ "rimraf": "^3.0.2",
785
+ "schema2dts": "^4.1.1",
786
+ "ts-node": "^10.8.1",
787
+ "typescript": "^4.8.2"
788
+ },
789
+ "eslintConfig": {
790
+ "extends": [
791
+ "eslint:recommended",
792
+ "plugin:prettier/recommended",
793
+ "plugin:@typescript-eslint/eslint-recommended",
794
+ "plugin:@typescript-eslint/recommended"
795
+ ],
796
+ "parserOptions": {
797
+ "ecmaVersion": 2018,
798
+ "sourceType": "script",
799
+ "modules": true
800
+ },
801
+ "env": {
802
+ "es6": true,
803
+ "node": true,
804
+ "jest": true,
805
+ "mocha": true
806
+ },
807
+ "plugins": [
808
+ "prettier"
809
+ ],
810
+ "rules": {
811
+ "prettier/prettier": "error"
812
+ },
813
+ "parser": "@typescript-eslint/parser",
814
+ "ignorePatterns": [
815
+ "*.d.ts"
816
+ ]
817
+ },
818
+ "prettier": {
819
+ "semi": true,
820
+ "printWidth": 80,
821
+ "singleQuote": true,
822
+ "trailingComma": "all",
823
+ "proseWrap": "always"
824
+ },
825
+ "jest": {
826
+ "coverageReporters": [
827
+ "lcov",
828
+ "html"
829
+ ],
830
+ "testPathIgnorePatterns": [
831
+ "/node_modules/"
832
+ ],
833
+ "roots": [
834
+ "<rootDir>/src"
835
+ ],
836
+ "testEnvironment": "node",
837
+ "transform": {
838
+ "^.+\\\\.tsx?$": [
839
+ "esbuild-jest",
840
+ {
841
+ "sourcemap": true,
842
+ "format": "esm"
843
+ }
844
+ ]
845
+ },
846
+ "moduleNameMapper": {
847
+ "#(.*)": "<rootDir>/../../node_modules/$1",
848
+ "(.+)\\\\.js": "$1"
849
+ },
850
+ "extensionsToTreatAsEsm": [
851
+ ".ts"
852
+ ]
853
+ }
854
+ }",
855
+ ],
856
+ [
857
+ "/home/whoiam/projects/yolo/tsconfig.json",
858
+ "{
859
+ "compilerOptions": {
860
+ "module": "Node16",
861
+ "moduleResolution": "Node16",
862
+ "target": "es2022",
863
+ "noImplicitAny": false,
864
+ "removeComments": false,
865
+ "preserveConstEnums": true,
866
+ "allowSyntheticDefaultImports": true,
867
+ "esModuleInterop": true,
868
+ "strict": true,
869
+ "declaration": true,
870
+ "outDir": "dist",
871
+ "sourceMap": true
872
+ },
873
+ "include": [
874
+ "src/**/*.ts"
875
+ ],
876
+ "exclude": [
877
+ "node_modules"
878
+ ]
879
+ }",
352
880
  ],
353
- Array [
881
+ [
354
882
  "/home/whoiam/projects/yolo/LICENSE",
355
883
  "Copyright Wayne Campbell, all rights reserved.",
356
884
  ],
@@ -359,118 +887,118 @@ Wayne Campbell
359
887
  `;
360
888
 
361
889
  exports[`initCreateWhook should work 2`] = `
362
- Object {
363
- "copyCalls": Array [
364
- Array [
890
+ {
891
+ "copyCalls": [
892
+ [
365
893
  "/var/lib/node/node_modules/whook-example",
366
894
  "/home/whoiam/projects/yolo",
367
- Object {
895
+ {
368
896
  "filter": [Function],
369
897
  },
370
898
  ],
371
899
  ],
372
- "execCalls": Array [
373
- Array [
900
+ "execCalls": [
901
+ [
374
902
  "git init",
375
- Object {
903
+ {
376
904
  "cwd": "/home/whoiam/projects/yolo",
377
905
  },
378
906
  [Function],
379
907
  ],
380
- Array [
908
+ [
381
909
  "npm i",
382
- Object {
910
+ {
383
911
  "cwd": "/home/whoiam/projects/yolo",
384
912
  },
385
913
  [Function],
386
914
  ],
387
915
  ],
388
- "logCalls": Array [
389
- Array [
916
+ "logCalls": [
917
+ [
390
918
  "warning",
391
919
  "🏁️ - Starting Whook project's creation!",
392
920
  ],
393
- Array [
921
+ [
394
922
  "debug",
395
- "Discarding \\"/var/lib/node/node_modules/whook-example/package.json\\" => \\"/home/whoiam/projects/yolo/package.json (\\"..\\").",
923
+ "Discarding "/var/lib/node/node_modules/whook-example/package.json" => "/home/whoiam/projects/yolo/package.json ("..").",
396
924
  ],
397
- Array [
925
+ [
398
926
  "debug",
399
- "Discarding \\"/var/lib/node/node_modules/whook-example/package-lock.json\\" => \\"/home/whoiam/projects/yolo/package-lock.json (\\"..\\").",
927
+ "Discarding "/var/lib/node/node_modules/whook-example/package-lock.json" => "/home/whoiam/projects/yolo/package-lock.json ("..").",
400
928
  ],
401
- Array [
929
+ [
402
930
  "debug",
403
- "Discarding \\"/var/lib/node/node_modules/whook-example/LICENSE\\" => \\"/home/whoiam/projects/yolo/LICENSE (\\"..\\").",
931
+ "Discarding "/var/lib/node/node_modules/whook-example/LICENSE" => "/home/whoiam/projects/yolo/LICENSE ("..").",
404
932
  ],
405
- Array [
933
+ [
406
934
  "debug",
407
- "Discarding \\"/var/lib/node/node_modules/whook-example/dist/index.js\\" => \\"/home/whoiam/projects/yolo/dist/index.js (\\"../..\\").",
935
+ "Discarding "/var/lib/node/node_modules/whook-example/dist/index.js" => "/home/whoiam/projects/yolo/dist/index.js ("../..").",
408
936
  ],
409
- Array [
937
+ [
410
938
  "debug",
411
- "Moving \\"/var/lib/node/node_modules/whook-example/src/index.js\\" => \\"/home/whoiam/projects/yolo/src/index.js\\".",
939
+ "Moving "/var/lib/node/node_modules/whook-example/src/index.js" => "/home/whoiam/projects/yolo/src/index.js".",
412
940
  ],
413
- Array [
941
+ [
414
942
  "debug",
415
- "Discarding \\"/var/lib/node/node_modules/whook-example/coverage/index.html\\" => \\"/home/whoiam/projects/yolo/coverage/index.html (\\"../..\\").",
943
+ "Discarding "/var/lib/node/node_modules/whook-example/coverage/index.html" => "/home/whoiam/projects/yolo/coverage/index.html ("../..").",
416
944
  ],
417
- Array [
945
+ [
418
946
  "debug",
419
- "Discarding \\"/var/lib/node/node_modules/whook-example/node_modules/whook/index.js\\" => \\"/home/whoiam/projects/yolo/node_modules/whook/index.js (\\"../../..\\").",
947
+ "Discarding "/var/lib/node/node_modules/whook-example/node_modules/whook/index.js" => "/home/whoiam/projects/yolo/node_modules/whook/index.js ("../../..").",
420
948
  ],
421
- Array [
949
+ [
422
950
  "warning",
423
951
  "✔️ - Project created!",
424
952
  ],
425
- Array [
953
+ [
426
954
  "warning",
427
955
  "➕ - Run \`cd yolo\` to enter the project.",
428
956
  ],
429
- Array [
957
+ [
430
958
  "warning",
431
959
  "➕ - Then run \`DRY_RUN=1 npm run dev\` to check installation.",
432
960
  ],
433
- Array [
961
+ [
434
962
  "warning",
435
963
  "➕ - And finally run \`npm run watch\` to start dev!",
436
964
  ],
437
965
  ],
438
- "oraCalls": Array [
439
- Array [
440
- Object {
966
+ "oraCalls": [
967
+ [
968
+ {
441
969
  "text": "Installing dependencies...",
442
970
  },
443
971
  ],
444
972
  ],
445
- "oraStartCalls": Array [
446
- Array [],
973
+ "oraStartCalls": [
974
+ [],
447
975
  ],
448
- "oraStopAndPersistCalls": Array [
449
- Array [
450
- Object {
976
+ "oraStopAndPersistCalls": [
977
+ [
978
+ {
451
979
  "symbol": "✔️",
452
980
  "text": "Installed dependencies",
453
981
  },
454
982
  ],
455
983
  ],
456
- "readFileCalls": Array [
457
- Array [
984
+ "readFileCalls": [
985
+ [
458
986
  "/var/lib/node/node_modules/whook-example/package.json",
459
987
  ],
460
- Array [
988
+ [
461
989
  "/var/lib/node/node_modules/whook-example/README.md",
462
990
  ],
463
991
  ],
464
- "readdirCalls": Array [
465
- Array [
992
+ "readdirCalls": [
993
+ [
466
994
  "/var/lib/node/node_modules/whook-example/package.json",
467
995
  ],
468
- Array [
996
+ [
469
997
  "/var/lib/node/node_modules/whook-example/README.md",
470
998
  ],
471
999
  ],
472
- "writeFileCalls": Array [
473
- Array [
1000
+ "writeFileCalls": [
1001
+ [
474
1002
  "/home/whoiam/projects/yolo/README.md",
475
1003
  "# super-project
476
1004
 
@@ -481,25 +1009,201 @@ Wayne Campbell
481
1009
 
482
1010
  ",
483
1011
  ],
484
- Array [
1012
+ [
485
1013
  "/home/whoiam/projects/yolo/.env.development",
486
1014
  "JWT_SECRET=oudelali
487
1015
  ",
488
1016
  ],
489
- Array [
1017
+ [
490
1018
  "/home/whoiam/projects/yolo/.env.production",
491
1019
  "JWT_SECRET=oudelali
492
1020
  ",
493
1021
  ],
494
- Array [
1022
+ [
495
1023
  "/home/whoiam/projects/yolo/package.json",
496
- "{\\"name\\":\\"super-project\\",\\"description\\":\\"A new Whook project\\",\\"version\\":\\"0.0.0\\",\\"license\\":\\"SEE LICENSE\\",\\"engines\\":{\\"node\\":\\">=16.15.0\\"},\\"main\\":\\"dist/index.js\\",\\"types\\":\\"dist/index.d.ts\\",\\"type\\":\\"module\\",\\"private\\":true,\\"keywords\\":[\\"whook\\"],\\"author\\":{\\"name\\":\\"Wayne Campbell\\",\\"email\\":\\"wayne@warner.com\\"},\\"scripts\\":{\\"apitypes\\":\\"npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts\\",\\"architecture\\":\\"jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md\\",\\"build\\":\\"rimraf -f 'dist' && tsc --outDir dist\\",\\"cover\\":\\"npm run jest -- --coverage\\",\\"debug\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev\\",\\"dev\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js\\",\\"genPackagelock\\":\\"npm i --package-lock-only\\",\\"jest\\":\\"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest\\",\\"lint\\":\\"eslint 'src/**/*.ts'\\",\\"postbuild\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js\\",\\"prettier\\":\\"prettier --write 'src/**/*.ts'\\",\\"start\\":\\"PROJECT_SRC=\\\\\\"$PWD/dist\\\\\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js\\",\\"test\\":\\"NODE_ENV=test npm run build && npm run jest\\",\\"watch\\":\\"NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js\\",\\"whook\\":\\"NODE_ENV=\${NODE_ENV:-development} whook\\",\\"whook-dev\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js\\",\\"whook-repl\\":\\"PROJECT_SRC=\\\\\\"$PWD/src\\\\\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js\\"},\\"files\\":[\\"bin\\",\\"dist\\",\\"src\\",\\"LICENSE\\",\\"README.md\\",\\"CHANGELOG.md\\"],\\"dependencies\\":{\\"@whook/authorization\\":\\"<current_version>\\",\\"@whook/cli\\":\\"<current_version>\\",\\"@whook/cors\\":\\"<current_version>\\",\\"@whook/http-router\\":\\"<current_version>\\",\\"@whook/http-server\\":\\"^9.0.1\\",\\"@whook/http-transaction\\":\\"<current_version>\\",\\"@whook/swagger-ui\\":\\"<current_version>\\",\\"@whook/whook\\":\\"<current_version>\\",\\"common-services\\":\\"^11.0.1\\",\\"http-auth-utils\\":\\"^3.0.3\\",\\"jwt-service\\":\\"^9.0.1\\",\\"knifecycle\\":\\"^14.0.0\\",\\"openapi-schema-validator\\":\\"^12.0.0\\",\\"openapi-types\\":\\"^12.0.0\\",\\"strict-qs\\":\\"^7.0.0\\",\\"type-fest\\":\\"^2.13.1\\",\\"yerror\\":\\"^6.1.1\\",\\"yhttperror\\":\\"^6.1.1\\"},\\"devDependencies\\":{\\"@types/jest\\":\\"^28.1.1\\",\\"@typescript-eslint/eslint-plugin\\":\\"^5.27.0\\",\\"@typescript-eslint/parser\\":\\"^5.27.0\\",\\"axios\\":\\"^0.27.2\\",\\"chokidar\\":\\"^3.5.1\\",\\"esbuild\\":\\"^0.14.46\\",\\"esbuild-jest\\":\\"^0.5.0\\",\\"esbuild-node-externals\\":\\"^1.4.1\\",\\"eslint\\":\\"^8.17.0\\",\\"eslint-config-prettier\\":\\"^8.5.0\\",\\"eslint-plugin-prettier\\":\\"^4.0.0\\",\\"jest\\":\\"^28.1.0\\",\\"jsarch\\":\\"^5.0.1\\",\\"parse-gitignore\\":\\"^1.0.1\\",\\"prettier\\":\\"^2.6.2\\",\\"rimraf\\":\\"^3.0.2\\",\\"schema2dts\\":\\"^4.1.1\\",\\"ts-node\\":\\"^10.8.1\\",\\"typescript\\":\\"^4.7.3\\"},\\"eslintConfig\\":{\\"extends\\":[\\"eslint:recommended\\",\\"plugin:prettier/recommended\\",\\"plugin:@typescript-eslint/eslint-recommended\\",\\"plugin:@typescript-eslint/recommended\\"],\\"parserOptions\\":{\\"ecmaVersion\\":2018,\\"sourceType\\":\\"script\\",\\"modules\\":true},\\"env\\":{\\"es6\\":true,\\"node\\":true,\\"jest\\":true,\\"mocha\\":true},\\"plugins\\":[\\"prettier\\"],\\"rules\\":{\\"prettier/prettier\\":\\"error\\"},\\"parser\\":\\"@typescript-eslint/parser\\",\\"ignorePatterns\\":[\\"*.d.ts\\"]},\\"prettier\\":{\\"semi\\":true,\\"printWidth\\":80,\\"singleQuote\\":true,\\"trailingComma\\":\\"all\\",\\"proseWrap\\":\\"always\\"},\\"jest\\":{\\"coverageReporters\\":[\\"lcov\\",\\"html\\"],\\"testPathIgnorePatterns\\":[\\"/node_modules/\\"],\\"roots\\":[\\"<rootDir>/src\\"],\\"testEnvironment\\":\\"node\\",\\"transform\\":{\\"^.+\\\\\\\\.tsx?$\\":[\\"esbuild-jest\\",{\\"sourcemap\\":true,\\"format\\":\\"esm\\"}]},\\"moduleNameMapper\\":{\\"#(.*)\\":\\"<rootDir>/../../node_modules/$1\\",\\"(.+)\\\\\\\\.js\\":\\"$1\\"},\\"extensionsToTreatAsEsm\\":[\\".ts\\"]}}",
1024
+ "{
1025
+ "name": "super-project",
1026
+ "description": "A new Whook project",
1027
+ "version": "0.0.0",
1028
+ "license": "SEE LICENSE",
1029
+ "engines": {
1030
+ "node": ">=16.15.0"
1031
+ },
1032
+ "main": "dist/index.js",
1033
+ "types": "dist/index.d.ts",
1034
+ "type": "module",
1035
+ "private": true,
1036
+ "keywords": [
1037
+ "whook"
1038
+ ],
1039
+ "author": {
1040
+ "name": "Wayne Campbell",
1041
+ "email": "wayne@warner.com"
1042
+ },
1043
+ "scripts": {
1044
+ "apitypes": "npm run --silent whook -- generateOpenAPISchema --authenticated=true | npm run --silent whook -- generateOpenAPITypes > src/openAPISchema.d.ts",
1045
+ "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
1046
+ "build": "rimraf -f 'dist' && tsc --outDir dist",
1047
+ "cover": "npm run jest -- --coverage",
1048
+ "debug": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --inspect bin/dev",
1049
+ "dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/dev.js",
1050
+ "genPackagelock": "npm i --package-lock-only",
1051
+ "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
1052
+ "lint": "eslint 'src/**/*.ts'",
1053
+ "postbuild": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
1054
+ "prettier": "prettier --write 'src/**/*.ts'",
1055
+ "start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
1056
+ "test": "NODE_ENV=test npm run build && npm run jest",
1057
+ "watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --files bin/watch.js",
1058
+ "whook": "NODE_ENV=\${NODE_ENV:-development} whook",
1059
+ "whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/whook.js",
1060
+ "whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/repl.js"
1061
+ },
1062
+ "files": [
1063
+ "bin",
1064
+ "dist",
1065
+ "src",
1066
+ "LICENSE",
1067
+ "README.md",
1068
+ "CHANGELOG.md"
1069
+ ],
1070
+ "dependencies": {
1071
+ "@whook/authorization": "<current_version>",
1072
+ "@whook/cli": "<current_version>",
1073
+ "@whook/cors": "<current_version>",
1074
+ "@whook/http-router": "<current_version>",
1075
+ "@whook/http-server": "^10.0.2",
1076
+ "@whook/http-transaction": "<current_version>",
1077
+ "@whook/swagger-ui": "<current_version>",
1078
+ "@whook/whook": "<current_version>",
1079
+ "common-services": "^11.1.0",
1080
+ "http-auth-utils": "^3.0.3",
1081
+ "jwt-service": "^9.0.2",
1082
+ "knifecycle": "^14.1.0",
1083
+ "openapi-schema-validator": "^12.0.0",
1084
+ "openapi-types": "^12.0.2",
1085
+ "strict-qs": "^7.0.0",
1086
+ "type-fest": "^2.19.0",
1087
+ "yerror": "^6.1.1",
1088
+ "yhttperror": "^6.1.1"
1089
+ },
1090
+ "devDependencies": {
1091
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
1092
+ "@typescript-eslint/parser": "^5.36.0",
1093
+ "axios": "^0.27.2",
1094
+ "chokidar": "^3.5.1",
1095
+ "esbuild": "^0.15.6",
1096
+ "esbuild-jest": "^0.5.0",
1097
+ "esbuild-node-externals": "^1.5.0",
1098
+ "eslint": "^8.23.0",
1099
+ "eslint-config-prettier": "^8.5.0",
1100
+ "eslint-plugin-prettier": "^4.2.1",
1101
+ "jest": "^29.0.1",
1102
+ "jsarch": "^6.0.0",
1103
+ "parse-gitignore": "^1.0.1",
1104
+ "prettier": "^2.7.1",
1105
+ "rimraf": "^3.0.2",
1106
+ "schema2dts": "^4.1.1",
1107
+ "ts-node": "^10.8.1",
1108
+ "typescript": "^4.8.2"
1109
+ },
1110
+ "eslintConfig": {
1111
+ "extends": [
1112
+ "eslint:recommended",
1113
+ "plugin:prettier/recommended",
1114
+ "plugin:@typescript-eslint/eslint-recommended",
1115
+ "plugin:@typescript-eslint/recommended"
1116
+ ],
1117
+ "parserOptions": {
1118
+ "ecmaVersion": 2018,
1119
+ "sourceType": "script",
1120
+ "modules": true
1121
+ },
1122
+ "env": {
1123
+ "es6": true,
1124
+ "node": true,
1125
+ "jest": true,
1126
+ "mocha": true
1127
+ },
1128
+ "plugins": [
1129
+ "prettier"
1130
+ ],
1131
+ "rules": {
1132
+ "prettier/prettier": "error"
1133
+ },
1134
+ "parser": "@typescript-eslint/parser",
1135
+ "ignorePatterns": [
1136
+ "*.d.ts"
1137
+ ]
1138
+ },
1139
+ "prettier": {
1140
+ "semi": true,
1141
+ "printWidth": 80,
1142
+ "singleQuote": true,
1143
+ "trailingComma": "all",
1144
+ "proseWrap": "always"
1145
+ },
1146
+ "jest": {
1147
+ "coverageReporters": [
1148
+ "lcov",
1149
+ "html"
1150
+ ],
1151
+ "testPathIgnorePatterns": [
1152
+ "/node_modules/"
1153
+ ],
1154
+ "roots": [
1155
+ "<rootDir>/src"
1156
+ ],
1157
+ "testEnvironment": "node",
1158
+ "transform": {
1159
+ "^.+\\\\.tsx?$": [
1160
+ "esbuild-jest",
1161
+ {
1162
+ "sourcemap": true,
1163
+ "format": "esm"
1164
+ }
1165
+ ]
1166
+ },
1167
+ "moduleNameMapper": {
1168
+ "#(.*)": "<rootDir>/../../node_modules/$1",
1169
+ "(.+)\\\\.js": "$1"
1170
+ },
1171
+ "extensionsToTreatAsEsm": [
1172
+ ".ts"
1173
+ ]
1174
+ }
1175
+ }",
1176
+ ],
1177
+ [
1178
+ "/home/whoiam/projects/yolo/tsconfig.json",
1179
+ "{
1180
+ "compilerOptions": {
1181
+ "module": "Node16",
1182
+ "moduleResolution": "Node16",
1183
+ "target": "es2022",
1184
+ "noImplicitAny": false,
1185
+ "removeComments": false,
1186
+ "preserveConstEnums": true,
1187
+ "allowSyntheticDefaultImports": true,
1188
+ "esModuleInterop": true,
1189
+ "strict": true,
1190
+ "declaration": true,
1191
+ "outDir": "dist",
1192
+ "sourceMap": true
1193
+ },
1194
+ "include": [
1195
+ "src/**/*.ts"
1196
+ ],
1197
+ "exclude": [
1198
+ "node_modules"
1199
+ ]
1200
+ }",
497
1201
  ],
498
- Array [
1202
+ [
499
1203
  "/home/whoiam/projects/yolo/LICENSE",
500
1204
  "Copyright Wayne Campbell, all rights reserved.",
501
1205
  ],
502
- Array [
1206
+ [
503
1207
  "/home/whoiam/projects/yolo/.gitignore",
504
1208
  "node_modules",
505
1209
  ],