1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 19:01:54 +02:00

Migrate yarn to berry v3 (#4417)

* Migrate to yarn berry v3

* Fix yarn dependencies for linting

* Specifically invoke bash in yarn clean to make brace expansion work

* Upgrade cypress to 8.x to support yarn berry

* Try out yarn berry workaround for netlify

From https://answers.netlify.com/t/using-the-new-yarn-release-2-0-0-berry/8270

* Update .yarnrc.yml for syntax consistency

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>

* use rimraf for clean command with escaped glob pattern

* Use workspace:* resolution for workspace packages and rewrite yarn.lock

* set workspace package versions explicit again

* update peer dependencies

* disable import/named for ts and tsx files

* Replace 'key' with 'key=true' wherever babel complains

* replace all instances of key to someKey in tests to satisfy eslint and babel

* remove unnecessary yarn packageExtension and remove cross-env dependency

* upgrade yarn to latest

* Upgrade next.js to 10.x to support yarn berry

* update .yarnrc to satisfy netlify

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
Bryan Haakman
2021-08-28 13:59:10 +02:00
committed by GitHub
parent c1433f56cf
commit 8eb1abac87
34 changed files with 16053 additions and 11560 deletions

View File

@@ -8,7 +8,7 @@
"build": "yarn build:rollup && yarn build:next",
"build:next": "cd ./site && next build && next export",
"build:rollup": "rollup --config ./config/rollup/rollup.config.js",
"clean": "rimraf ./node_modules ./packages/*/{dist,lib,node_modules} ./site/{.next,out}",
"clean": "rimraf './packages/*/{dist,lib,node_modules}' './site/{.next,out}'",
"fix": "yarn fix:prettier && yarn fix:eslint",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write",
@@ -17,7 +17,7 @@
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"lint:typescript": "tsc --build ./ --force",
"open": "open http://localhost:3000",
"prerelease": "cross-env NODE_ENV=production yarn build:rollup && yarn test && yarn lint",
"prerelease": "NODE_ENV=production yarn build:rollup && yarn test && yarn lint",
"release:publish:latext": "lerna publish --force-publish",
"release:publish:next": "lerna publish --dist-tag next --force-publish",
"release:publish:experimental": "lerna publish --dist-tag experimental",
@@ -27,7 +27,7 @@
"internal:release:next": "yarn prerelease && yarn changeset publish --tag next",
"serve": "cd ./site && next",
"start": "npm-run-all --parallel --print-label watch serve",
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/**/*.{js,ts}",
"test": "mocha --require ./config/babel/register.cjs './packages/*/test/**/*.{js,ts}'",
"test:custom": "mocha --require ./config/babel/register.cjs ./packages/slate/test/index.js",
"test:inspect": "yarn test --inspect-brk",
"test:integration": "run-p -r serve cypress:run",
@@ -62,7 +62,6 @@
"babel-eslint": "^10.0.3",
"babel-plugin-dev-expression": "^0.2.2",
"babel-plugin-module-resolver": "^3.1.1",
"cross-env": "6.0.3",
"cypress": "^8.3.0",
"emotion": "^10.0.9",
"eslint": "^6.7.1",
@@ -100,10 +99,10 @@
"rollup-plugin-typescript2": "^0.27.2",
"shell-quote": "^1.7.2",
"simple-git-hooks": ">=2.0.3",
"slate": "*",
"slate-history": "*",
"slate-hyperscript": "*",
"slate-react": "*",
"slate": "workspace:*",
"slate-history": "workspace:*",
"slate-hyperscript": "workspace:*",
"slate-react": "workspace:*",
"source-map-loader": "^0.2.4",
"typescript": "3.9.7"
},
@@ -115,5 +114,6 @@
"prettier --write",
"eslint --fix"
]
}
},
"packageManager": "yarn@3.0.1"
}