Skip to content

Commit

Permalink
fix: support node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alex8088 committed Mar 10, 2024
1 parent e62a6f0 commit c4aca28
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/nls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
"name": "@tiny-libs/nls",
"version": "1.0.0",
"description": "Tiny internationalization library.",
"main": "dist/index.global.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"unpkg": "dist/index.global.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"files": [
"dist"
],
Expand All @@ -26,7 +32,7 @@
"nls"
],
"scripts": {
"build": "tsup src/index.ts --clean --dts --format esm,iife",
"build": "unbuild",
"test": "node test.mjs"
}
}

0 comments on commit c4aca28

Please sign in to comment.