Skip to content

Commit

Permalink
chore: pnpm으로 마이그레이션을 진행합니다. (#127)
Browse files Browse the repository at this point in the history
* chore: yarn berry 관련 파일 제거

* chore: pnpm 마이그레이션

* chore: pnpm이 로컬 워크스페이스 패키지 찾아 사용하도록 수정

* chore: lockfile 버전 충돌 가능성으로 인해 engine 옵션에 node 최소 버전 명시

* chore: add changeset
  • Loading branch information
jungwoo3490 authored Sep 13, 2024
1 parent 0723d92 commit 30fc469
Show file tree
Hide file tree
Showing 12 changed files with 15,236 additions and 17,883 deletions.
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": "yarn@4.4.1",
"packageManager": "pnpm@9.7.0",
"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

0 comments on commit 30fc469

Please sign in to comment.