Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "cye2e", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
const version = "2.0.1"; | ||
const version = "2.0.2"; | ||
@@ -10,0 +10,0 @@ // Check command-line arguments for --version or --help |
@@ -7,18 +7,20 @@ #!/usr/bin/env node | ||
export async function createGitIgnoreFile(answers) { | ||
// Define the content with no leading whitespace | ||
const ignoreContent = ` | ||
# node_modules | ||
node_modules/ | ||
# MacOS file | ||
.DS_Store | ||
# Jetbrains generated file | ||
.idea/ | ||
# VsCode generated file | ||
.vscode/ | ||
# Cypress reports | ||
cypress/videos/ | ||
cypress/screenshots/`.trim(); | ||
if (answers.ignoreFile) { | ||
const ignorePath = path.join(process.cwd(), ".gitignore"); | ||
// Define the content with no leading whitespace | ||
const ignoreContent = `# node_modules | ||
node_modules/ | ||
# MacOS file | ||
.DS_Store | ||
# Jetbrains generated file | ||
.idea/ | ||
# VsCode generated file | ||
.vscode/ | ||
# Cypress reports | ||
cypress/videos/ | ||
cypress/screenshots/`; | ||
// Write .gitignore file as plain text | ||
@@ -25,0 +27,0 @@ await fs.writeFile(ignorePath, ignoreContent, "utf8"); |
688
25697