Skip to content

Commit

Permalink
chore: add postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Feb 6, 2024
1 parent f2d9b29 commit 4e73882
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
- run: pnpm install
working-directory: frontend/extension
- run: pnpm type-gen
working-directory: frontend/extension
- name: Run eslint check
run: pnpm lint
working-directory: frontend/extension
Expand All @@ -45,8 +43,6 @@ jobs:
cache-dependency-path: "frontend/extension/pnpm-lock.yaml"
- run: pnpm install
working-directory: frontend/extension
- run: pnpm type-gen
working-directory: frontend/extension
- name: Run extension build
run: pnpm build
working-directory: frontend/extension
4 changes: 0 additions & 4 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
- run: pnpm install
working-directory: frontend/web
- run: pnpm type-gen
working-directory: frontend/web
- name: Run eslint check
run: pnpm lint
working-directory: frontend/web
Expand All @@ -45,8 +43,6 @@ jobs:
cache-dependency-path: "frontend/web/pnpm-lock.yaml"
- run: pnpm install
working-directory: frontend/web
- run: pnpm type-gen
working-directory: frontend/web
- name: Run frontend build
run: pnpm build
working-directory: frontend/web
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY . .

WORKDIR /frontend-build/frontend/web

RUN corepack enable && pnpm i --frozen-lockfile && pnpm type-gen
RUN corepack enable && pnpm i --frozen-lockfile

RUN pnpm build

Expand Down
2 changes: 1 addition & 1 deletion frontend/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"package": "plasmo package",
"lint": "eslint --ext .js,.ts,.tsx, src",
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
"type-gen": "cd ../../proto && buf generate"
"postinstall": "cd ../../proto && buf generate"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"serve": "vite preview",
"lint": "eslint --ext .js,.ts,.tsx, src",
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix",
"type-gen": "cd ../../proto && buf generate"
"postinstall": "cd ../../proto && buf generate"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand Down

0 comments on commit 4e73882

Please sign in to comment.