mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
Ref https://remix.run/docs/en/1.15.0/guides/constraints#server-code-pruning Remix use NAME.server.ts extension to enforce omitting module from client bundles. Though we heavily used `/server` in packages which had no affect and blocked us in using a few node apis which were not polifilled with empty modules while bundling for client. Here I replaced `/server` with `/index.server` and removed all legacy server entry points which are not longer necessary with new typescript resolution.
53 lines
1.4 KiB
JSON
53 lines
1.4 KiB
JSON
{
|
|
"name": "@webstudio-is/project",
|
|
"version": "0.60.0",
|
|
"description": "Webstudio Project",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
"checks": "pnpm typecheck && pnpm lint",
|
|
"dev": "build-package --watch",
|
|
"build": "build-package",
|
|
"dts": "tsc --declarationDir lib/types",
|
|
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
|
|
},
|
|
"dependencies": {
|
|
"@trpc/server": "^10.9.0",
|
|
"@webstudio-is/asset-uploader": "workspace:^",
|
|
"@webstudio-is/prisma-client": "workspace:^",
|
|
"@webstudio-is/project-build": "workspace:^",
|
|
"@webstudio-is/trpc-interface": "workspace:^",
|
|
"nanoid": "^3.2.0",
|
|
"slugify": "^1.6.5",
|
|
"uuid": "^9.0.0",
|
|
"zod": "^3.19.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/uuid": "^8.3.4",
|
|
"@webstudio-is/scripts": "workspace:^",
|
|
"@webstudio-is/tsconfig": "workspace:^",
|
|
"typescript": "5.0.3"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"import": "./lib/index.js",
|
|
"require": "./lib/cjs/index.js"
|
|
},
|
|
"./index.server": {
|
|
"source": "./src/index.server.ts",
|
|
"import": "./lib/index.server.js"
|
|
}
|
|
},
|
|
"types": "lib/types/index.d.ts",
|
|
"files": [
|
|
"lib/*",
|
|
"src/*"
|
|
],
|
|
"license": "MIT",
|
|
"private": false,
|
|
"sideEffects": false
|
|
}
|