Skip to content

Commit

Permalink
Merge pull request #2 from GDSC-Hongik/feature/preinstall-build
Browse files Browse the repository at this point in the history
루트 폴더에서 pnpm install을 진행할 시 의존 패키지에 대한 빌드파일을 참조할 수 있도록 해요.
  • Loading branch information
eugene028 authored May 6, 2024
2 parents 7bce60c + 253cbe7 commit 6c276fe
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 9 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
"private": true,
"scripts": {
"build": "turbo build",
"tokens:build": "turbo run build --filter=@gdsc-hongik/wow-tokens",
"ui:build": "turbo run build --filter=@gdsc-hongik/wow-ui",
"icons:build": "turbo run build --filter=@gdsc-hongik/wow-icons",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"prerelease": "pnpm changeset version",
"release": "pnpm publish -r --no-git-checks"
"release": "pnpm publish -r --no-git-checks",
"preinstall": "turbo run build"
},
"devDependencies": {
"@changesets/changelog-git": "^0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/wow-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"keywords": [],
"author": "",
"license": "ISC"
}
}
2 changes: 0 additions & 2 deletions packages/wow-ui/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use client";

import { ReactNode } from "react";
import { css } from "@styled-system/css/css";

Expand Down
88 changes: 87 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
},
"lint": {
"dependsOn": ["^lint"]
},
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "./dist/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"deploy": {
"dependsOn": ["build", "test", "lint"]
}
}
}

0 comments on commit 6c276fe

Please sign in to comment.