Skip to content

Commit

Permalink
chore(root): updated and migrated the Yarn version to v4
Browse files Browse the repository at this point in the history
Q: Why not migrate to npm v10?
A: In the past, during the npm v7 days, I experienced various problems in
hoisting up. I tried this during the Yarn v4 transition, but I still have
this on hold due to difficulties with parallel execution of npm-scripts in
the workspace.

see: npm/rfcs#610
  • Loading branch information
kurone-kito committed Oct 29, 2023
1 parent 9bc8188 commit 88d5aed
Show file tree
Hide file tree
Showing 12 changed files with 1,865 additions and 3,945 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ $RECYCLE.BIN/
# yarn v2
.yarn/
yarn.lock
*.pro

### Others ###
LICENSE
52 changes: 0 additions & 52 deletions .yarn/plugins/@yarnpkg/plugin-constraints.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-engines.cjs

This file was deleted.

541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

This file was deleted.

550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.4.cjs

This file was deleted.

20 changes: 4 additions & 16 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
compressionLevel: mixed

enableGlobalCache: false

npmPublishAccess: public

npmScopes:
kurone-kito:
npmAuthToken: "${NPM_TOKEN:-invalid_token}"
npmRegistryServer: "https://registry.npmjs.com"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: "@yarnpkg/plugin-constraints"
- path: .yarn/plugins/@yarnpkg/plugin-engines.cjs
spec: "https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

pnpEnableEsmLoader: true

yarnPath: .yarn/releases/yarn-3.6.4.cjs
3 changes: 0 additions & 3 deletions constraints.pro

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"lint:prettier:check": "yarn run prettier -cu",
"lint:prettier:fix": "yarn run prettier -uw",
"prettier": "prettier --cache --log-level=warn \"$@\" \"./**/*\"",
"publish": "yarn workspaces foreach --no-private -t -j 1 npm publish",
"publish": "yarn workspaces foreach --no-private -tA -j 1 npm publish",
"start": "yarn run sub -j unlimited run start",
"sub": "yarn workspaces foreach --no-private -ipv",
"sub": "yarn workspaces foreach --no-private -ipvA",
"test": "yarn run lint"
},
"prettier": "@kurone-kito/prettier-config",
Expand Down Expand Up @@ -82,10 +82,9 @@
"typescript": "~5.2.2",
"typescript-eslint-language-service": "^5.0.5"
},
"packageManager": "yarn@3.6.4",
"packageManager": "yarn@4.0.1",
"engines": {
"node": ">=18",
"yarn": ">=2.4.3"
"node": ">=18"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 88d5aed

Please sign in to comment.