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.

Merge branch 'main' into prisma-package

Sara Vieirae5a7af30078d
diff --cc .github/workflows/main.yml
index 7a45017ae9,1e7d01ef62..efb144c5ed
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@@ -20,8 -20,8 +20,8 @@@ jobs
with:
node-version: ${{ matrix.node }}
cache: "yarn"
-
- - run: yarn install --frozen-lockfile
+
+ - run: yarn install --frozen-lockfile --ignore-scripts
- run: yarn prisma generate
- - run: yarn checks
- run: yarn build
+ - run: yarn checks
diff --cc packages/asset-uploader/package.json
index e4552de0dc,8f2767ca55..27bf1b2725
--- a/packages/asset-uploader/package.json
+++ b/packages/asset-uploader/package.json
@@@ -7,20 -7,27 +7,28 @@@
"scripts": {
"typecheck": "tsc --noEmit",
"test": "jest",
- "checks": "yarn typecheck && yarn test"
+ "checks": "yarn typecheck && yarn test",
+ "dev": "tsup src/index.ts --format esm,cjs --watch --out-dir=lib",
+ "build": "rm -fr lib && tsc"
},
- "devDependencies": {
+ "dependencies": {
"@aws-sdk/client-s3": "^3.131.0",
"@aws-sdk/lib-storage": "^3.131.0",
+ "sharp": "^0.30.7"
+ },
+ "devDependencies": {
"@types/node": "^17.0.21",
+ "@types/sharp": "^0.30.4",
"jest-config": "*",
+ "tsup": "^6.1.3",
"typescript": "^4.6.2",
+ "@webstudio-is/prisma-client": "*",
"zod": "^3.17.3"
},
- "main": "src/index.ts",
- "types": "src/index.ts",
+ "main": "lib/index.js",
+ "types": "lib/index.d.ts",
"files": [
+ "lib/*",
"README.md",
"!*.test.*"
],
diff --cc packages/react-sdk/package.json
index 66ac4b5bf0,c3ebae90af..52fb7166a6
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@@ -5,7 -5,8 +5,9 @@@
"author": "Webstudio <[email protected]>",
"homepage": "https://webstudio.is",
"scripts": {
+ "build": "yarn build:mdn-data && yarn build:args && yarn build:prisma",
+ "dev": "tsup src/index.ts --format esm,cjs --watch --out-dir=lib",
+ "build": "yarn build:mdn-data && yarn build:args && yarn build:lib",
"build:mdn-data": "node --experimental-loader esbuild-node-loader ./bin/mdn-data.ts ./src/css",
"build:args": "node --experimental-loader esbuild-node-loader ./bin/generate-arg-types.ts './src/components/*.tsx !./src/**/*.stories.tsx'",
"build:prisma": "prisma format && prisma generate",
@@@ -42,8 -45,7 +45,9 @@@
"react": "^17.0.2",
"react-docgen-typescript": "^2.2.2",
"react-dom": "^17.0.2",
+ "jest-config": "*",
+ "@webstudio-is/prisma-client": "*",
+ "tsup": "^6.1.3",
"typescript": "^4.6.2"
},
"peerDependencies": {
@@@ -57,14 -59,19 +61,16 @@@
"@stitches/core": "^1.2.7",
"immer": "^9.0.12",
"mitt": "^3.0.0",
- "prisma": "^3.10.0",
"react-nano-state": "^0.4.0",
+ "jest-config": "*",
"zod": "^3.17.3"
},
- "main": "src/index.ts",
- "types": "src/index.ts",
+ "main": "lib/index.js",
+ "types": "lib/index.d.ts",
"files": [
+ "lib/*",
"README.md",
- "!*.test.*",
- "prisma/*"
+ "!*.test.*"
],
"license": "MIT",
"private": false