* refactor(dom-css): group sources into import, export, and runtime dom-css kept both conversion directions in one flat folder: HTML and CSS import next to SceneGraph export, a JSX runtime next to the Tailwind JSX printer, and CSS parsing and formatting in one file. Sources now live in `import/`, `export/`, and `runtime/`, with the CSS value helpers split by direction and `export/index.ts` as the `./export` entry. Tests mirror the new folders. Public entry points are unchanged. * docs(dom-css): add a package guide for the import, export, and runtime layout dom-css had no AGENTS.md. The guide records the source layout, the scene-graph-only dependency, the browser-safe `./export` entry, printed code generation, and Base64 validation for imported documents, and the root map links to it.
92 lines
2.3 KiB
JSON
92 lines
2.3 KiB
JSON
{
|
|
"name": "@open-pencil/dom-css",
|
|
"version": "0.15.1",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"imports": {
|
|
"#dom-css/*": {
|
|
"types": "./src/*",
|
|
"bun": "./src/*",
|
|
"default": "./dist/*"
|
|
}
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"bun": "./src/index.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./browser": {
|
|
"types": "./dist/browser.d.ts",
|
|
"bun": "./src/browser.ts",
|
|
"import": "./dist/browser.js",
|
|
"default": "./dist/browser.js"
|
|
},
|
|
"./export": {
|
|
"types": "./dist/export.d.ts",
|
|
"bun": "./src/export/index.ts",
|
|
"import": "./dist/export.js",
|
|
"default": "./dist/export.js"
|
|
},
|
|
"./jsx-runtime": {
|
|
"types": "./dist/jsx-runtime.d.ts",
|
|
"bun": "./src/import/jsx/runtime.ts",
|
|
"import": "./dist/jsx-runtime.js",
|
|
"default": "./dist/jsx-runtime.js"
|
|
},
|
|
"./jsx-dev-runtime": {
|
|
"types": "./dist/jsx-dev-runtime.d.ts",
|
|
"bun": "./src/import/jsx/dev-runtime.ts",
|
|
"import": "./dist/jsx-dev-runtime.js",
|
|
"default": "./dist/jsx-dev-runtime.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "bunx tsdown --config tsdown.config.ts",
|
|
"check": "bun run typecheck && bun run test && bun run build && bun run smoke:dist",
|
|
"prepack": "bun run build",
|
|
"smoke:dist": "bun scripts/smoke-dist.ts",
|
|
"test": "bun test tests",
|
|
"typecheck": "bunx tsc --noEmit -p tsconfig.test.json"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/open-pencil/open-pencil.git",
|
|
"directory": "packages/dom-css"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"peerDependencies": {
|
|
"@open-pencil/scene-graph": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.14",
|
|
"tsdown": "^0.22.14",
|
|
"typescript": "~5.8.3"
|
|
},
|
|
"dependencies": {
|
|
"@acemir/cssom": "^0.9.31",
|
|
"@sveltejs/acorn-typescript": "^1.0.13",
|
|
"acorn": "^8.18.0",
|
|
"dedent": "^1.7.2",
|
|
"es-toolkit": "^1.51.0",
|
|
"esrap": "^2.3.11",
|
|
"js-base64": "^3.9.3",
|
|
"parse5": "^8.0.1",
|
|
"postcss-value-parser": "^4.2.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"twirlwind": "^0.3.0"
|
|
}
|
|
}
|