Skip to content

Commit 1b4ed55

Browse files
authored
chore: migrate to yarn 3 (#20)
* chore: start yarn 3 migration * convert lockfile * add plugins and finish setup
1 parent f7b8528 commit 1b4ed55

File tree

6 files changed

+5474
-2679
lines changed

6 files changed

+5474
-2679
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ dist/
77
*.iml
88

99
.DS_Store
10+
11+
# Yarn
12+
.pnp.*
13+
.yarn/*
14+
!.yarn/patches
15+
!.yarn/plugins
16+
!.yarn/releases
17+
!.yarn/sdks
18+
!.yarn/versions

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.2.4.cjs

Lines changed: 801 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5+
spec: "@yarnpkg/plugin-interactive-tools"
6+
7+
yarnPath: .yarn/releases/yarn-3.2.4.cjs

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"dist/"
1010
],
1111
"scripts": {
12-
"prepublish": "rm -rf dist && yarn build",
13-
"build": "tsc && tsc --module commonjs --outDir dist/cjs",
12+
"prepack": "yarn build",
13+
"clean": "rm -rf dist",
14+
"build": "yarn tsc && yarn tsc --module commonjs --outDir dist/cjs",
1415
"test": "echo \"Error: no test specified\" && exit 1",
15-
"start": "parcel test/test.html --port 3000 --host 0.0.0.0",
16-
"type-check": "tsc --noEmit",
17-
"lint": "eslint --config ./.eslintrc.js --ext .js,.ts src/"
16+
"start": "yarn parcel test/test.html --port 3000 --host 0.0.0.0",
17+
"type-check": "yarn tsc --noEmit",
18+
"lint": "yarn eslint --config ./.eslintrc.js --ext .js,.ts src/"
1819
},
1920
"repository": {
2021
"type": "git",
@@ -47,11 +48,9 @@
4748
"prettier-eslint": "^15.0.1",
4849
"typescript": "^4.8.4"
4950
},
50-
"peerDependencies": {
51-
"@enginehub/schematicjs": "^0.7.0"
52-
},
5351
"browserslist": [
5452
"last 1 Chrome version"
5553
],
56-
"sideEffects": false
54+
"sideEffects": false,
55+
"packageManager": "[email protected]"
5756
}

0 commit comments

Comments
 (0)