Skip to content

Commit c316f1b

Browse files
committed
Refactor package.json and turbo.json to add debug start scripts; remove unused test scripts
1 parent fac1bd6 commit c316f1b

File tree

6 files changed

+7
-17
lines changed

6 files changed

+7
-17
lines changed

apps/api/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"start:prod": "node dist/main",
1212
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
1313
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
14-
"test": "jest --detectOpenHandles",
15-
"test:watch": "jest --watchAll --detectOpenHandles",
16-
"test:cov": "jest --coverage --detectOpenHandles",
17-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
18-
"test:e2e": "jest --config ./test/jest-e2e.json",
1914
"console": "node dist/console"
2015
},
2116
"dependencies": {

apps/api/src/main.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ import { useContainer } from 'class-validator';
1616

1717
declare const module: any;
1818
(async (): Promise<void> => {
19-
// console.log('process.env.NODE_ENV',
20-
// // filter startwith SESAME_
21-
// Object.keys(process.env).filter((key) => key.startsWith('SESAME_')).reduce((obj: any, key) => {
22-
// obj[key] = process.env[key];
23-
// return obj;
24-
// }, {})
25-
// );
2619
const cfg = configInstance();
2720
const logger = new InternalLogger({
2821
logLevel: getLogLevel(cfg?.application?.logLevel),
@@ -45,6 +38,7 @@ declare const module: any;
4538

4639
const server = express();
4740
const app = await NestFactory.create<NestExpressApplication>(AppModule, new ExpressAdapter(server), {
41+
snapshot: true,
4842
bodyParser: false,
4943
rawBody: true,
5044
cors: true,

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"build": "nuxt build",
88
"start:dev": "nuxt dev",
9+
"start:debug": "nuxt dev --inspect=0.0.0.0",
910
"generate": "nuxt generate",
1011
"preview": "nuxt preview",
1112
"postinstall": "nuxt prepare",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"build": "turbo run build",
3434
"start:dev": "turbo run start:dev",
3535
"start:prod": "turbo run start:prod",
36+
"start:debug": "turbo run start:debug",
3637
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
3738
"lint": "turbo run lint"
3839
},

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
"cache": false,
2525
"persistent": true
2626
},
27+
"start:debug": {
28+
"cache": false,
29+
"persistent": true
30+
},
2731
"lint": {}
2832
}
2933
}

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9019,11 +9019,6 @@ human-signals@^8.0.1:
90199019
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-8.0.1.tgz#f08bb593b6d1db353933d06156cedec90abe51fb"
90209020
integrity sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==
90219021

9022-
husky@^9.0.11:
9023-
version "9.1.7"
9024-
resolved "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz"
9025-
integrity sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==
9026-
90279022
hyperdyperid@^1.2.0:
90289023
version "1.2.0"
90299024
resolved "https://registry.yarnpkg.com/hyperdyperid/-/hyperdyperid-1.2.0.tgz#59668d323ada92228d2a869d3e474d5a33b69e6b"

0 commit comments

Comments
 (0)