Skip to content

Commit 5221ca2

Browse files
authored
feat(typescript): add repository field to package.json (#12292)
1 parent 559a261 commit 5221ca2

38 files changed

Lines changed: 152 additions & 2 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-angular/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{{npmVersion}}}",
44
"description": "OpenAPI client for {{{npmName}}}",
55
"author": "OpenAPI-Generator Contributors",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"keywords": [
711
"openapi-client",
812
"openapi-generator"

modules/openapi-generator/src/main/resources/typescript-aurelia/package.json.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "{{{npmName}}}{{^npmName}}typescript-aurelia-api{{/npmName}}",
33
"version": "{{{npmVersion}}}{{^npmVersion}}0.0.0{{/npmVersion}}",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
7+
},
48
"license": "Unlicense",
59
"main": "./dist/Api.js",
610
"browser": "./dist/Api.js",

modules/openapi-generator/src/main/resources/typescript-axios/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{npmVersion}}",
44
"description": "OpenAPI client for {{npmName}}",
55
"author": "OpenAPI-Generator Contributors",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"keywords": [
711
"axios",
812
"typescript",

modules/openapi-generator/src/main/resources/typescript-fetch/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{npmVersion}}",
44
"description": "OpenAPI client for {{npmName}}",
55
"author": "OpenAPI-Generator",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
{{#packageAsSourceOnlyLibrary}}
711
"main": "./index.ts",
812
{{/packageAsSourceOnlyLibrary}}

modules/openapi-generator/src/main/resources/typescript-inversify/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{{npmVersion}}}",
44
"description": "OpenAPI client for {{{npmName}}}",
55
"author": "OpenAPI-Generator Contributors",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"keywords": [
711
"openapi-client",
812
"openapi-generator"

modules/openapi-generator/src/main/resources/typescript-jquery/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "{{npmName}}",
33
"version": "{{npmVersion}}",
44
"description": "JQuery client for {{npmName}}",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
8+
},
59
"main": "api.js",
610
"scripts": {
711
"build": "tsc"

modules/openapi-generator/src/main/resources/typescript-nestjs/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{{npmVersion}}}",
44
"description": "REST client for {{{npmName}}}",
55
"author": "OpenAPI Generator Contributors",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"keywords": [
711
"swagger-client"
812
],

modules/openapi-generator/src/main/resources/typescript-node/package.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "{{npmName}}",
33
"version": "{{npmVersion}}",
44
"description": "NodeJS client for {{npmName}}",
5-
"repository": "{{gitUserId}}/{{gitRepoId}}",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
8+
},
69
"main": "dist/api.js",
710
"types": "dist/api.d.ts",
811
"scripts": {

modules/openapi-generator/src/main/resources/typescript-redux-query/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{npmVersion}}",
44
"description": "OpenAPI client for {{npmName}}",
55
"author": "OpenAPI-Generator",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"main": "./dist/index.js",
711
"typings": "./dist/index.d.ts",
812
"scripts" : {

modules/openapi-generator/src/main/resources/typescript-rxjs/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{npmVersion}}",
44
"description": "OpenAPI client for {{npmName}}",
55
"author": "OpenAPI-Generator",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git"
9+
},
610
"main": "./dist/index.js",
711
"typings": "./dist/index.d.ts",
812
"scripts" : {

0 commit comments

Comments
 (0)