Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Move types above import/require conditions (#1801)
Bogdan Chadkinf06b35e35d76
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.jsonindex cdddf15678..36f697049d 100644--- a/packages/asset-uploader/package.json+++ b/packages/asset-uploader/package.json@@ -39,14 +39,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.jsonindex 4d2b56a911..b99a35424b 100644--- a/packages/authorization-token/package.json+++ b/packages/authorization-token/package.json@@ -30,14 +30,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/css-data/package.json b/packages/css-data/package.jsonindex 403bdf1978..39c47b1a31 100644--- a/packages/css-data/package.json+++ b/packages/css-data/package.json@@ -35,9 +35,9 @@},"exports": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"files": ["lib/*",diff --git a/packages/css-engine/package.json b/packages/css-engine/package.jsonindex 4bcdec7ea9..4e7983ad93 100644--- a/packages/css-engine/package.json+++ b/packages/css-engine/package.json@@ -38,8 +38,8 @@},"exports": {"source": "./src/index.ts",- "import": "./lib/index.js",- "types": "./lib/types/index.d.ts"+ "types": "./lib/types/index.d.ts",+ "import": "./lib/index.js"},"files": ["lib/*",diff --git a/packages/css-vars/package.json b/packages/css-vars/package.jsonindex 9924b19252..8ce6c06fb4 100644--- a/packages/css-vars/package.json+++ b/packages/css-vars/package.json@@ -20,9 +20,9 @@},"exports": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"files": ["lib/*",diff --git a/packages/dashboard/package.json b/packages/dashboard/package.jsonindex 815e172630..d8097b6bbc 100644--- a/packages/dashboard/package.json+++ b/packages/dashboard/package.json@@ -31,14 +31,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.jsonindex 661d63f502..9b3e41e7b8 100644--- a/packages/feature-flags/package.json+++ b/packages/feature-flags/package.json@@ -20,8 +20,8 @@},"exports": {"source": "./src/index.ts",- "import": "./lib/index.js",- "types": "./lib/types/index.d.ts"+ "types": "./lib/types/index.d.ts",+ "import": "./lib/index.js"},"files": ["lib/*",diff --git a/packages/fonts/package.json b/packages/fonts/package.jsonindex a39a4c3217..cd153cc34f 100644--- a/packages/fonts/package.json+++ b/packages/fonts/package.json@@ -34,14 +34,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/form-handlers/package.json b/packages/form-handlers/package.jsonindex 7cbc6b0dc8..e348253f8e 100644--- a/packages/form-handlers/package.json+++ b/packages/form-handlers/package.json@@ -27,9 +27,9 @@},"exports": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"files": ["lib/*",diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.jsonindex 16b38b0b89..9f10e05a28 100644--- a/packages/generate-arg-types/package.json+++ b/packages/generate-arg-types/package.json@@ -37,8 +37,8 @@},"exports": {"source": "./src/index.ts",- "import": "./lib/index.js",- "types": "./lib/types/index.d.ts"+ "types": "./lib/types/index.d.ts",+ "import": "./lib/index.js"},"license": "MIT","private": false,diff --git a/packages/http-client/package.json b/packages/http-client/package.jsonindex 5f71283008..4373d55032 100644--- a/packages/http-client/package.json+++ b/packages/http-client/package.json@@ -30,8 +30,8 @@},"exports": {"source": "./src/index.ts",- "import": "./lib/index.js",- "types": "./lib/types/index.d.ts"+ "types": "./lib/types/index.d.ts",+ "import": "./lib/index.js"},"files": ["lib/*",diff --git a/packages/icons/package.json b/packages/icons/package.jsonindex e4f48d98ae..ec7a044574 100644--- a/packages/icons/package.json+++ b/packages/icons/package.json@@ -39,15 +39,15 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./svg": {"source": "./src/__generated__/svg/index.ts",+ "types": "./lib/types/__generated__/svg/index.d.ts","import": "./lib/__generated__/svg/index.js",- "require": "./lib/cjs/__generated__/svg/index.js",- "types": "./lib/types/__generated__/svg/index.d.ts"+ "require": "./lib/cjs/__generated__/svg/index.js"}},"files": [diff --git a/packages/image/package.json b/packages/image/package.jsonindex 0a33a70893..e3c5f5dd34 100644--- a/packages/image/package.json+++ b/packages/image/package.json@@ -39,9 +39,9 @@},"exports": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"files": ["lib/*",diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.jsonindex 5e9238f8f9..b792ec27bf 100644--- a/packages/prisma-client/package.json+++ b/packages/prisma-client/package.json@@ -30,9 +30,9 @@},"exports": {"source": "./src/index.ts",+ "types": "./lib/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/index.d.ts"+ "require": "./lib/cjs/index.js"},"license": "MIT","private": false,diff --git a/packages/project-build/package.json b/packages/project-build/package.jsonindex 5ffbdd6e15..c23e31041b 100644--- a/packages/project-build/package.json+++ b/packages/project-build/package.json@@ -9,14 +9,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/project/package.json b/packages/project/package.jsonindex 8f1da5cece..62d0adc366 100644--- a/packages/project/package.json+++ b/packages/project/package.json@@ -33,14 +33,14 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./index.server": {"source": "./src/index.server.ts",- "import": "./lib/index.server.js",- "types": "./lib/types/index.server.d.ts"+ "types": "./lib/types/index.server.d.ts",+ "import": "./lib/index.server.js"}},"files": [diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.jsonindex e5581f9d8b..8077db2d93 100644--- a/packages/react-sdk/package.json+++ b/packages/react-sdk/package.json@@ -53,15 +53,15 @@"exports": {".": {"source": "./src/index.ts",+ "types": "./lib/types/index.d.ts","import": "./lib/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"+ "require": "./lib/cjs/index.js"},"./css-normalize": {"source": "./src/css/normalize.ts",+ "types": "./lib/types/css/normalize.d.ts","import": "./lib/css/normalize.js",- "require": "./lib/cjs/css/normalize.js",- "types": "./lib/types/css/normalize.d.ts"+ "require": "./lib/cjs/css/normalize.js"}},"files": [diff --git a/packages/sdk-components-react-remix/package.json b/packages/sdk-components-react-remix/package.jsonindex 3bbc761d6f..fc669fc346 100644--- a/packages/sdk-components-react-remix/package.json+++ b/packages/sdk-components-react-remix/package.json@@ -15,21 +15,21 @@"exports": {".": {"source": "./src/components.ts",+ "types": "./lib/types/components.d.ts","import": "./lib/components.js",- "require": "./lib/cjs/components.js",- "types": "./lib/types/components.d.ts"+ "require": "./lib/cjs/components.js"},"./metas": {"source": "./src/metas.ts",+ "types": "./lib/types/metas.d.ts","import": "./lib/metas.js",- "require": "./lib/cjs/metas.js",- "types": "./lib/types/metas.d.ts"+ "require": "./lib/cjs/metas.js"},"./props": {"source": "./src/props.ts",+ "types": "./lib/types/props.d.ts","import": "./lib/props.js",- "require": "./lib/cjs/props.js",- "types": "./lib/types/props.d.ts"+ "require": "./lib/cjs/props.js"}},"scripts": {diff --git a/packages/sdk-components-react/package.json b/packages/sdk-components-react/package.jsonindex 525b4ff9e2..ba6770648e 100644--- a/packages/sdk-components-react/package.json+++ b/packages/sdk-components-react/package.json@@ -15,21 +15,21 @@"exports": {".": {"source": "./src/components.ts",+ "types": "./lib/types/components.d.ts","import": "./lib/components.js",- "require": "./lib/cjs/components.js",- "types": "./lib/types/components.d.ts"+ "require": "./lib/cjs/components.js"},"./metas": {"source": "./src/metas.ts",+ "types": "./lib/types/metas.d.ts","import": "./lib/metas.js",- "require": "./lib/cjs/metas.js",- "types": "./lib/types/metas.d.ts"+ "require": "./lib/cjs/metas.js"},"./props": {"source": "./src/props.ts",+ "types": "./lib/types/props.d.ts","import": "./lib/props.js",- "require": "./lib/cjs/props.js",- "types": "./lib/types/props.d.ts"+ "require": "./lib/cjs/props.js"}},"scripts": {