Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pnpm으로 마이그레이션을 진행합니다. #127

Merged
merged 5 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/giant-dolphins-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sopt-makers/ui': minor
---

ui 패키지 테스트 코드 추가 / pnpm 마이그레이션으로 인한 script 변경
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: 18

- name: Install Dependencies
run: yarn install
run: pnpm install

- name: Configure npm
run: |
Expand All @@ -36,8 +36,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: yarn changeset version
publish: yarn publish-packages
version: pnpm changeset version
publish: pnpm publish-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 2 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ build
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# local env files
.env
Expand All @@ -35,13 +36,4 @@ yarn-error.log*
# vercel
.vercel

dist/

# yarn berry
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
dist/
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
manage-package-manager-versions=true
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.4.1.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .yarnrc.yml

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"husky": "^8.0.0",
"lint-staged": "^15.2.9",
"prettier": "^3.0.3",
"tsconfig": "*",
"tsconfig": "workspace:*",
"turbo": "latest"
},
"lint-staged": {
Expand All @@ -24,11 +24,15 @@
},
"name": "makers-frontend",
"version": "1.0.0",
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"packages/*"
],
"engines": {
"node": ">=18",
"pnpm": ">=9"
},
"dependencies": {
"@changesets/cli": "^2.26.2"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"scripts": {
"test": "vitest",
"build": "yarn clean && tsup --format cjs,esm --dts --sourcemap && yarn buildCssModules",
"build": "pnpm clean && tsup --format cjs,esm --dts --sourcemap && pnpm buildCssModules",
"watch": "tsup --watch",
"clean": "rm -rf dist desktop-variables.css mobile-variables.css",
"buildCssModules": "node ./scripts/buildCssModules.js",
Expand All @@ -35,11 +35,11 @@
"@types/react-dom": "^18.2.0",
"@vanilla-extract/esbuild-plugin": "^2.3.5",
"@vanilla-extract/vite-plugin": "^4.0.15",
"eslint-config-custom": "*",
"eslint-config-custom": "workspace:*",
"jsdom": "^25.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsconfig": "*",
"tsconfig": "workspace:*",
"tsup": "^8.0.2",
"typescript": "^4.5.2",
"vitest": "^2.0.5"
Expand Down
Loading