mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Webpack builder is very slow and hard to use becaause of it. It gave us a lot of issues recently. So here I migrated to vite builder. The experience is great. It caught a bug in shallow-equal package, though fixed in latest release. There was one issue with reload. When modify packages and rebuild storybook watcher detects a lot of changes and goes into infinite loop. Solved by importing packages sources directly with export conditions vite allows to configure. Now any changes in packages can be reflected in builder storybook without manual reload, restart and additional watching. We would get much better experience with remix if they allow to configure this. Also had to remove @storybook/addon-interactions which are incompatible with vite builder.
74 lines
2.2 KiB
JSON
74 lines
2.2 KiB
JSON
{
|
|
"packageManager": "pnpm@7.27.1",
|
|
"name": "turbo",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"": "For some reason remix build does not finish when run with turbo or pnpm recursively",
|
|
"build-packages": "pnpm run --recursive --parallel --filter='!./apps/*' --filter='!./packages/sdk-size-test' build",
|
|
"build": "pnpm build-packages && pnpm --filter=@webstudio-is/sdk-size-test build && pnpm --filter=@webstudio-is/builder build",
|
|
"checks": "turbo run checks",
|
|
"dev": "pnpm run --parallel --recursive dev",
|
|
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
|
"build-storybook": "build-storybook",
|
|
"storybook": "pnpm run --parallel --recursive storybook:run",
|
|
"storybook:build": "npm run build && turbo run storybook:build",
|
|
"storybook:ds:build": "turbo run storybook:build --filter=@webstudio-is/design-system",
|
|
"migrations": "cd apps/builder && pnpm migrations --dev",
|
|
"build-figma-tokens": "cd packages/design-system && pnpm build-figma-tokens",
|
|
"prepare": "git config core.hooksPath .git/hooks/ && simple-git-hooks"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "./node_modules/.bin/nano-staged"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/get-dependents-graph": "^1.3.4",
|
|
"@manypkg/get-packages": "^1.1.3",
|
|
"@storybook/react": "^6.5.16",
|
|
"@types/css-tree": "^2.0.0",
|
|
"@webstudio-is/eslint-config-custom": "workspace:^",
|
|
"chromatic": "^6.11.4",
|
|
"nano-staged": "^0.8.0",
|
|
"prettier": "2.8.4",
|
|
"simple-git-hooks": "^2.8.1",
|
|
"tsx": "^3.12.1",
|
|
"turbo": "^1.7.0",
|
|
"typescript": "4.9.5"
|
|
},
|
|
"engines": {
|
|
"node": "16",
|
|
"pnpm": "7.27",
|
|
"yarn": "This project is configured to use pnpm"
|
|
},
|
|
"nano-staged": {
|
|
"*.{ts,tsx,js,json,css,md}": "prettier --write"
|
|
},
|
|
"prettier": {
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.ts",
|
|
"*.tsx"
|
|
],
|
|
"options": {
|
|
"parser": "babel-ts"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"resolutions": {
|
|
"esbuild": "0.15.13",
|
|
"react-dom": "17.0.2",
|
|
"@types/react": "17.0.47",
|
|
"babel-loader": "8.3.0"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"esbuild": "0.15.13",
|
|
"react-dom": "17.0.2",
|
|
"@types/react": "17.0.47",
|
|
"babel-loader": "8.3.0"
|
|
}
|
|
}
|
|
}
|