From da597f763d9ad4fa9fc655ea797c1d3253f986c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sat, 7 Sep 2024 19:18:47 +0200 Subject: [PATCH] Build system --- package.json | 2 +- tsconfig.json | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9c8f21e..f845ce5 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsc", "lint:tsc": "tsc --noEmit", "clean:cache": "rm -f tsconfig.tsbuildinfo", "clean:dist": "rm -rf dist", diff --git a/tsconfig.json b/tsconfig.json index ef46c48..e46d674 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,9 +10,9 @@ // Bundler mode "moduleResolution": "bundler", - "allowImportingTsExtensions": true, + // "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, - "noEmit": true, + // "noEmit": true, // Best practices "strict": true, @@ -22,7 +22,11 @@ // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false + "noPropertyAccessFromIndexSignature": false, + + // Build + "outDir": "./dist", + "declaration": true }, "include": ["./src"]