Last active
June 27, 2017 06:13
-
-
Save SamVerschueren/2ee836de71fb9726a2e85dd391b63d29 to your computer and use it in GitHub Desktop.
transformation function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const transform = pkg => { | |
pkg.license = 'MIT'; | |
return pkg; | |
}; | |
exports.transformations = [ | |
{ | |
transform, | |
commit: 'change license to MIT', | |
push: true, | |
files: [ | |
'package.json' | |
] | |
} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const transform = pkg => { | |
pkg.license = 'MIT'; | |
return pkg; | |
}; | |
exports.transformations = [ | |
{ | |
transform, | |
files: [ | |
'package.json' | |
] | |
}, | |
'change license to MIT', | |
{ | |
transformFoo, | |
files: [ | |
'foo.json' | |
] | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment