Skip to content

Commit

Permalink
refactor(build): move most of the code to ESM
Browse files Browse the repository at this point in the history
Some things still needs to be fixed like Jest and AWS Lambda/CGP builds to use ESM too.

BREAKING CHANGE: Will require Node 20 since it relies on its ESM support. Also, the `PROJECT_SRC`
constant is removed and the `INITIALIZER_PATHS_MAP` constant is now supposed to have well designed
paths in it.

#102
  • Loading branch information
nfroidure committed Feb 27, 2024
1 parent 14c71ba commit ae80d51
Show file tree
Hide file tree
Showing 65 changed files with 3,883 additions and 2,338 deletions.
632 changes: 580 additions & 52 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/whook-authorization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ And finally declare this plugin in the `src/index.ts` file

$.register(
constant('WHOOK_PLUGINS', [
'@whook/whook',
...WHOOK_DEFAULT_PLUGINS,
'@whook/cors',
+ '@whook/authorization',
]),
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-authorization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"homepage": "https://github.com/nfroidure/whook",
"dependencies": {
"@whook/whook": "^15.0.0",
"common-services": "^15.1.0",
"common-services": "^16.0.1",
"http-auth-utils": "^6.0.0",
"knifecycle": "^17.0.1",
"yerror": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Add the plugin to the `src/index.ts` main file:

$.register(
constant('WHOOK_PLUGINS', [
'@whook/whook',
...WHOOK_DEFAULT_PLUGINS,
+ '@whook/aws-lambda',
'@whook/cors',
]),
Expand Down
4 changes: 2 additions & 2 deletions packages/whook-aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"@whook/whook": "^15.0.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"application-services": "^5.0.1",
"application-services": "^6.0.0",
"bytes": "^3.1.2",
"camelcase": "^8.0.0",
"common-services": "^15.1.0",
"common-services": "^16.0.1",
"cpr": "3.0.1",
"knifecycle": "^17.0.1",
"mkdirp": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-aws-lambda/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export type {
export const DEFAULT_BUILD_PARALLELISM = 10;
export const DEFAULT_BUILD_INITIALIZER_PATH_MAP = {
...BASE_DEFAULT_BUILD_INITIALIZER_PATH_MAP,
log: '@whook/aws-lambda/dist/services/log',
log: '@whook/aws-lambda/dist/services/log.js',
};

export type WhookAWSLambdaBuildConfig = {
Expand Down
10 changes: 3 additions & 7 deletions packages/whook-aws-lambda/src/services/_autoload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import type {
Service,
ServiceInitializerWrapper,
} from 'knifecycle';
import type { LogService, ResolveService } from 'common-services';
import type { LogService } from 'common-services';
import type { OpenAPIV3 } from 'openapi-types';
import type {
WhookAPIOperationAWSLambdaConfig,
Expand All @@ -42,7 +42,6 @@ export type WhookAWSLambdaAutoloadDependencies = {
BUILD_CONSTANTS?: WhookBuildConstantsService;
$injector: Injector<Service>;
$instance: Knifecycle;
resolve: ResolveService;
log?: LogService;
};

Expand Down Expand Up @@ -91,7 +90,6 @@ const initializerWrapper: ServiceInitializerWrapper<
BUILD_CONSTANTS = {},
$injector,
$instance,
resolve,
log = noop,
}: WhookAWSLambdaAutoloadDependencies,
$autoload: Autoloader<Initializer<Dependencies, Service>>,
Expand Down Expand Up @@ -228,9 +226,7 @@ const initializerWrapper: ServiceInitializerWrapper<
],
AWS_WRAPPERS[type].initializer as any,
) as any,
path: resolve(
`@whook/aws-lambda/dist/wrappers/${AWS_WRAPPERS[type].name}`,
),
path: `@whook/aws-lambda/dist/wrappers/${AWS_WRAPPERS[type].name}.js`,
};
}

Expand All @@ -255,7 +251,7 @@ const initializerWrapper: ServiceInitializerWrapper<
],
initHandler,
) as any,
path: resolve('@whook/aws-lambda/dist/services/HANDLER'),
path: '@whook/aws-lambda/dist/services/HANDLER.js',
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/whook-cors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Declare it in the `src/index.ts` file of your project:

$.register(
constant('WHOOK_PLUGINS', [
'@whook/whook',
...WHOOK_DEFAULT_PLUGINS,
+ '@whook/cors',
'@whook/authorization',
]),
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dependencies": {
"@whook/example": "^15.0.0",
"axios": "^1.6.7",
"common-services": "^15.1.0",
"common-services": "^16.0.1",
"debug": "^4.3.4",
"fs-extra": "^11.2.0",
"inquirer": "^9.2.15",
Expand Down
18 changes: 7 additions & 11 deletions packages/whook-create/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import { Knifecycle, constant } from 'knifecycle';
import { exec as _exec } from 'child_process';
import { default as fsExtra } from 'fs-extra';
import debug from 'debug';
import path from 'path';
import { join, resolve, dirname } from 'node:path';
import inquirer from 'inquirer';
import { createRequire } from 'module';
import {
initLogService,
initLockService,
initDelayService,
} from 'common-services';
import { initLog, initLock, initDelay } from 'common-services';
import initAuthor from './services/author.js';
import initProject from './services/project.js';
import initCreateWhook from './services/createWhook.js';
Expand All @@ -32,7 +28,7 @@ export async function runCreateWhook(): Promise<void> {

// TODO: Use import.meta when Jest will support it
const require = createRequire(
import.meta.url || path.join(cwd(), 'src', 'services', 'API.test.ts'),
import.meta.url || join(cwd(), 'src', 'services', 'API.test.ts'),
);

$.register(constant('CWD', cwd()));
Expand All @@ -45,7 +41,7 @@ export async function runCreateWhook(): Promise<void> {
$.register(
constant(
'SOURCE_DIR',
path.resolve(path.dirname(require.resolve('@whook/example')), '..'),
resolve(dirname(require.resolve('@whook/example')), '..'),
),
);
$.register(
Expand All @@ -55,9 +51,9 @@ export async function runCreateWhook(): Promise<void> {
debug: debug('whook'),
} as Logger),
);
$.register(initLogService);
$.register(initLockService);
$.register(initDelayService);
$.register(initLog);
$.register(initLock);
$.register(initDelay);
$.register(initAuthor);
$.register(initProject);
$.register(initCreateWhook);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,22 @@ DEV_MODE=1
"architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
"build": "rimraf 'dist' && tsc --outDir dist",
"cover": "npm run jest -- --coverage",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --logError bin/dev",
"dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/dev.js",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
"format": "npm run prettier",
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
"lint": "eslint 'src/**/*.ts'",
"postbuild": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
"prettier": "prettier --write 'src/**/*.ts'",
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
"start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"test": "NODE_ENV=test npm run build && npm run jest",
"type-check": "tsc --pretty --noEmit",
"watch": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/watch.js",
"whook": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} ts-node --esm --logError --files -- bin/whook.js",
"whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/whook.js",
"whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/repl.js"
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
"whook": "NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
"whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js"
},
"files": [
"bin",
Expand All @@ -143,8 +143,8 @@ DEV_MODE=1
"@whook/http-transaction": "<current_version>",
"@whook/swagger-ui": "<current_version>",
"@whook/whook": "<current_version>",
"application-services": "^5.0.1",
"common-services": "^15.1.0",
"application-services": "^6.0.0",
"common-services": "^16.0.1",
"http-auth-utils": "^6.0.0",
"jwt-service": "^10.0.4",
"knifecycle": "^17.0.1",
Expand Down Expand Up @@ -174,7 +174,7 @@ DEV_MODE=1
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"schema2dts": "^5.3.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.1",
"typescript": "^5.2.2"
},
"eslintConfig": {
Expand Down Expand Up @@ -450,22 +450,22 @@ DEV_MODE=1
"architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
"build": "rimraf 'dist' && tsc --outDir dist",
"cover": "npm run jest -- --coverage",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --logError bin/dev",
"dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/dev.js",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
"format": "npm run prettier",
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
"lint": "eslint 'src/**/*.ts'",
"postbuild": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
"prettier": "prettier --write 'src/**/*.ts'",
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
"start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"test": "NODE_ENV=test npm run build && npm run jest",
"type-check": "tsc --pretty --noEmit",
"watch": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/watch.js",
"whook": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} ts-node --esm --logError --files -- bin/whook.js",
"whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/whook.js",
"whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/repl.js"
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
"whook": "NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
"whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js"
},
"files": [
"bin",
Expand All @@ -483,8 +483,8 @@ DEV_MODE=1
"@whook/http-transaction": "<current_version>",
"@whook/swagger-ui": "<current_version>",
"@whook/whook": "<current_version>",
"application-services": "^5.0.1",
"common-services": "^15.1.0",
"application-services": "^6.0.0",
"common-services": "^16.0.1",
"http-auth-utils": "^6.0.0",
"jwt-service": "^10.0.4",
"knifecycle": "^17.0.1",
Expand Down Expand Up @@ -514,7 +514,7 @@ DEV_MODE=1
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"schema2dts": "^5.3.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.1",
"typescript": "^5.2.2"
},
"eslintConfig": {
Expand Down Expand Up @@ -822,22 +822,22 @@ DEV_MODE=1
"architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
"build": "rimraf 'dist' && tsc --outDir dist",
"cover": "npm run jest -- --coverage",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --logError bin/dev",
"dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/dev.js",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
"format": "npm run prettier",
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
"lint": "eslint 'src/**/*.ts'",
"postbuild": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
"prettier": "prettier --write 'src/**/*.ts'",
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
"start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"test": "NODE_ENV=test npm run build && npm run jest",
"type-check": "tsc --pretty --noEmit",
"watch": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/watch.js",
"whook": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} ts-node --esm --logError --files -- bin/whook.js",
"whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/whook.js",
"whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/repl.js"
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
"whook": "NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
"whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js"
},
"files": [
"bin",
Expand All @@ -855,8 +855,8 @@ DEV_MODE=1
"@whook/http-transaction": "<current_version>",
"@whook/swagger-ui": "<current_version>",
"@whook/whook": "<current_version>",
"application-services": "^5.0.1",
"common-services": "^15.1.0",
"application-services": "^6.0.0",
"common-services": "^16.0.1",
"http-auth-utils": "^6.0.0",
"jwt-service": "^10.0.4",
"knifecycle": "^17.0.1",
Expand Down Expand Up @@ -886,7 +886,7 @@ DEV_MODE=1
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"schema2dts": "^5.3.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.1",
"typescript": "^5.2.2"
},
"eslintConfig": {
Expand Down Expand Up @@ -1177,22 +1177,22 @@ DEV_MODE=1
"architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
"build": "rimraf 'dist' && tsc --outDir dist",
"cover": "npm run jest -- --coverage",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} ts-node --esm --logError bin/dev",
"dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/dev.js",
"debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 DEBUG=\${DEBUG:-whook} tsx bin/dev",
"dev": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/dev.js",
"format": "npm run prettier",
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
"lint": "eslint 'src/**/*.ts'",
"postbuild": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --files -- bin/build.js",
"postbuild": "NODE_ENV=\${NODE_ENV:-development} tsx bin/build.js",
"prettier": "prettier --write 'src/**/*.ts'",
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
"start": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"start": "NODE_ENV=\${NODE_ENV:-development} node bin/start.js",
"test": "NODE_ENV=test npm run build && npm run jest",
"type-check": "tsc --pretty --noEmit",
"watch": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 ts-node --esm --logError --files bin/watch.js",
"whook": "PROJECT_SRC=\\"$PWD/dist\\" NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} ts-node --esm --logError --files -- bin/whook.js",
"whook-dev": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/whook.js",
"whook-repl": "PROJECT_SRC=\\"$PWD/src\\" NODE_ENV=\${NODE_ENV:-development} ts-node --esm --logError --files -- bin/repl.js"
"watch": "NODE_ENV=\${NODE_ENV:-development} DEV_MODE=1 DESTROY_SOCKETS=1 tsx bin/watch.js",
"whook": "NODE_ENV=\${NODE_ENV:-development} whook",
"whook-debug": "NODE_OPTIONS=\${NODE_OPTIONS:-'--inspect'} NODE_ENV=\${NODE_ENV:-development} DEBUG=\${DEBUG:-whook} tsx bin/whook.js",
"whook-dev": "NODE_ENV=\${NODE_ENV:-development} tsx bin/whook.js",
"repl": "NODE_ENV=\${NODE_ENV:-development} tsx bin/repl.js"
},
"files": [
"bin",
Expand All @@ -1210,8 +1210,8 @@ DEV_MODE=1
"@whook/http-transaction": "<current_version>",
"@whook/swagger-ui": "<current_version>",
"@whook/whook": "<current_version>",
"application-services": "^5.0.1",
"common-services": "^15.1.0",
"application-services": "^6.0.0",
"common-services": "^16.0.1",
"http-auth-utils": "^6.0.0",
"jwt-service": "^10.0.4",
"knifecycle": "^17.0.1",
Expand Down Expand Up @@ -1241,7 +1241,7 @@ DEV_MODE=1
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"schema2dts": "^5.3.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.1",
"typescript": "^5.2.2"
},
"eslintConfig": {
Expand Down
Loading

0 comments on commit ae80d51

Please sign in to comment.