From 3b7adf64cde6cf356b171bbe29cad6fab3ae2a5b Mon Sep 17 00:00:00 2001 From: Dias1c Date: Thu, 15 Feb 2024 22:44:06 +0600 Subject: [PATCH] add: tsconfig files --- tsconfig.cjs.json | 7 +++++++ tsconfig.json | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tsconfig.cjs.json create mode 100644 tsconfig.json diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json new file mode 100644 index 0000000..5162e36 --- /dev/null +++ b/tsconfig.cjs.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "CommonJS", + "outDir": "./lib/cjs" + } +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..199614d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "ES6", + "module": "ES6", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "declaration": true, + "outDir": "./lib/esm", + "moduleResolution": "Node" + }, + "exclude": ["./**/tests/*", "./**/test/*", "*.test.ts"], + "include": ["./src"] +} \ No newline at end of file