diff --git a/package.json b/package.json index 56180d6..835e130 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "lets-create-api", - "version": "1.0.0", - "description": "", - "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.", + "version": "1.0.3", + "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.", + "main": "index.js", "bin": { "lets-create-api": "index.js" }, @@ -33,5 +33,8 @@ "dependencies": { "colorette": "^2.0.20", "enquirer": "^2.4.1" + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com" } -} \ No newline at end of file +} diff --git a/src/utils/githubPush.js b/src/utils/githubPush.js index 81d416b..8daf52f 100644 --- a/src/utils/githubPush.js +++ b/src/utils/githubPush.js @@ -11,7 +11,7 @@ const handleGitHubFlow = async (repoName) => { const githubRepoLink = repoLinkResponse.repoLink const removeOriginCommand = `cd ${repoName} && git remote remove origin` const changeOriginCommand = `cd ${repoName} && git remote add origin ${githubRepoLink}` - const pushToNewRepoCommand = `cd ${repoName} && git push -u origin master` + const pushToNewRepoCommand = `cd ${repoName} && git push -u origin main` const removeOrigin = runCommand(removeOriginCommand) if (!removeOrigin) process.exit(-1)