kaddidlehopper 0.7.1 → 0.7.2
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/cli.js +1 -1
- package/package.json +1 -1
- package/src/cli.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ export function cli() {
|
|
|
91
91
|
try {
|
|
92
92
|
console.log(chalk.gray('⟳ Fetching template...'));
|
|
93
93
|
const sparsePaths = [`starters/${starterId}`, ...(frameworkId ? [`frameworks/${frameworkId}`] : [])];
|
|
94
|
-
execSync(`git clone --depth=1 --
|
|
94
|
+
execSync(`git clone --depth=1 --sparse ${GITHUB_REPO} ${tmpDir}`, { stdio: 'pipe' });
|
|
95
95
|
execSync(`git -C ${tmpDir} sparse-checkout set ${sparsePaths.join(' ')}`, { stdio: 'pipe' });
|
|
96
96
|
const starterPath = join(tmpDir, 'starters', starterId);
|
|
97
97
|
if (!existsSync(starterPath)) {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -127,7 +127,7 @@ export function cli() {
|
|
|
127
127
|
console.log(chalk.gray('⟳ Fetching template...'))
|
|
128
128
|
const sparsePaths = [`starters/${starterId}`, ...(frameworkId ? [`frameworks/${frameworkId}`] : [])]
|
|
129
129
|
execSync(
|
|
130
|
-
`git clone --depth=1 --
|
|
130
|
+
`git clone --depth=1 --sparse ${GITHUB_REPO} ${tmpDir}`,
|
|
131
131
|
{ stdio: 'pipe' },
|
|
132
132
|
)
|
|
133
133
|
execSync(
|