Skip to content

Commit

Permalink
Add 'src' to package.json files to improve source maps (#620)
Browse files Browse the repository at this point in the history
- so library users can actually view source, add breakpoints there,
  etc, etc and not only view types and dist files

Co-authored-by: Anton Gilgur <agilgur5@gmail.com>
Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com>
  • Loading branch information
agilgur5 and yordis authored Mar 17, 2020
1 parent b21d7af commit 287dc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const basicTemplate: Template = {
main: 'dist/index.js',
// module: `dist/${safeName}.esm.js`,
typings: `dist/index.d.ts`,
files: ['dist'],
files: ['dist', 'src'],
engines: {
node: '>=10',
},
Expand Down

3 comments on commit 287dc44

@mugoosse

This comment was marked as off-topic.

@agilgur5

This comment was marked as resolved.

@mugoosse

This comment was marked as resolved.

Please sign in to comment.