From 401793864ab888bd334fc21fc96d70b90658b5d2 Mon Sep 17 00:00:00 2001 From: msfstef Date: Tue, 23 Apr 2024 17:57:24 +0300 Subject: [PATCH] Fix build step for toolbar --- components/toolbar/package.json | 2 +- components/toolbar/tsconfig.build.json | 12 ++++++++++++ components/toolbar/tsconfig.json | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 components/toolbar/tsconfig.build.json 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,