Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
fix(esm): resolve esm imports (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Indian Ocean Roleplay authored Nov 11, 2021
1 parent df656f8 commit 616f2bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"mock-socket": "^9.0.6",
"prettier": "^2.4.1",
"standard-version": "^9.3.2",
"tsup": "^5.5.0",
"tsup": "^5.6.0",
"typedoc": "^0.22.7",
"typescript": "^4.4.4"
},
Expand Down
3 changes: 3 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { Options } from 'tsup';

export const tsup: Options = {
banner: {
js: 'import path from "path";\nimport { createRequire as topLevelCreateRequire } from "module";\nconst require = topLevelCreateRequire(path.resolve(import.meta.url));\n',
},
clean: true,
dts: true,
entryPoints: ['src/index.ts'],
Expand Down

0 comments on commit 616f2bc

Please sign in to comment.