diff --git a/data/lib/index.ts b/data/lib/index.ts index fd6891eb..696f1c71 100644 --- a/data/lib/index.ts +++ b/data/lib/index.ts @@ -3,8 +3,6 @@ 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 6683b035..4de552b4 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -3,7 +3,7 @@ "incremental": true, "target": "es2020", "lib": ["es2020"], - "module": "esnext", + "module": "commonjs", "jsx": "react", "strict": true, "moduleResolution": "node",