create-alta-app 1.6.0 → 1.6.1
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/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -313,7 +313,7 @@ async function main() {
|
|
|
313
313
|
// ── Step 1: Clone template ──
|
|
314
314
|
const spinnerClone = ora({ text: 'Downloading template...', indent: 2 }).start();
|
|
315
315
|
try {
|
|
316
|
-
run(`npx --yes degit ${TEMPLATE_REPO}#${BRANCH} "${
|
|
316
|
+
run(`npx --yes degit ${TEMPLATE_REPO}#${BRANCH} "${targetDir}"`, process.cwd());
|
|
317
317
|
|
|
318
318
|
const cliDir = path.join(targetDir, 'packages', 'create-alta-app');
|
|
319
319
|
if (fs.existsSync(cliDir)) fs.rmSync(cliDir, { recursive: true, force: true });
|