mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
We should not have any server specific functions in react-sdk. Any small change can break client environment. And moving to /server entry point still problematic because this entry point is node specific while we want to support as many environments as possible. Recently remix added defaults for different environments so user do not need to add any entry.client.tsx or entry.server.ts at all. Defaults do not work for us in builder though doing great in size test setup.
77 lines
2.4 KiB
JSON
77 lines
2.4 KiB
JSON
{
|
|
"name": "@webstudio-is/react-sdk",
|
|
"version": "0.59.0",
|
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "build-package --watch",
|
|
"build": "build-package",
|
|
"build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
|
|
"dts": "tsc --declarationDir lib/types",
|
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
|
|
"checks": "pnpm typecheck && pnpm lint && pnpm test",
|
|
"storybook:run": "start-storybook -p 6006",
|
|
"storybook:build": "build-storybook"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.21.0",
|
|
"@jest/globals": "^29.3.1",
|
|
"@remix-run/react": "^1.15.0",
|
|
"@storybook/react": "^6.5.16",
|
|
"@types/react": "^18.0.35",
|
|
"@types/react-dom": "^18.0.11",
|
|
"@webstudio-is/jest-config": "workspace:^",
|
|
"@webstudio-is/scripts": "workspace:^",
|
|
"@webstudio-is/storybook-config": "workspace:^",
|
|
"@webstudio-is/tsconfig": "workspace:^",
|
|
"jest": "^29.3.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"typescript": "5.0.3",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@remix-run/react": "^1.15.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"dependencies": {
|
|
"@nanostores/react": "^0.4.1",
|
|
"@webstudio-is/asset-uploader": "workspace:^",
|
|
"@webstudio-is/css-data": "workspace:^",
|
|
"@webstudio-is/css-engine": "workspace:^",
|
|
"@webstudio-is/css-vars": "workspace:^",
|
|
"@webstudio-is/fonts": "workspace:^",
|
|
"@webstudio-is/generate-arg-types": "workspace:^",
|
|
"@webstudio-is/icons": "workspace:^",
|
|
"@webstudio-is/image": "workspace:^",
|
|
"@webstudio-is/prisma-client": "workspace:^",
|
|
"@webstudio-is/project-build": "workspace:^",
|
|
"detect-font": "^0.1.5",
|
|
"html-tags": "^3.2.0",
|
|
"nanoevents": "^7.0.1",
|
|
"nanostores": "^0.7.1"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/cjs/index.js"
|
|
}
|
|
},
|
|
"types": "lib/types/index.d.ts",
|
|
"files": [
|
|
"lib/*",
|
|
"src/*",
|
|
"!*.test.*"
|
|
],
|
|
"license": "MIT",
|
|
"private": false,
|
|
"sideEffects": false
|
|
}
|