Skip to content

Commit

Permalink
build: migrate to yarn v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 4, 2024
1 parent 68ae060 commit b63bedc
Show file tree
Hide file tree
Showing 6 changed files with 16,794 additions and 12,334 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.*cache
tmp*
.type-coverage
.yarn/*
!.yarn/plugins
coverage
lib
node_modules
1 change: 1 addition & 0 deletions .yarn/plugins/plugin-prepare-lifecycle.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nodeLinker: node-modules

plugins:
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ You can try it with running `yarn benchmark` by yourself. [Here](./benchmarks/be

## Backers

[![Backers](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)

| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
Expand Down
25 changes: 16 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"funding": "https://opencollective.com/unts",
"license": "MIT",
"packageManager": "yarn@1.22.21",
"packageManager": "yarn@4.0.2",
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
Expand All @@ -34,19 +34,19 @@
"synckit"
],
"scripts": {
"benchmark": "run-s benchmark:*",
"benchmark-export": "run-s benchmark-export:*",
"benchmark": "concurrently -m 1 'yarn:benchmark:*'",
"benchmark-export": "concurrently -m 1 'yarn:benchmark-export:*'",
"benchmark-export:cjs": "yarn benchmark:cjs > benchmarks/benchmark.cjs.txt",
"benchmark-export:esm": "yarn benchmark:esm> benchmarks/benchmark.esm.txt",
"benchmark:cjs": "node benchmarks/benchmark.cjs",
"benchmark:esm": "node benchmarks/benchmark.js",
"build": "run-p build:*",
"build": "concurrently 'yarn:build:*'",
"build:r": "r -f cjs",
"build:ts": "tsc -p src",
"lint": "run-p lint:*",
"lint": "concurrently 'yarn:lint:*'",
"lint:es": "eslint . --cache -f friendly --max-warnings 10",
"lint:tsc": "tsc --noEmit",
"prepare": "patch-package && simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
"prepare": "patch-package && simple-git-hooks",
"release": "clean-pkg-json && changeset publish",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"typecov": "type-coverage"
Expand All @@ -56,29 +56,36 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@1stg/lib-config": "^13.0.0",
"@1stg/common-config": "^10.0.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^18.4.3",
"@pkgr/rollup": "^5.0.0",
"@swc-node/register": "^1.6.8",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"clean-pkg-json": "^1.2.0",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"deasync": "^0.1.29",
"esbuild-register": "^3.5.0",
"esbuild-runner": "^2.2.2",
"eslint": "^8.56.0",
"execa": "^8.0.1",
"jest": "^29.7.0",
"lint-staged": "^15.2.0",
"node-gyp": "^10.0.1",
"patch-package": "^8.0.0",
"prettier": "^3.1.1",
"simple-git-hooks": "^2.9.0",
"sync-threads": "^1.0.1",
"synckit": "link:.",
"ts-expect": "^1.3.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
"type-coverage": "^2.27.1",
"typescript": "^5.3.3",
"yarn-deduplicate": "^6.0.2"
"typescript": "^5.3.3"
},
"resolutions": {
"prettier": "^3.1.1",
Expand Down
Loading

0 comments on commit b63bedc

Please sign in to comment.