Skip to content

Commit

Permalink
Add ESM/CJS double-publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Jan 21, 2024
1 parent fb140fc commit f1b0de5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,30 @@
"type": "git",
"url": "git://github.com/brianloveswords/buffer-crc32.git"
},
"main": "index.js",
"scripts": {
"test": "tap tests/*.test.js --reporter classic"
"test": "tap tests/*.test.js --reporter classic",
"build": "unbuild",
"prepublishOnly": "npm run build"
},
"type": "commonjs",
"dependencies": {},
"devDependencies": {
"tap": "~11.1.5"
"tap": "~11.1.5",
"unbuild": "^2.0.0"
},
"optionalDependencies": {},
"engines": {
"node": ">=8.0.0"
},
"license": "MIT",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"files": [
"index.js"
"dist"
]
}
File renamed without changes.

0 comments on commit f1b0de5

Please sign in to comment.