-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure pnpm and remove phantom deps (#2665)
## What's the purpose of this pull request? - Configure pnpm - Remove yarn - Remove all phantom deps 👻
- Loading branch information
1 parent
47ad23d
commit 762ad0f
Showing
18 changed files
with
23,834 additions
and
19,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,26 +21,31 @@ jobs: | |
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.5 | ||
cache: 'pnpm' | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
run: pnpm i | ||
|
||
- name: Build | ||
run: yarn build | ||
run: pnpm build | ||
|
||
- name: Size | ||
run: yarn size | ||
run: pnpm size | ||
|
||
- name: Lint | ||
run: yarn lint | ||
run: pnpm lint | ||
|
||
- name: Test | ||
run: yarn test | ||
run: pnpm test | ||
|
||
- name: Publish to Chromatic | ||
uses: chromaui/action@latest | ||
|
@@ -64,6 +69,12 @@ jobs: | |
- name: Clone starter | ||
run: git clone https://github.com/vtex-sites/starter.store.git starter | ||
|
||
- name: Install specific Yarn version | ||
run: npm install -g [email protected] # https://github.com/yarnpkg/yarn/issues/9015 | ||
|
||
- name: Verify Yarn version | ||
run: yarn --version | ||
|
||
- name: Install the packages on starter | ||
run: | | ||
cd starter | ||
|
@@ -74,7 +85,7 @@ jobs: | |
- name: Install dependencies in starter | ||
run: | | ||
cd starter | ||
yarn install --frozen-lockfile | ||
yarn install | ||
- name: Build starter | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,16 @@ jobs: | |
token: ${{ secrets.VTEX_GITHUB_BOT_TOKEN }} | ||
fetch-depth: 2 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.5 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache: 'pnpm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Configure CI Git User | ||
|
@@ -36,22 +41,22 @@ jobs: | |
git config user.email [email protected] | ||
- name: Install dependencies | ||
run: yarn | ||
run: pnpm i | ||
|
||
- name: Build | ||
run: yarn build | ||
run: pnpm build | ||
|
||
- name: Size | ||
run: yarn size | ||
run: pnpm size | ||
|
||
- name: Lint | ||
run: yarn lint | ||
run: pnpm lint | ||
|
||
- name: Test | ||
run: yarn test | ||
run: pnpm test | ||
|
||
- name: Publish | ||
run: yarn release | ||
run: pnpm release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
yarn install | ||
yarn lint-staged | ||
pnpm i | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
link-workspace-packages=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"build": "turbo run build --log-order=grouped", | ||
"dev": "turbo run dev --parallel --no-cache", | ||
"lint": "biome check .", | ||
|
@@ -17,9 +18,6 @@ | |
"clean": "turbo run clean && rm -rf node_modules", | ||
"prepare": "husky" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"husky": "9.1.7", | ||
|
@@ -38,12 +36,12 @@ | |
"version": "0.0.0", | ||
"volta": { | ||
"node": "18.19.0", | ||
"yarn": "1.22.22" | ||
"pnpm": "9.15.5" | ||
}, | ||
"dependencies": {}, | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"lint-staged": { | ||
"*.{ts,js,tsx,jsx,json}": "yarn lint:fix", | ||
"*.{ts,js,tsx,jsx,json}": "pnpm lint:fix", | ||
"*.scss": "stylelint --fix" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,8 @@ | |
"scripts": { | ||
"dev": "tsc --watch", | ||
"build": "tsc" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.