Skip to content

Commit

Permalink
fix: Publish ESM and CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Sep 7, 2020
1 parent fd091cc commit 7736933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Various Japanese text conversion utilities",
"author": "Brian Birtles",
"scripts": {
"build": "tsc",
"build": "tsc --outDir dist/esm && tsc -m commonjs --outDir dist/cjs",
"test": "jest",
"prepublish": "tsc",
"release": "standard-version"
Expand All @@ -17,9 +17,11 @@
"url": "https://github.com/birchill/normal-jp/issues"
},
"files": [
"dist"
"dist/**"
],
"main": "dist/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"typings": "dist/esm/index.d.ts",
"homepage": "https://github.com/birchill/normal-jp#readme",
"devDependencies": {
"@types/jest": "^24.0.19",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"alwaysStrict": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": true,
"lib": ["dom", "dom.iterable", "es2017", "es2017.object"],
Expand Down

0 comments on commit 7736933

Please sign in to comment.