diff --git a/rollup.config.ts b/rollup.config.ts index bfd9447..da1d1cd 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -5,6 +5,7 @@ import nodeResolve from "@rollup/plugin-node-resolve" import typescript from "@rollup/plugin-typescript" const config = { + context: "globalThis", input: "src/main.ts", output: { exports: "auto", diff --git a/tsconfig.json b/tsconfig.json index ce3a3e7..329185a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,9 +17,11 @@ "outDir": "./dist", "pretty": true, "resolveJsonModule": true, + "rootDir": "./src", "strict": true, "strictNullChecks": true, - "target": "ES2022" + "target": "ES2022", + "types": ["node"] }, "exclude": ["node_modules", "**/*.test.ts", "dist"], "include": ["src"]