maticzav / graphql-middleware

Split up your GraphQL resolvers in middleware functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript source file missing in npm package

mieszko4 opened this issue · comments

I have a problem with Sentry. It complains about missing sources when stack with graphql-middleware is reached.

  1. In node_modules/graphql-middleware/dist/index.js there is a reference to //# sourceMappingURL=index.js.map which is ok since node_modules/graphql-middleware/dist/index.js.map does exist in the npm package.
  2. However in node_modules/graphql-middleware/dist/index.js.map there is reference to "sources":["../src/index.ts"] which is not shipped with the package.

Currently, my workaround is to manually pull git repository to get these .ts file and upload it to sentry.
I am not sure what is the best practice here, i.e. should src/index.ts be shipped with npm package?
I believe that would make sense since you are already shipping .map file but that would increase package size.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.