Skip to content

Commit

Permalink
Include source files in lib/ in packed package
Browse files Browse the repository at this point in the history
The source maps in `lib.cjs/` and `lib.esm/` reference the original TypeScript source files in `lib/`, so we should include them in the packed version. Then bundlers and debuggers can properly resole the source maps.
  • Loading branch information
Acconut committed Jan 24, 2025
1 parent e9f0740 commit 6e876a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}
}
},
"files": ["lib.cjs/", "lib.esm/", "dist/", "node", "browser"],
"files": ["lib/", "lib.cjs/", "lib.esm/", "dist/", "node/", "browser/"],
"engines": {
"node": ">=18"
},
Expand Down

0 comments on commit 6e876a6

Please sign in to comment.