mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
Found zod allows to pass anything in transform without type checking. This means we can easily get unexpected result. In this case we could get undefined as asset. As a solution I defined two versions of types, client side and stored in db. Conversion is implemented on db routes side. This makes data flow more clear and let us describe only two versions of types instead of tree (in, out, client side).
59 lines
1.6 KiB
JSON
59 lines
1.6 KiB
JSON
{
|
|
"name": "@webstudio-is/project",
|
|
"version": "0.22.0",
|
|
"description": "Webstudio Project",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
"checks": "pnpm typecheck && pnpm lint && pnpm test",
|
|
"dev": "build-package --watch",
|
|
"build": "build-package",
|
|
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
|
|
},
|
|
"dependencies": {
|
|
"@webstudio-is/asset-uploader": "workspace:^",
|
|
"@webstudio-is/css-data": "workspace:^",
|
|
"@webstudio-is/css-engine": "workspace:^",
|
|
"@webstudio-is/design-tokens": "workspace:^",
|
|
"@webstudio-is/fonts": "workspace:^",
|
|
"@webstudio-is/prisma-client": "workspace:^",
|
|
"@webstudio-is/react-sdk": "workspace:^",
|
|
"bson-objectid": "^2.0.4",
|
|
"immer": "^9.0.12",
|
|
"nanoid": "^3.2.0",
|
|
"react": "^17.0.2",
|
|
"slugify": "^1.6.5",
|
|
"uuid": "^9.0.0",
|
|
"warn-once": "^0.1.1",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "^29.3.1",
|
|
"@types/uuid": "^8.3.4",
|
|
"@webstudio-is/jest-config": "workspace:^",
|
|
"@webstudio-is/scripts": "workspace:^",
|
|
"@webstudio-is/tsconfig": "workspace:^",
|
|
"jest": "^29.3.1",
|
|
"typescript": "4.7.4"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/cjs/index.cjs"
|
|
},
|
|
"./server": "./server.js"
|
|
},
|
|
"types": "src/index.ts",
|
|
"files": [
|
|
"lib/*",
|
|
"src/*",
|
|
"!*.test.*"
|
|
],
|
|
"license": "MIT",
|
|
"private": false,
|
|
"sideEffects": false
|
|
}
|