diff --git a/package.json b/package.json index f9ae5a4..759374f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ ], "scripts": { "dev": "vite build --watch", - "build": "tsc && vite build", + "build": "tsc --emitDeclarationOnly && vite build", + "build:raw": "tsc", "test": "vitest run", "test:watch": "vitest", "lint": "eslint . --ext .ts", diff --git a/tsconfig.json b/tsconfig.json index f386aa6..ba43342 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,9 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", + "moduleResolution": "bundler", "strict": true, "declaration": true, - "emitDeclarationOnly": true, "outDir": "./dist", "rootDir": "./src", "esModuleInterop": true,