mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-17 13:38:37 +01:00
c4c14882ed
* incremental upgrade to React 18, TS 4.9, etc. * update yarn config * fix build * minor cleanup in type definitions * incremental updates for TS 5.0 * fix build * upgrade to typescript 5.2 * update dependencies * fix lint issues * update to latest Playwright version * update changesets dep * update emotion/css * incremental dependency updates * more small dependency updates * upgrade prettier and eslint * fix lint issues * update dependencies rollup * fix @types/node resolution to restore linting * update tiny-invariant dependency * update dependencies * update dependencies lerna * upgrade react-router-dom * update @types/react and @types/node * update babel dependencies * udpate simple-git-hooks * update @types/node resolution * update lint-staged * remove cypress from dependency list * update @types/node to support Node 20 * update workflows to Node 20 * set resolutions for @types/react * downgrade @types/react to 18.2.28 * update mocha * update rimraf * update @types/js-dom * remove .lintstagedrc.js * upgrade next to latest * v0.61.4 * update lerna * update faker and rollup * update immer * fix yarn clean command * attempt to fix integration tests * attempt to stabilize integration tests * wip fix integration tests * skip unstable integration test * Add changeset --------- Co-authored-by: Dalibor Tosic <dalibortosic00@gmail.com> Co-authored-by: Nikola <nikolabijelic14@gmail.com>
133 lines
5.1 KiB
JSON
133 lines
5.1 KiB
JSON
{
|
|
"private": true,
|
|
"name": "slate-packages",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn build:rollup && yarn build:next",
|
|
"build:next": "cd ./site && next build && next export",
|
|
"build:rollup": "rollup --config ./config/rollup/rollup.config.js --bundleConfigAsCjs",
|
|
"changesetversion": "yarn changeset version && yarn install && git add .",
|
|
"clean": "rimraf './packages/*/{dist,lib,node_modules}' './site/{.next,out}' --glob",
|
|
"fix": "yarn fix:prettier && yarn fix:eslint",
|
|
"fix:eslint": "yarn lint:eslint --fix",
|
|
"fix:prettier": "yarn lint:prettier --write",
|
|
"lint": "yarn lint:typescript && yarn lint:eslint && yarn lint:prettier",
|
|
"lint:eslint": "eslint \"./{packages,site}/**/*.{js,jsx,ts,tsx}\"",
|
|
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
|
|
"lint:typescript": "tsc --build ./ --force",
|
|
"open": "open http://localhost:3000",
|
|
"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",
|
|
"release:latest": "yarn prerelease && lerna publish --force-publish",
|
|
"release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish",
|
|
"release:experimental": "yarn prerelease && lerna publish --dist-tag experimental",
|
|
"internal:release:next": "yarn prerelease && yarn changeset publish --tag next",
|
|
"serve": "cd ./site && next",
|
|
"start": "npm-run-all --parallel --print-label watch serve",
|
|
"test": "yarn run test:mocha && yarn run test:jest",
|
|
"test:custom": "mocha --require ./config/babel/register.cjs ./packages/slate/test/index.js",
|
|
"test:inspect": "yarn test --inspect-brk",
|
|
"test:integration": "yarn dlx playwright install --with-deps && run-p -r serve playwright",
|
|
"test:integration-local": "run-p -r serve playwright",
|
|
"test:mocha": "mocha --require ./config/babel/register.cjs ./packages/{slate,slate-history,slate-hyperscript}/test/**/*.{js,ts}",
|
|
"test:jest": "jest --config jest.config.js",
|
|
"watch": "yarn build:rollup --watch",
|
|
"playwright": "playwright test"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.23.0",
|
|
"@babel/core": "^7.23.2",
|
|
"@babel/helper-call-delegate": "^7.12.13",
|
|
"@babel/plugin-external-helpers": "^7.22.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
"@babel/polyfill": "^7.12.1",
|
|
"@babel/preset-env": "^7.23.2",
|
|
"@babel/preset-react": "^7.22.15",
|
|
"@babel/preset-typescript": "^7.23.2",
|
|
"@babel/register": "^7.22.15",
|
|
"@babel/runtime": "^7.23.2",
|
|
"@changesets/changelog-github": "^0.4.8",
|
|
"@changesets/cli": "^2.26.2",
|
|
"@emotion/css": "^11.11.2",
|
|
"@faker-js/faker": "^8.2.0",
|
|
"@playwright/test": "^1.39.0",
|
|
"@types/jest": "29.5.6",
|
|
"@types/lodash": "^4.14.200",
|
|
"@types/mocha": "^10.0.3",
|
|
"@types/node": "^20.8.7",
|
|
"@types/prismjs": "^1.26.1",
|
|
"@types/react": "^18.2.28",
|
|
"@types/react-dom": "^18.2.13",
|
|
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
"@typescript-eslint/parser": "^6.8.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "29.7.0",
|
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
"eslint": "^8.51.0",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"eslint-plugin-import": "^2.28.1",
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"image-extensions": "^1.1.0",
|
|
"is-hotkey": "^0.2.0",
|
|
"is-url": "^1.2.4",
|
|
"jest": "29.7.0",
|
|
"jest-environment-jsdom": "29.7.0",
|
|
"lerna": "^7.4.1",
|
|
"lint-staged": "^15.0.1",
|
|
"lodash": "^4.17.21",
|
|
"mocha": "^10.2.0",
|
|
"next": "^13.5.6",
|
|
"npm-run-all": "^4.1.5",
|
|
"nx": "^16.10.0",
|
|
"prettier": "^3.0.3",
|
|
"prismjs": "^1.29.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-error-boundary": "^4.0.11",
|
|
"react-router-dom": "^6.17.0",
|
|
"react-values": "^0.3.3",
|
|
"rimraf": "^5.0.5",
|
|
"rollup": "^4.1.4",
|
|
"rollup-plugin-babel": "^4.4.0",
|
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
"rollup-plugin-json": "^4.0.0",
|
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
"rollup-plugin-replace": "^2.2.0",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
"shell-quote": "^1.8.1",
|
|
"simple-git-hooks": "^2.9.0",
|
|
"slate": "workspace:*",
|
|
"slate-history": "workspace:*",
|
|
"slate-hyperscript": "workspace:*",
|
|
"slate-react": "workspace:*",
|
|
"source-map-loader": "^4.0.1",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "5.2.2"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "yarn lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.{css,md,js,jsx,json,ts,tsx}": [
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
]
|
|
},
|
|
"packageManager": "yarn@3.6.4",
|
|
"resolutions": {
|
|
"@types/node": "20.8.7"
|
|
}
|
|
}
|