refactor(repo): use turbo + rollup + vite

This commit is contained in:
moklick
2022-09-12 17:24:49 +02:00
parent 7b3093169f
commit 17ef4ff05f
154 changed files with 8024 additions and 11222 deletions
+22 -12
View File
@@ -1,6 +1,6 @@
{
"name": "@reactflow/controls",
"version": "11.0.0-next.3",
"version": "11.0.0-next.4",
"description": "Component to control the viewport of a React Flow instance",
"keywords": [
"react",
@@ -13,9 +13,10 @@
"files": [
"dist"
],
"main": "dist/reactflow-controls.cjs.js",
"module": "dist/reactflow-controls.esm.js",
"types": "dist/reactflow-controls.cjs.d.ts",
"source": "src/index.tsx",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"sideEffects": false,
"license": "MIT",
"repository": {
@@ -24,7 +25,12 @@
"directory": "packages/controls"
},
"scripts": {
"build": "postcss src/*.css --config ../../postcss.config.json --dir dist"
"dev": "concurrently \"rollup --config node:@reactflow/rollup-config --watch\" pnpm:css-watch",
"build": "rollup --config node:@reactflow/rollup-config --environment NODE_ENV:production && npm run css",
"css": "postcss src/*.css --config ../../postcss-config/index.js --dir dist",
"css-watch": "pnpm css --watch",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
"typecheck": "tsc --noEmit"
},
"publishConfig": {
"access": "public"
@@ -39,12 +45,16 @@
"react-dom": ">=18"
},
"devDependencies": {
"autoprefixer": "^10.4.8",
"postcss": "^8.4.16",
"postcss-cli": "^10.0.0",
"postcss-combine-duplicated-selectors": "^10.0.3",
"postcss-import": "^14.1.0",
"postcss-nested": "^5.0.6",
"tsconfig": "*"
"@reactflow/eslint-config": "workspace:^0.0.0",
"@reactflow/rollup-config": "workspace:*",
"@reactflow/tsconfig": "workspace:*",
"@types/node": "^18.7.16",
"@types/react": "^18.0.19"
},
"rollup": {
"globals": {
"classcat": "cc"
},
"name": "ReactFlowControls"
}
}