mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix esbuild & ts build issues
This commit is contained in:
parent
c82f486e88
commit
cc2916215a
9 changed files with 66 additions and 31 deletions
15
packages/element/global.d.ts
vendored
15
packages/element/global.d.ts
vendored
|
@ -1,12 +1,3 @@
|
|||
interface ImportMetaEnv {
|
||||
MODE: string;
|
||||
DEV: string;
|
||||
PROD: string;
|
||||
|
||||
// To enable bounding box for text containers
|
||||
VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
/// <reference types="vite/client" />
|
||||
import "@excalidraw/excalidraw/global";
|
||||
import "@excalidraw/excalidraw/css";
|
||||
|
|
|
@ -58,6 +58,6 @@
|
|||
"repository": "https://github.com/excalidraw/excalidraw",
|
||||
"scripts": {
|
||||
"gen:types": "rm -rf types && tsc",
|
||||
"build:esm": "rm -rf dist && node ../../scripts/buildShared.js && yarn gen:types"
|
||||
"build:esm": "rm -rf dist && node ../../scripts/buildBase.js && yarn gen:types"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue