aws-pdk icon indicating copy to clipboard operation
aws-pdk copied to clipboard

[BUG] type-safe-api.parse-openapi-spec command not found

Open davidpintotrusst opened this issue 1 year ago • 1 comments

Describe the bug

During the build of a typesafe api project when running the following command:

npx --yes -p @aws/pdk@$AWS_PDK_VERSION type-safe-api.parse-openapi-spec

The following error is output:

sh: type-safe-api.parse-openapi-spec: command not found

Expected Behavior

It was expected that the spec is read

Current Behavior

sh: type-safe-api.parse-openapi-spec: command not found

Task "build » compile » generate" failed when executing "npx --yes -p @aws/pdk@$AWS_PDK_VERSION type-safe-api.parse-openapi-spec

Reproduction Steps

Running the build with typesafeapi using pdk version 0.23.55

Possible Solution

No response

Additional Information/Context

No response

PDK version used

0.23.55

What languages are you seeing this issue on?

Typescript

Environment details (OS name and version, etc.)

macOSX Ventura 13.6.9 npm 9.8.1 node 18.18.2

davidpintotrusst avatar Oct 05 '24 04:10 davidpintotrusst

Hi! That script has now been moved to a subcommand of the type-safe-api command (see here). Please can you try re-synthesising your project files (eg npx projen)? That should update your projects to point to the new script.

cogwirrel avatar Oct 05 '24 11:10 cogwirrel

Closing this as re-synthesizing will adjust the command that's run from type-safe-api.parse-openapi-spec to type-safe-api parse-openapi-spec. Feel free to comment and reopen if you're still having issues! :)

cogwirrel avatar Oct 10 '24 22:10 cogwirrel