Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit cd3c205

Browse files
why build it twice
1 parent 69f99db commit cd3c205

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY . .
2020

2121
COPY --from=version /src/.version ./
2222

23-
RUN REACT_APP_CLIENT_VERSION=$(cat .version) yarn build && \
23+
RUN REACT_APP_CLIENT_VERSION=$(cat .version) \
2424
yarn build:dist && \
2525
yarn cache clean
2626

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"scripts": {
66
"analyze": "source-map-explorer build/static/js/main.*",
77
"start": "react-scripts-ts start",
8-
"build": "prettier --list-different \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./ && react-scripts-ts build",
9-
"build:dist": "rm -rf dist && tsc --project tsconfig.publish.json && cp src/index.d.ts ./dist",
8+
"build": "yarn lint && react-scripts-ts build",
9+
"build:dist": "rm -rf dist && yarn lint && tsc --project tsconfig.publish.json && cp src/index.d.ts ./dist",
1010
"eject": "react-scripts-ts eject",
11-
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./ --fix"
11+
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./ --fix",
12+
"lint": "prettier --list-different \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./"
1213
},
1314
"main": "dist/index.js",
1415
"types": "dist/index.d.ts",
@@ -63,7 +64,7 @@
6364
"uri-template": "1.0.1",
6465
"uuid": "3.3.2"
6566
},
66-
"author": "thefringeninja <joao.paul@braganca.name>",
67+
"author": "thefringeninja",
6768
"license": "MIT",
6869
"browserslist": [
6970
">0.2%",

0 commit comments

Comments
 (0)