Skip to content

Commit 5cbf04f

Browse files
committed
feat : change in package.json
1 parent d18f1ea commit 5cbf04f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "lets-create-api",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "indexAn awesome CLI tool designed to accelerate the creation of Backend projects, making it effortless to build RESTful APIs with various backend and database technology combinations.",
3+
"version": "1.0.3",
4+
"description": "An awesome CLI tool designed to accelerate the creation of Backend projects, making it effortless to build RESTful APIs with various backend and database technology combinations.",
5+
"main": "index.js",
66
"bin": {
77
"lets-create-api": "index.js"
88
},
@@ -33,5 +33,8 @@
3333
"dependencies": {
3434
"colorette": "^2.0.20",
3535
"enquirer": "^2.4.1"
36+
},
37+
"publishConfig": {
38+
"registry": "https://npm.pkg.github.com"
3639
}
37-
}
40+
}

src/utils/githubPush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const handleGitHubFlow = async (repoName) => {
1111
const githubRepoLink = repoLinkResponse.repoLink
1212
const removeOriginCommand = `cd ${repoName} && git remote remove origin`
1313
const changeOriginCommand = `cd ${repoName} && git remote add origin ${githubRepoLink}`
14-
const pushToNewRepoCommand = `cd ${repoName} && git push -u origin master`
14+
const pushToNewRepoCommand = `cd ${repoName} && git push -u origin main`
1515

1616
const removeOrigin = runCommand(removeOriginCommand)
1717
if (!removeOrigin) process.exit(-1)

0 commit comments

Comments
 (0)