Add @excalidraw/element package

This commit is contained in:
Marcel Mraz 2025-03-13 12:55:13 +01:00
parent 096a1233a6
commit 45ac15ab40
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
15 changed files with 137 additions and 121 deletions

View file

@ -70,6 +70,6 @@
"repository": "https://github.com/excalidraw/excalidraw",
"scripts": {
"gen:types": "rm -rf types && tsc",
"build:esm": "rm -rf dist && node ../../scripts/buildUtils.js && yarn gen:types"
"build:esm": "rm -rf dist && node ../../scripts/buildShared.js && yarn gen:types"
}
}

View file

@ -1,24 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types",
"target": "ESNext",
"strict": true,
"skipLibCheck": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"jsx": "react-jsx",
"emitDeclarationOnly": true,
"paths": {
"@excalidraw/excalidraw": ["../excalidraw/index.tsx"],
"@excalidraw/utils": ["../utils/index.ts"],
"@excalidraw/math": ["../math/index.ts"],
"@excalidraw/excalidraw/*": ["../excalidraw/*"],
"@excalidraw/utils/*": ["../utils/*"],
"@excalidraw/math/*": ["../math/*"]
}
},
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
"outDir": "./dist/types"
}
}