Skip to content

Commit

Permalink
Merge pull request #43 from clockor2/webpack-config
Browse files Browse the repository at this point in the history
fix: fix webpack config so module is avaible
  • Loading branch information
Wytamma authored Oct 2, 2023
2 parents 3ea1c37 + 688e7b9 commit fcde524
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
"version": "0.0.0-development",
"description": "A simple typescript library for phylogenetic trees",
"main": "./lib/index.js",
"module": "./lib/esm/index.js",
"browser": "./lib/dist/phylojs.min.js",
"files": [
"lib/**/*"
],
"scripts": {
"build": "webpack",
"build": "npm run clean && npm run build:cjs && npm run build:esm && webpack",
"build:cjs": "tsc --module commonjs --outDir ./lib",
"build:esm": "tsc --module ESNext --outDir ./lib/esm",
"clean": "rm -rf ./lib/",
"cm": "cz",
"lint": "eslint ./src/ --fix",
Expand Down

0 comments on commit fcde524

Please sign in to comment.