diff --git a/modules/openapi-generator/src/main/resources/typescript-angular/package.mustache b/modules/openapi-generator/src/main/resources/typescript-angular/package.mustache index a55fa3c3f5de..4eb48018bbae 100644 --- a/modules/openapi-generator/src/main/resources/typescript-angular/package.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angular/package.mustache @@ -13,6 +13,7 @@ ], "license": "{{licenseName}}", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json b/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json index f5fffd2a55fe..e2851267a47d 100644 --- a/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json +++ b/samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v13-provided-in-root/builds/with-npm/package.json b/samples/client/petstore/typescript-angular-v13-provided-in-root/builds/with-npm/package.json index 7c3b658c06f2..9095d33c61e8 100644 --- a/samples/client/petstore/typescript-angular-v13-provided-in-root/builds/with-npm/package.json +++ b/samples/client/petstore/typescript-angular-v13-provided-in-root/builds/with-npm/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v19-with-angular-dependency-params/builds/default/package.json b/samples/client/petstore/typescript-angular-v19-with-angular-dependency-params/builds/default/package.json index 958b69fd631f..f3556859d47b 100644 --- a/samples/client/petstore/typescript-angular-v19-with-angular-dependency-params/builds/default/package.json +++ b/samples/client/petstore/typescript-angular-v19-with-angular-dependency-params/builds/default/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v19/builds/deep-object/package.json b/samples/client/petstore/typescript-angular-v19/builds/deep-object/package.json index 71f619b0dead..b59e5d443084 100644 --- a/samples/client/petstore/typescript-angular-v19/builds/deep-object/package.json +++ b/samples/client/petstore/typescript-angular-v19/builds/deep-object/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v19/builds/default/package.json b/samples/client/petstore/typescript-angular-v19/builds/default/package.json index 24645d6e839c..4b03cb4d0f82 100644 --- a/samples/client/petstore/typescript-angular-v19/builds/default/package.json +++ b/samples/client/petstore/typescript-angular-v19/builds/default/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": { diff --git a/samples/client/petstore/typescript-angular-v20/builds/default/package.json b/samples/client/petstore/typescript-angular-v20/builds/default/package.json index 6e3130abc485..ba2967e936ec 100644 --- a/samples/client/petstore/typescript-angular-v20/builds/default/package.json +++ b/samples/client/petstore/typescript-angular-v20/builds/default/package.json @@ -13,6 +13,7 @@ ], "license": "Unlicense", "scripts": { + "prepare": "npm run build", "build": "ng-packagr -p ng-package.json" }, "peerDependencies": {