File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- const { join, relative } = require ( "path" ) ;
2- const glob = require ( "glob" ) ;
31const spawn = require ( "cross-spawn" ) ;
42const validate = require ( "validate-npm-package-name" ) ;
53
6- const rootDir = __dirname ;
7-
84module . exports = {
95 prompts : require ( "./prompts" ) ,
106 templateData ( ) {
@@ -26,11 +22,14 @@ module.exports = {
2622 if ( this . answers . semanticrelease ) {
2723 scripts . push (
2824 '\t\t"semantic-release": "semantic-release"' ,
29- '\t\t"travis-deploy-once": "travis-deploy-once"' ,
3025 '\t\t"cz": "git-cz"'
3126 ) ;
3227 }
3328
29+ if ( this . answers . travis ) {
30+ scripts . push ( '\t\t"travis-deploy-once": "travis-deploy-once"' ) ;
31+ }
32+
3433 const devDependencies = [
3534 '\t\t"@babel/cli": "^7.2.3"' ,
3635 '\t\t"@babel/core": "^7.3.4"' ,
@@ -120,7 +119,7 @@ module.exports = {
120119 filters : {
121120 "__tests__/**" : "tests" ,
122121 jest_config_js : "tests" ,
123- travis_yml : "semanticrelease " ,
122+ travis_yml : "travis " ,
124123 releaserc : "semanticrelease"
125124 }
126125 }
You can’t perform that action at this time.
0 commit comments