Skip to content

Commit

Permalink
Merge pull request #24 from d7sd6u/main
Browse files Browse the repository at this point in the history
fix: Fix native NodeJS ESM modules support
  • Loading branch information
rikukissa committed Mar 14, 2023
2 parents b0e2845 + c3a8d17 commit a5d60cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"description": "Turn runtime types into static typescript types automatically",
"unpkg": "dist/index.min.js",
"main": "dist/index.js",
"module": "dist/index.mjs",
"exports": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"types": "types/index.d.ts",
"license": "MIT",
"author": {
Expand Down
5 changes: 5 additions & 0 deletions packages/runtime/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default {
file: pkg.main,
sourcemap: false,
},
{
format: "esm",
file: pkg.module,
sourcemap: false,
},
{
name: pkg["umd:name"] || pkg.name,
format: "umd",
Expand Down

0 comments on commit a5d60cc

Please sign in to comment.