From 3f60f61e0059a6773d617fe04f46664c25e04a39 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 21 Aug 2020 06:43:47 -0400 Subject: [PATCH] Revert "Now that we're TS, move back to commonjs for jest" This reverts commit 8b6c8586115098e287d84f36a9064f5d5e1aebff. --- data/lib/index.ts | 2 ++ tsconfig-base.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/lib/index.ts b/data/lib/index.ts index 148dbf25..785c20fe 100644 --- a/data/lib/index.ts +++ b/data/lib/index.ts @@ -3,6 +3,8 @@ import path from 'path'; import { fileURLToPath } from 'url'; import fs from 'fs'; +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + const libdir = path.join(__dirname, "../.."); export type Type = { diff --git a/tsconfig-base.json b/tsconfig-base.json index 4de552b4..6683b035 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -3,7 +3,7 @@ "incremental": true, "target": "es2020", "lib": ["es2020"], - "module": "commonjs", + "module": "esnext", "jsx": "react", "strict": true, "moduleResolution": "node",