Skip to content

Commit

Permalink
CommonJS + ES module dual build
Browse files Browse the repository at this point in the history
  • Loading branch information
dcsaszar committed Apr 3, 2021
1 parent 4cb459a commit 7d2de1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@
],
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"name": "scroll-to-fragment",
"peerDependencies": {
"history": "4 || 5"
},
"repository": "github:Scrivito/scroll-to-fragment",
"scripts": {
"prepublishOnly": "rm -rf dist && npm test && tsc --build",
"build": "tsc && tsc --outDir dist/esm --target ES6 --declaration false",
"prepublishOnly": "rm -rf dist && npm test && npm run build",
"test": "karma start --single-run",
"watch": "karma start"
},
"types": "dist/index.d.ts",
"version": "1.0.11"
}

0 comments on commit 7d2de1a

Please sign in to comment.