Skip to content

Commit

Permalink
refactor: switch package to ESM and set 'type' to 'module' in package…
Browse files Browse the repository at this point in the history
….json
  • Loading branch information
kiki-kanri committed Apr 21, 2024
1 parent cdfd392 commit 66f3ee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"type": "git",
"url": "git+https://github.com/kiki-kanri/kikiutils-node.git"
},
"type": "module",
"scripts": {
"build": "rm -rf ./dist && tsc-multi",
"bumplog": "changelogen --bump"
Expand All @@ -28,11 +29,12 @@
"typescript": "^5.4.5"
},
"keywords": [],
"engines": {
"node": ">=18"
},
"exports": {
"./*": {
"default": "./*.mjs",
"import": "./*.mjs",
"require": "./*.cjs",
"types": "./*.d.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion tsc-multi.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"targets": [{ "extname": ".cjs" }, { "extname": ".mjs" }]
"targets": [{ "extname": ".mjs" }]
}

0 comments on commit 66f3ee3

Please sign in to comment.