Skip to content

Commit f4c4a8c

Browse files
committed
Fix: CustomPackageInstallation && branches
1 parent 933f85a commit f4c4a8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ install: npm i
1414
script:
1515
- npm run test
1616

17-
after_success: echo "Success"
17+
branches:
18+
only: master

cliRoutes/CustomPackageInstall/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = class CustomPackageInstall {
2929
switch (packageManager) {
3030
case 'Yarn':
3131
customCMD.get(
32-
`${createReactAppYarn} my-app && cd my-app && yarn add ${packages.join(
32+
`${createReactAppYarn} ${folderName} && cd ${folderName} && yarn add ${packages.join(
3333
' '
3434
)} `,
3535
(err, data, stderr) => {
@@ -41,7 +41,7 @@ module.exports = class CustomPackageInstall {
4141

4242
case 'NPM':
4343
customCMD.get(
44-
`${createReactApp} my-app && cd my-app && npm install --save ${packages.join(
44+
`${createReactApp} ${folderName} && cd ${folderName} && npm install --save ${packages.join(
4545
' '
4646
)}`,
4747
(err, data, stderr) => {

0 commit comments

Comments
 (0)