File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const fields = {
11
11
user_name : true ,
12
12
user_email : true ,
13
13
beforePushScript : false
14
- }
14
+ } ;
15
15
const cwd = process . cwd ( ) ;
16
16
const config = { } ;
17
17
@@ -22,7 +22,7 @@ for (const [field, isRequired] of Object.entries(fields)) {
22
22
throw Error ( `deployOnGit requires "${ field } " field in package config` ) ;
23
23
}
24
24
25
- if ( configVar ) {
25
+ if ( configVar ) {
26
26
config [ field ] = configVar . replace ( / \$ ( [ a - z A - Z 0 - 9 _ ] + ) / g, ( match , envVarName ) => {
27
27
const envVar = process . env [ envVarName ] ;
28
28
@@ -57,15 +57,15 @@ execSync(`
57
57
git commit --allow-empty -m "${ config . commit } " 2>&1
58
58
` , { cwd } ) ;
59
59
60
- if ( config . beforePushScript ) {
60
+ if ( config . beforePushScript ) {
61
61
console . log ( 'Running beforePushScript...' ) ;
62
62
63
63
try {
64
64
execSync ( `
65
65
cd ${ config . folder } &&
66
66
${ config . beforePushScript }
67
67
` , { cwd } ) ;
68
- } catch ( e ) {
68
+ } catch ( e ) {
69
69
throw Error ( 'Failed to run beforePushScript.' ) ;
70
70
}
71
71
}
You can’t perform that action at this time.
0 commit comments