This commit is contained in:
+18
-8
@@ -3,18 +3,28 @@
|
||||
"version": "0.1.0",
|
||||
"description": "Schema-driven, layer-based poster and image editor core for Web and mini apps",
|
||||
"type": "module",
|
||||
"main": "./src/index.js",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": "./src/index.js",
|
||||
"./renderer": "./src/renderer.js",
|
||||
".": { "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": "./xhs/index.cjs"
|
||||
"./xhs": { "types": "./dist/xhs.d.ts", "import": "./dist/xhs.js", "require": "./dist/xhs.cjs" },
|
||||
"./xhs-legacy": "./xhs/index.cjs"
|
||||
},
|
||||
"files": ["src", "schema", "xhs"],
|
||||
"files": ["dist", "schema", "xhs"],
|
||||
"scripts": {
|
||||
"test": "node --test",
|
||||
"check": "node --check src/index.js && node --check src/renderer.js && node --check xhs/index.cjs"
|
||||
"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"
|
||||
},
|
||||
"engines": { "node": ">=20" },
|
||||
"license": "UNLICENSED"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user