project-serum / serum-ts

Project Serum TypeScript monorepo
https://projectserum.com
Apache License 2.0
270 stars 245 forks source link

remove package.json `source` & source maps from serum package #236

Closed wentokay closed 2 years ago

wentokay commented 2 years ago

the src/ lib isn't included in the @project-serum/serum package on npm

but the source field is pointing to it and source maps are generated in the typescript output

this broken link from [package.json]source > [dir]src, is causing parcel to error-out when building a project that has @project-serum/serum as a dependency

to fix I think you could either remove source field in package.json and (optionally) source maps from the build, or include the src directory in the package archive on npm

similar discussion: https://github.com/googleapis/google-cloud-node/issues/2867