Updated NPM Scripts to vite

This commit is contained in:
Felix Kaspar 2024-05-10 23:06:49 +02:00
parent 113f87aa3e
commit 52fae8e41b
2 changed files with 6 additions and 4 deletions

View File

@ -11,9 +11,9 @@
"canvas": "^2.11.2"
},
"scripts": {
"dev": "rollup -c -w",
"build": "rollup -c --forceExit",
"start": "node ./dist/bundle.js"
"dev": "vite",
"build": "tsc && vite build",
"start": "node ./dist/index.js"
},
"keywords": [],
"author": "",

View File

@ -35,7 +35,9 @@
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
"types": [
"vite/client"
], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */