31 lines
1.2 KiB
JSON
31 lines
1.2 KiB
JSON
{
|
|
"name": "@entroia/poster-editor",
|
|
"version": "0.1.0",
|
|
"description": "Schema-driven, layer-based poster and image editor core for Web and mini apps",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" },
|
|
"./renderer": { "types": "./dist/renderer.d.ts", "import": "./dist/renderer.js", "require": "./dist/renderer.cjs" },
|
|
"./schema": "./schema/poster-document.schema.json",
|
|
"./xhs": { "types": "./dist/xhs.d.ts", "import": "./dist/xhs.js", "require": "./dist/xhs.cjs" },
|
|
"./xhs-legacy": "./xhs/index.cjs"
|
|
},
|
|
"files": ["dist", "schema", "xhs"],
|
|
"scripts": {
|
|
"build": "tsup src/index.ts src/renderer.ts src/xhs.ts --format esm,cjs --dts --sourcemap --clean",
|
|
"test": "npm run build && node --test test/*.test.mjs",
|
|
"check": "tsc --noEmit && node --check xhs/index.cjs",
|
|
"prepack": "npm run check && npm test && npm run build"
|
|
},
|
|
"engines": { "node": ">=20.9" },
|
|
"devDependencies": {
|
|
"@types/node": "^24.7.0",
|
|
"tsup": "^8.5.0",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"license": "UNLICENSED"
|
|
}
|