Skip to content

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.

fix: publish without local development hacks (#3528)

Bogdan Chadkind014c5209b88
diff --git a/.github/workflows/cli-test.yml b/.github/workflows/cli-test.yml
index cdb144203b..3c436cce0c 100644
--- a/.github/workflows/cli-test.yml
+++ b/.github/workflows/cli-test.yml
@@ -38,7 +38,7 @@ jobs:
# Testing fixtures for vercel template
- name: Test cli --help flag
working-directory: ./fixtures/webstudio-remix-vercel
- run: pnpm webstudio --help
+ run: pnpm cli --help
- name: Testing cli link command
run: pnpm --filter='./fixtures/*' --sequential run fixtures:link
diff --git a/fixtures/webstudio-cloudflare-template/package.json b/fixtures/webstudio-cloudflare-template/package.json
index ee96a3fbfe..c2d38f1f78 100644
--- a/fixtures/webstudio-cloudflare-template/package.json
+++ b/fixtures/webstudio-cloudflare-template/package.json
@@ -1,10 +1,10 @@
{
"type": "module",
"scripts": {
- "webstudio": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm webstudio link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93&\"",
- "fixtures:sync": "pnpm webstudio sync && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm webstudio build --template internal --template cloudflare --template saas-helpers --preview && pnpm prettier --write ./app/ ./package.json",
+ "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
+ "fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93&\"",
+ "fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",
+ "fixtures:build": "pnpm cli build --template internal --template cloudflare --template saas-helpers --preview && pnpm prettier --write ./app/ ./package.json",
"build": "remix vite:build",
"dev": "remix vite:dev",
"typecheck": "tsc",
diff --git a/fixtures/webstudio-custom-template/package.json b/fixtures/webstudio-custom-template/package.json
index 939634799f..a5d9149b59 100644
--- a/fixtures/webstudio-custom-template/package.json
+++ b/fixtures/webstudio-custom-template/package.json
@@ -6,10 +6,10 @@
"typecheck": "tsc",
"checks": "pnpm typecheck",
"size-test": "rm -rf ./public && remix build && size-limit",
- "webstudio": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm webstudio link --link \"https://main.development.webstudio.is/builder/0d856812-61d8-4014-a20a-82e01c0eb8ee?authToken=d225fafb-4f20-4340-9359-c21df7c49a3f\"",
- "fixtures:sync": "pnpm webstudio sync && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm webstudio build --template internal --template ./custom-template --template ./custom-template-stage --preview && pnpm prettier --write ./app/ ./package.json"
+ "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
+ "fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/0d856812-61d8-4014-a20a-82e01c0eb8ee?authToken=d225fafb-4f20-4340-9359-c21df7c49a3f\"",
+ "fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",
+ "fixtures:build": "pnpm cli build --template internal --template ./custom-template --template ./custom-template-stage --preview && pnpm prettier --write ./app/ ./package.json"
},
"private": true,
"sideEffects": false,
diff --git a/fixtures/webstudio-remix-netlify-edge-functions/package.json b/fixtures/webstudio-remix-netlify-edge-functions/package.json
index 56d634c205..f21f9585d9 100644
--- a/fixtures/webstudio-remix-netlify-edge-functions/package.json
+++ b/fixtures/webstudio-remix-netlify-edge-functions/package.json
@@ -5,10 +5,10 @@
"build": "remix vite:build",
"dev": "remix vite:dev",
"typecheck": "tsc",
- "webstudio": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm webstudio link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93&\"",
- "fixtures:sync": "pnpm webstudio sync && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm webstudio build --template internal --template netlify-edge-functions --preview && pnpm prettier --write ./app/ ./package.json"
+ "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
+ "fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93&\"",
+ "fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",
+ "fixtures:build": "pnpm cli build --template internal --template netlify-edge-functions --preview && pnpm prettier --write ./app/ ./package.json"
},
"dependencies": {
"@netlify/edge-functions": "^2.8.1",
diff --git a/fixtures/webstudio-remix-netlify-functions/package.json b/fixtures/webstudio-remix-netlify-functions/package.json
index 24333d21ab..1ba6c71611 100644
--- a/fixtures/webstudio-remix-netlify-functions/package.json
+++ b/fixtures/webstudio-remix-netlify-functions/package.json
@@ -4,10 +4,10 @@
"dev": "remix vite:dev",
"start": "netlify serve",
"typecheck": "tsc",
- "webstudio": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm webstudio link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93\"",
- "fixtures:sync": "pnpm webstudio sync && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm webstudio build --template internal --template netlify-functions --preview && pnpm prettier --write ./app/ ./package.json"
+ "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
+ "fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93\"",
+ "fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",
+ "fixtures:build": "pnpm cli build --template internal --template netlify-functions --preview && pnpm prettier --write ./app/ ./package.json"
},
"dependencies": {
"@netlify/functions": "^2.7.0",
diff --git a/fixtures/webstudio-remix-vercel/package.json b/fixtures/webstudio-remix-vercel/package.json
index ae78ff5c76..ffa39ed1a3 100644
--- a/fixtures/webstudio-remix-vercel/package.json
+++ b/fixtures/webstudio-remix-vercel/package.json
@@ -4,10 +4,10 @@
"build": "remix vite:build",
"dev": "remix vite:dev",
"typecheck": "tsc",
- "webstudio": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm webstudio link --link \"https://main.development.webstudio.is/builder/cddc1d44-af37-4cb6-a430-d300cf6f932d?authToken=1cdc6026-dd5b-4624-b89b-9bd45e9bcc3d&mode=preview\"",
- "fixtures:sync": "pnpm webstudio sync && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm webstudio build --template internal --template vercel --preview && pnpm prettier --write ./app/ ./package.json"
+ "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
+ "fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/cddc1d44-af37-4cb6-a430-d300cf6f932d?authToken=1cdc6026-dd5b-4624-b89b-9bd45e9bcc3d&mode=preview\"",
+ "fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",
+ "fixtures:build": "pnpm cli build --template internal --template vercel --preview && pnpm prettier --write ./app/ ./package.json"
},
"private": true,
"sideEffects": false,