Feedback on generated client package.json #1618
Labels
closed-for-staleness
feature-request
New feature or enhancement. May require GitHub community feedback.
investigating
Issue is being investigated and/or work is in progress to resolve the issue.
Is your feature request related to a problem? Please describe.
I try to generate non-public clients outside the repository. I noticed some issues with the generated clients. The current generated
scripts
inpackage.json
:clean
does not clean the documentation. I would expect after clean everything is gonebuild-documentation
cleans everything (except docs) which looks unnecessarybuild-documentation
should be named with colon:build:documentation
prepublishOnly
should run tests and generate documentation to ensure everything works before publishingpretest
buildscjs
buttest
executes a full build anyway sopretest
is not necessarybuild
.the generatedjest.config.js
includes../../jest.config.base.js
which is not generated. It would be better if the client is self-contained. The shared jest config only contains one value which looks pretty standard. Should that be skipped to avoid a dependency to the mono-repo?remove-*
targets look inconsistent withbuild:
tasks. Maybe change toremove:dist
with colon?files: ["dist", "types"]
would be cleaner than the current.npmignore
as mentioned in fix(codgen): only publish types and dist folder to npm #1615Edit 2021-05-22: Item 2., 3., 5., and 8. are already solved in the meanwhile.
Describe the solution you'd like
I suggest the following instead:
I'm happy to create a pull-request with the change but I couldn't find where the file comes from.
The text was updated successfully, but these errors were encountered: