Skip to content

Commit

Permalink
feat!: drop browser build and use exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 26, 2021
1 parent a225469 commit b626770
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions package.json
Expand Up @@ -11,22 +11,19 @@
],
"repository": "unjs/hookable",
"license": "MIT",
"contributors": [
"Sebastien Chopin (@Atinux)",
"Clark Du (@clarkdo)",
"Pooya Parsa (@pi0)"
],
"main": "./dist/hookable.js",
"exports": {
"import": "./dist/hookable.mjs",
"require": "./dist/hookable.cjs"
},
"main": "./dist/hookable.cjs",
"module": "./dist/hookable.mjs",
"browser": "./dist/hookable.umd.js",
"types": "./types/hookable.d.ts",
"files": [
"dist",
"types"
],
"scripts": {
"build": "siroc build && yarn build:browser",
"build:browser": "bili src/hookable.ts --format umd --minify --module-name Hookable",
"build": "siroc build",
"lint": "eslint --ext .ts src",
"prepublish": "yarn build",
"release": "yarn test && yarn build && standard-version && git push --follow-tags && npm publish",
Expand Down

0 comments on commit b626770

Please sign in to comment.