Skip to content

Commit e2851fc

Browse files
add package.json to IAM
1 parent 2a13718 commit e2851fc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/pubsub/src/iam.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ function IAM(pubsub, id) {
7373
scopes: [
7474
'https://www.googleapis.com/auth/pubsub',
7575
'https://www.googleapis.com/auth/cloud-platform'
76-
]
76+
],
77+
packageJson: require('../package.json')
7778
};
7879

7980
this.id = id;

packages/pubsub/test/iam.js

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe('IAM', function() {
6565
'https://www.googleapis.com/auth/pubsub',
6666
'https://www.googleapis.com/auth/cloud-platform'
6767
]);
68+
assert.deepEqual(config.packageJson, require('../package.json'));
6869

6970
assert.strictEqual(options, PUBSUB.options);
7071
});

0 commit comments

Comments
 (0)