Skip to content

Commit

Permalink
fix: include dist directories to package
Browse files Browse the repository at this point in the history
`dist-*` doesn't work with `npm pack` (at least with 9.5.1) and nothing is packed.

This commit fixes `files` to specify individual dist directories explicitly
so that `npm pack` can include all files.
  • Loading branch information
riywo authored Apr 4, 2023
1 parent 9a52172 commit d0bc925
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@
"dist-types/*": ["dist-types/ts3.4/*"]
}
},
"files": ["dist-*"]
"files": [
"dist-cjs",
"dist-types",
"dist-es"
]
}

0 comments on commit d0bc925

Please sign in to comment.