@imksh/create 1.0.1 → 1.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/package.json
CHANGED
|
@@ -17,9 +17,8 @@ export async function installPackages(targetDir) {
|
|
|
17
17
|
// Our mern template will be designed such that 'npm install' at root installs everything
|
|
18
18
|
// using workspaces or postinstall scripts.
|
|
19
19
|
|
|
20
|
-
await execa(
|
|
20
|
+
await execa(pm, ['install'], {
|
|
21
21
|
cwd: targetDir,
|
|
22
|
-
stdio: 'ignore'
|
|
23
|
-
shell: true
|
|
22
|
+
stdio: 'ignore'
|
|
24
23
|
});
|
|
25
24
|
}
|
package/src/utils/runGit.js
CHANGED
|
@@ -2,10 +2,11 @@ import { execa } from 'execa';
|
|
|
2
2
|
|
|
3
3
|
export async function runGit(targetDir) {
|
|
4
4
|
try {
|
|
5
|
-
await execa('git init', { cwd: targetDir, stdio: 'ignore'
|
|
6
|
-
await execa('git add .', { cwd: targetDir, stdio: 'ignore'
|
|
7
|
-
await execa('git commit -m
|
|
5
|
+
await execa('git', ['init'], { cwd: targetDir, stdio: 'ignore' });
|
|
6
|
+
await execa('git', ['add', '.'], { cwd: targetDir, stdio: 'ignore' });
|
|
7
|
+
await execa('git', ['commit', '-m', 'Initial commit from @imksh/cli'], { cwd: targetDir, stdio: 'ignore' });
|
|
8
8
|
} catch (err) {
|
|
9
9
|
throw new Error('Git initialization failed');
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
|