speakeasy-api / speakeasy

Speakeasy CLI - Enterprise developer experience for your API
https://speakeasyapi.dev/
Other
180 stars 14 forks source link

[SPE-3377] Feature: Duplicate entries in package.json #644

Open lucassimao opened 5 months ago

lucassimao commented 5 months ago

I'm adding a custom script to my final package.json file by doing the following in the .speakeasy/gen.yaml file:

image

Unfortunately for the preinstall script, I'm ending up with two scripts properties in my package.json file:

image

am I using additionalPackageJSON wrongly or is it a bug?

From SyncLinear.com | SPE-3377

AshGodfrey commented 5 months ago

Hey @lucassimao - additionalPackageJSON is meant to add additional properties into the package.json file, rather than augment ones that Speakeasy generates.

That said this has been noted as feature request, thank you!