From 25bfb1b6482081e26f2b2abc0537dbdb3f28c9e7 Mon Sep 17 00:00:00 2001 From: sbruhns Date: Fri, 27 Feb 2026 15:06:35 +0100 Subject: [PATCH] typescript client: Add repo url to package.json to fix npm publish --- openapi-generator/templates/typescript-fetch/package.mustache | 4 ++++ openapi-generator/typescript_lang.yaml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openapi-generator/templates/typescript-fetch/package.mustache b/openapi-generator/templates/typescript-fetch/package.mustache index 030c81594..51ee893d8 100644 --- a/openapi-generator/templates/typescript-fetch/package.mustache +++ b/openapi-generator/templates/typescript-fetch/package.mustache @@ -11,6 +11,10 @@ "prepare": "npm run build", "test": "jest" }, + "repository": { + "type": "git", + "url": "{{repositoryUrl}}" + }, "devDependencies": { "@types/jest": "^29.5.5", "form-data": "^4.0.0", diff --git a/openapi-generator/typescript_lang.yaml b/openapi-generator/typescript_lang.yaml index 102b8be64..530a7e8ad 100644 --- a/openapi-generator/typescript_lang.yaml +++ b/openapi-generator/typescript_lang.yaml @@ -1,7 +1,8 @@ -'!include': shared.yaml +"!include": shared.yaml generatorName: typescript-fetch outputDir: clients/typescript npmName: phrase-js npmVersion: 3.16.0 typescriptThreePlus: true templateDir: openapi-generator/templates/typescript-fetch +repositoryUrl: https://github.com/phrase/phrase-js