diff --git a/components/toolbar/package.json b/components/toolbar/package.json index 1f0c1f401e..3fc1d47091 100644 --- a/components/toolbar/package.json +++ b/components/toolbar/package.json @@ -8,7 +8,7 @@ "author": "ElectricSQL", "license": "Apache-2.0", "scripts": { - "build": "rm -rf ./dist && node builder.js && tsc --emitDeclarationOnly --outDir dist", + "build": "rm -rf ./dist && node builder.js && tsc -p tsconfig.build.json", "check-styleguide": "prettier --check --loglevel warn .", "typecheck": "tsc --noEmit", "test": "vitest run" diff --git a/components/toolbar/tsconfig.build.json b/components/toolbar/tsconfig.build.json new file mode 100644 index 0000000000..f7f077038f --- /dev/null +++ b/components/toolbar/tsconfig.build.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "composite": false, + "rootDir": "src", + "declaration": true, + "noEmit": false, + "emitDeclarationOnly": true, + "incremental": false + }, + "extends": "./tsconfig.json", + "include": ["src"] +} diff --git a/components/toolbar/tsconfig.json b/components/toolbar/tsconfig.json index 60750faa27..451a6cd350 100644 --- a/components/toolbar/tsconfig.json +++ b/components/toolbar/tsconfig.json @@ -12,6 +12,7 @@ "lib": ["ESNext", "DOM"], "module": "ESNext", "moduleResolution": "bundler", + "noEmit": true, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true,