create-alta-app 1.6.0 → 1.6.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.
Files changed (2) hide show
  1. package/index.mjs +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -264,7 +264,8 @@ async function main() {
264
264
  console.log(pc.magenta(' ┗' + '━'.repeat(W) + '┛'));
265
265
  console.log('');
266
266
 
267
- const MONOREPO_BASE = path.join(os.homedir(), 'alta', 'apps', 'ai-engineer');
267
+ // Install under apps/ai-engineer/ relative to cwd (the monorepo root)
268
+ const MONOREPO_BASE = path.join(process.cwd(), 'apps', 'ai-engineer');
268
269
  const argName = process.argv[2];
269
270
 
270
271
  const response = await prompts(
@@ -313,7 +314,7 @@ async function main() {
313
314
  // ── Step 1: Clone template ──
314
315
  const spinnerClone = ora({ text: 'Downloading template...', indent: 2 }).start();
315
316
  try {
316
- run(`npx --yes degit ${TEMPLATE_REPO}#${BRANCH} "${projectName}"`, process.cwd());
317
+ run(`npx --yes degit ${TEMPLATE_REPO}#${BRANCH} "${targetDir}"`, process.cwd());
317
318
 
318
319
  const cliDir = path.join(targetDir, 'packages', 'create-alta-app');
319
320
  if (fs.existsSync(cliDir)) fs.rmSync(cliDir, { recursive: true, force: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-alta-app",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Create a new Alta project",
5
5
  "bin": {
6
6
  "create-alta-app": "./index.mjs"