From a5cb7f86a2e47cd8654553695fb00cb62f07091c Mon Sep 17 00:00:00 2001 From: Scott Batson Date: Tue, 8 Aug 2023 15:29:06 -0400 Subject: [PATCH] cleanup config --- package.json | 9 ++++++++- tsconfig.json | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1220fc8..181f96d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,14 @@ "Jest", "Firestore" ], - "main": "index.js", + "main": "dist/cjs/index.js", + "module": "dist/mjs/index.js", + "exports": { + ".": { + "import": "./dist/mjs/index.js", + "require": "./dist/cjs/index.js" + } + }, "types": "index.d.ts", "scripts": { "build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./fixup", diff --git a/tsconfig.json b/tsconfig.json index e83c4f5..7778c58 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,10 @@ "compilerOptions": { "module": "esnext", "outDir": "dist/mjs", - "target": "esnext" + "target": "esnext", + "types": [ + "jest", + "node" + ] } } \ No newline at end of file