refactor(packages): change package structure

This commit is contained in:
moklick
2023-06-05 15:40:18 +02:00
parent b2e296901e
commit 8354759f57
332 changed files with 980 additions and 3244 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@reactflow/eslint-config",
"name": "@xyflow/eslint-config",
"version": "0.0.0",
"private": true,
"license": "MIT",

View File

@@ -1,5 +1,5 @@
{
"name": "@reactflow/rollup-config",
"name": "@xyflow/rollup-config",
"version": "0.0.0",
"private": true,
"license": "MIT",

View File

@@ -41,10 +41,14 @@ export const esmConfig = defineConfig({
],
});
const globals = {
const reactGlobals = {
react: 'React',
'react-dom': 'ReactDOM',
'react/jsx-runtime': 'jsxRuntime',
};
const globals = {
...(pkg.rollup?.vanilla ? {} : reactGlobals),
...(pkg.rollup?.globals || {}),
};

View File

@@ -1,5 +1,5 @@
{
"name": "@reactflow/tsconfig",
"name": "@xyflow/tsconfig",
"version": "0.0.0",
"private": true,
"license": "MIT"