Skip to content

Commit 53e0ffa

Browse files
committed
run lint before build
1 parent 8d33cec commit 53e0ffa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ WORKDIR /app
1515
COPY . .
1616
RUN npm install pnpm -g
1717
RUN pnpm install
18+
RUN pnpm run lint
1819
RUN pnpm run build
1920
RUN chmod +x appStartUp.sh
2021
CMD ./appStartUp.sh

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"start:dev": "nest start --watch",
1313
"start:debug": "nest start --debug --watch",
1414
"start:prod": "node dist/src/main",
15-
"lint": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\" --fix",
15+
"lint": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\"",
16+
"lint:fix": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\" --fix",
1617
"test": "jest",
1718
"test:watch": "jest --watch",
1819
"test:cov": "jest --coverage",

0 commit comments

Comments
 (0)