mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-02 18:18:35 +09:00
Ref https://github.com/webstudio-is/webstudio/issues/4077 How it works - Cache-Control opts in caching (Cache-Control: max-age=3600) - cached response is matched by url, method and body - cache is invalidated with Cache-Control change - responses stored with the cache are not replicated across regions - responses are not shared between projects Link for testing https://test-cache-hcevl.wstd.work/?message=hello
63 lines
2.0 KiB
JSON
63 lines
2.0 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"
|
|
},
|
|
"./core-templates": {
|
|
"webstudio": "./src/core-templates.tsx",
|
|
"types": "./lib/types/core-templates.d.ts",
|
|
"import": "./lib/core-templates.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 src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
"dts": "tsc --project tsconfig.dts.json"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/hash": "^0.9.2",
|
|
"@webstudio-is/css-engine": "workspace:*",
|
|
"@webstudio-is/fonts": "workspace:*",
|
|
"@webstudio-is/icons": "workspace:*",
|
|
"acorn": "^8.14.1",
|
|
"acorn-walk": "^8.3.4",
|
|
"change-case": "^5.4.4",
|
|
"reserved-identifiers": "^1.0.0",
|
|
"type-fest": "^4.37.0",
|
|
"zod": "^3.24.2"
|
|
},
|
|
"devDependencies": {
|
|
"@webstudio-is/css-data": "workspace:*",
|
|
"@webstudio-is/template": "workspace:*",
|
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
"html-tags": "^4.0.0",
|
|
"vitest": "^3.1.2"
|
|
}
|
|
}
|