File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ const os = require('os');
7
7
const _ = require ( 'lodash' ) ;
8
8
const google = require ( 'googleapis' ) . google ;
9
9
10
- const packageJson = require ( '../package.json' ) ;
10
+ const pluginPackageJson = require ( '../package.json' ) ; // eslint-disable-line import/newline-after-import
11
+ const googleApisPackageJson = require ( require . resolve ( 'googleapis/package.json' ) ) ; // eslint-disable-line import/no-dynamic-require
11
12
12
13
const constants = {
13
14
providerName : 'google' ,
@@ -24,8 +25,8 @@ class GoogleProvider {
24
25
this . serverless . setProvider ( constants . providerName , this ) ;
25
26
26
27
const serverlessVersion = this . serverless . version ;
27
- const pluginVersion = packageJson . version ;
28
- const googleApisVersion = packageJson . dependencies . googleapis ;
28
+ const pluginVersion = pluginPackageJson . version ;
29
+ const googleApisVersion = googleApisPackageJson . version ;
29
30
30
31
google . options ( {
31
32
headers : {
You can’t perform that action at this time.
0 commit comments