@minnai/create-aura-app 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scaffold.js +4 -4
- package/package.json +1 -1
package/dist/scaffold.js
CHANGED
|
@@ -39,9 +39,9 @@ async function scaffold(options) {
|
|
|
39
39
|
// Initialize Git
|
|
40
40
|
if (git) {
|
|
41
41
|
try {
|
|
42
|
-
(0, child_process_1.execSync)('git init', { cwd: root, stdio: 'ignore' });
|
|
43
|
-
(0, child_process_1.execSync)('git add -A', { cwd: root, stdio: 'ignore' });
|
|
44
|
-
(0, child_process_1.execSync)('git commit -m "Initial commit from create-aura-app"', { cwd: root, stdio: 'ignore' });
|
|
42
|
+
(0, child_process_1.execSync)('git init', { cwd: root, stdio: 'ignore', shell: true });
|
|
43
|
+
(0, child_process_1.execSync)('git add -A', { cwd: root, stdio: 'ignore', shell: true });
|
|
44
|
+
(0, child_process_1.execSync)('git commit -m "Initial commit from create-aura-app"', { cwd: root, stdio: 'ignore', shell: true });
|
|
45
45
|
console.log((0, colors_1.dim)('Initialized a git repository.'));
|
|
46
46
|
}
|
|
47
47
|
catch (e) {
|
|
@@ -52,7 +52,7 @@ async function scaffold(options) {
|
|
|
52
52
|
if (install) {
|
|
53
53
|
console.log((0, colors_1.dim)('Installing dependencies... This might take a moment.'));
|
|
54
54
|
try {
|
|
55
|
-
(0, child_process_1.execSync)('npm install', { cwd: root, stdio: 'inherit' });
|
|
55
|
+
(0, child_process_1.execSync)('npm install', { cwd: root, stdio: 'inherit', shell: true });
|
|
56
56
|
}
|
|
57
57
|
catch (e) {
|
|
58
58
|
console.warn((0, colors_1.dim)('Dependency installation failed. You may need to run npm install manually.'));
|