@gluestack/cli-utils
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -26,2 +26,12 @@ #!/usr/bin/env node | ||
try { | ||
(0, child_process_1.spawnSync)(`mv gitignore .gitignore`, { | ||
cwd: projectPath, | ||
stdio: 'inherit', | ||
shell: true, | ||
}); | ||
} | ||
catch (err) { | ||
prompts_1.log.error(`\x1b[31mError: gitignore file not found in template!\x1b[0m`); | ||
} | ||
try { | ||
(0, child_process_1.spawnSync)(`git init && ${installationMethod} && rm .npmignore`, { | ||
@@ -28,0 +38,0 @@ cwd: projectPath, |
@@ -13,3 +13,3 @@ { | ||
"description": "A CLI tool for easily adding components from gluestack-ui to your projects.", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "MIT", | ||
@@ -16,0 +16,0 @@ "main": "dist/index.js", |
@@ -13,2 +13,12 @@ #!/usr/bin/env node | ||
try {spawnSync(`mv gitignore .gitignore`, | ||
{ | ||
cwd: projectPath, | ||
stdio: 'inherit', | ||
shell: true, | ||
}); | ||
} catch (err) { | ||
log.error(`\x1b[31mError: gitignore file not found in template!\x1b[0m`); | ||
} | ||
try { | ||
@@ -23,2 +33,3 @@ spawnSync( | ||
); | ||
s.stop(`\x1b[32mDependencies have been installed successfully.\x1b[0m`); | ||
@@ -25,0 +36,0 @@ } catch (err) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8915
187