generated from apollographql/typescript-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Hi there, thanks for creating this integration!
Unfortunately I am unable to run this package in production, as the postinstall script tries to run tsc.
In my production deployments devDependencies are not installed. So when npm performs postinstall on @as-integrations/koa, the call to tsc fails as there are a bunch of @types packages missing.
It appears this package builds the dist itself on postinstall instead of building and including the dist in the published package. Is there a particular reason for this?
You can avoid having to run the typescript compiler on consumers machines by changing the "postinstall" script to "prepare" or "prepack", then add "files": ["dist"] so the built files would be included in the package.
Metadata
Metadata
Assignees
Labels
No labels