Initial Vite migration setup

This commit is contained in:
BlackWolfNews 2025-04-13 17:46:38 -06:00
parent 7c58477382
commit 35171070a1
88 changed files with 3341 additions and 3664 deletions

View file

@ -8,12 +8,15 @@
"exports": {
".": {
"types": "./dist/types/utils/src/index.d.ts",
"development": "./dist/dev/index.js",
"production": "./dist/prod/index.js",
"import": "./dist/prod/index.js",
"require": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./../utils/dist/types/utils/src/*.d.ts"
"./export": {
"types": "./dist/types/utils/src/export.d.ts",
"import": "./dist/prod/index.js",
"require": "./dist/prod/index.js",
"default": "./dist/prod/index.js"
}
},
"files": [
@ -61,6 +64,8 @@
},
"devDependencies": {
"cross-env": "7.0.3",
"esbuild": "0.25.2",
"esbuild-sass-plugin": "3.3.1",
"fonteditor-core": "2.4.0",
"typescript": "4.9.4",
"wawoff2": "2.0.1",
@ -69,7 +74,7 @@
"bugs": "https://github.com/excalidraw/excalidraw/issues",
"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"
"gen:types": "if exist types rmdir /s /q types && tsc",
"build:esm": "if exist dist rmdir /s /q dist && node ../../scripts/buildUtils.mjs && yarn gen:types"
}
}

View file

@ -2,3 +2,6 @@ export * from "./export";
export * from "./withinBounds";
export * from "./bbox";
export { getCommonBounds } from "@excalidraw/element/bounds";
export * from "./collision";
export * from "./shape";
export * from "./test-utils";