Skip to content

Commit

Permalink
feat(ALL): migrated the workspaces environment from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Aug 4, 2024
1 parent d1a98e6 commit a2e28ec
Show file tree
Hide file tree
Showing 41 changed files with 5,745 additions and 8,052 deletions.
2 changes: 0 additions & 2 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ language: en
reviews:
auto_review:
enabled: true
path_filters:
- '!.yarn/**/*'
27 changes: 3 additions & 24 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Created by https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# Edit at https://www.toptal.com/developers/gitignore?templates=images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# Created by https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=images,linux,macos,node,sublimetext,vim,visualstudiocode,windows

### Images ###
# JPEG
Expand Down Expand Up @@ -352,35 +352,14 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

### yarn ###
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored

.yarn/*
!.yarn/releases
!.yarn/patches
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

# if you are NOT using Zero-installs, then:
# comment the following lines
# !.yarn/cache

# and uncomment the following lines
.pnp.*

# End of https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# End of https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows

### THE PROJECT SPECIFIES #################################################

### Node ###
# JSON
*.json

# yarn v2
.yarn/
yarn.lock

### Text ###
*.md
LICENSE
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/.yarn/** linguist-vendored

.coderabbit.yaml export-ignore
.github/** export-ignore
.gitattributes export-ignore
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable the corepack because of the Yarn berry
- name: Enable the corepack
run: corepack enable
- name: Post-prepare the Node.js version ${{ matrix.node-version }} environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'yarn' || '' }}
cache: ${{ !env.ACT && 'pnpm' || '' }}
node-version: ${{ matrix.node-version }}
- env:
HUSKY: 0
name: Install the dependencies
run: yarn install --inline-builds
run: corepack up
- name: Run the build
run: yarn run build
run: pnpm run build
- name: Run the tests
run: yarn run test
run: pnpm run test
strategy:
matrix:
node-version:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Enable the corepack because of the Yarn berry
- name: Enable the corepack
run: corepack enable
- name: Post-prepare the Node.js environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'yarn' || '' }}
cache: ${{ !env.ACT && 'pnpm' || '' }}
node-version-file: .node-version
- env:
HUSKY: 0
name: Install the dependencies
run: yarn install --inline-builds
run: corepack up
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Publish the packages
run: yarn run publish
run: pnpm run publish
23 changes: 3 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,node,sublimetext,vim,visualstudiocode,windows

### Linux ###
*~
Expand Down Expand Up @@ -287,24 +287,7 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

### yarn ###
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored

.yarn/*
!.yarn/releases
!.yarn/patches
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

# if you are NOT using Zero-installs, then:
# comment the following lines
# !.yarn/cache

# and uncomment the following lines
.pnp.*

# End of https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn
# End of https://www.toptal.com/developers/gitignore/api/linux,macos,node,sublimetext,vim,visualstudiocode,windows

### THE PROJECT SPECIFIES #################################################

Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# -*- mode: sh -*-
# vim: set ft=sh :

yarn exec commitlint --edit "${1}"
pnpm exec commitlint -e "${1}"
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if [ ! -e packages/prettier-config/.prettierrc.json ]; then
corepack enable
corepack up
yarn run build
pnpm run build
fi

yarn exec lint-staged
pnpm exec lint-staged
2 changes: 1 addition & 1 deletion .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extends: './packages/markdownlint-config/.markdownlint.yml'
extends: '@kurone-kito/markdownlint-config'
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
if-present=true
5 changes: 2 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
# Ignorefiles
.*ignore

# Yarn v2
.yarn
yarn.lock
# pnpm
pnpm-lock.yaml
6 changes: 0 additions & 6 deletions .vim/coc-settings.json

This file was deleted.

15 changes: 3 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
".eslintrc*": ".eslintignore",
".gitattributes": ".gitignore",
".markdownlint.*": ".markdownlint-cli2.*",
".pnp.loader.mjs": ".pnp.cjs",
".tool-versions": ".node-version, .nvmrc",
"package.json": ".yarnrc.yml, yarn.lock",
"package.json": ".npmrc, pnpm-lock.yaml, pnpm-workspace.yaml",
"tsconfig.json": "${capture}.tsbuildinfo"
},
"eslint.nodePath": ".yarn/sdks",
"eslint.workingDirectories": [
{
"mode": "auto"
Expand All @@ -24,21 +22,14 @@
"LICENSE": "plaintext"
},
"files.watcherExclude": {
"**/.eslintcache": true,
"**/.pnp.*": true,
"**/.yarn/cache/**": true,
"**/.yarn/unplugged/**": true,
"**/node_modules/**/*": true,
"**/packages/**/*.tsbuildinfo": true
},
"git.branchProtection": ["main"],
"npm.packageManager": "yarn",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"search.exclude": {
"**/.pnp.*": true,
"**/.yarn": true
"**/node_modules/**/*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"yaml.schemas": {
"https://coderabbit.ai/integrations/coderabbit-overrides.v2.json": [
".coderabbit.yaml"
Expand Down
32 changes: 0 additions & 32 deletions .yarn/sdks/eslint/bin/eslint.js

This file was deleted.

32 changes: 0 additions & 32 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

32 changes: 0 additions & 32 deletions .yarn/sdks/eslint/lib/unsupported-api.js

This file was deleted.

14 changes: 0 additions & 14 deletions .yarn/sdks/eslint/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/integrations.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .yarn/sdks/prettier/bin/prettier.cjs

This file was deleted.

Loading

0 comments on commit a2e28ec

Please sign in to comment.