mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 22:31:33 +09:00
Having all webstudio packages as dependency in CLI leads to very long and bloated install. Before <img width="762" alt="Screenshot 2025-01-03 at 19 49 31" src="https://github.com/user-attachments/assets/96624dae-c72a-4407-83ea-e56ed5d3f7d8" /> After <img width="385" alt="Screenshot 2025-01-03 at 20 00 17" src="https://github.com/user-attachments/assets/f3271c6e-07ca-47f6-9dfb-491ca68e7caf" /> after/before <img width="633" alt="Screenshot 2025-01-03 at 19 58 15" src="https://github.com/user-attachments/assets/8273072a-c71e-485c-aa39-116c9698bc8f" />
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
{
|
|
"name": "@webstudio-is/sdk",
|
|
"version": "0.0.0-webstudio-version",
|
|
"description": "Webstudio project data schema",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"license": "AGPL-3.0-or-later",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"webstudio": "./src/index.ts",
|
|
"types": "./lib/types/index.d.ts",
|
|
"import": "./lib/index.js"
|
|
},
|
|
"./runtime": {
|
|
"webstudio": "./src/runtime.ts",
|
|
"types": "./lib/types/runtime.d.ts",
|
|
"import": "./lib/runtime.js"
|
|
},
|
|
"./normalize.css": {
|
|
"webstudio": "./src/__generated__/normalize.css.ts",
|
|
"types": "./lib/types/__generated__/normalize.css.d.ts",
|
|
"import": "./lib/__generated__/normalize.css.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"lib/*",
|
|
"!*.{test,stories}.*"
|
|
],
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"typecheck": "tsc",
|
|
"test": "vitest run",
|
|
"build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && prettier --write src/__generated__/normalize.css.ts",
|
|
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/__generated__/normalize.css.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
"dts": "tsc --project tsconfig.dts.json"
|
|
},
|
|
"dependencies": {
|
|
"@webstudio-is/css-engine": "workspace:*",
|
|
"@webstudio-is/fonts": "workspace:*",
|
|
"acorn": "^8.14.0",
|
|
"acorn-walk": "^8.3.4",
|
|
"reserved-identifiers": "^1.0.0",
|
|
"type-fest": "^4.31.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@webstudio-is/css-data": "workspace:*",
|
|
"@webstudio-is/template": "workspace:*",
|
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
"html-tags": "^4.0.0",
|
|
"vitest": "^2.1.8"
|
|
}
|
|
}
|