Skip to content

Commit 1dc7de5

Browse files
committed
feat(generator): update package.json template for monorepo compatibility
1 parent 292c688 commit 1dc7de5

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

core/generator/gapic-generator-typescript/templates/cjs/typescript_gapic/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"name": "{{ api.publishName }}",
33
"version": "0.1.0",
44
"description": "{{ api.naming.productName }} client for Node.js",
5-
"repository": "googleapis/nodejs-{{ api.naming.productName.toKebabCase() }}",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/googleapis/google-cloud-node.git",
8+
"directory": "packages/{{ api.naming.namePath }}"
9+
},
10+
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/{{ api.naming.namePath }}",
611
"license": "Apache-2.0",
712
"author": "Google LLC",
813
"main": "build/src/index.js",

core/generator/gapic-generator-typescript/templates/esm/typescript_gapic/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"name": "{{ api.publishName }}",
33
"version": "0.1.0",
44
"description": "{{ api.naming.productName }} client for Node.js",
5-
"repository": "googleapis/nodejs-{{ api.naming.productName.toKebabCase() }}",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/googleapis/google-cloud-node.git",
8+
"directory": "packages/{{ api.naming.namePath }}"
9+
},
10+
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/{{ api.naming.namePath }}",
611
"license": "Apache-2.0",
712
"author": "Google LLC",
813
"main": "./build/cjs/src/index.cjs",

0 commit comments

Comments
 (0)