create-surf-app 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -333,7 +333,7 @@ The agent can also call \`POST /api/__sync-schema\` explicitly after editing.
333
333
  var root = path.resolve(projectName);
334
334
  var name = path.basename(root);
335
335
  console.log(`
336
- Creating Surf app in ${root}
336
+ Creating Surf app in ./${projectName === "." ? "" : name}
337
337
  `);
338
338
  fs.mkdirSync(root, { recursive: true });
339
339
  for (const [relPath, content] of Object.entries(templates)) {
@@ -359,11 +359,12 @@ function copyDir(src, dest) {
359
359
  }
360
360
  }
361
361
  }
362
+ var cdStep = projectName === "." ? "" : ` cd ${name}
363
+ `;
362
364
  console.log(`
363
365
  Done! Next steps:
364
366
 
365
- cd ${name}
366
- cd backend && npm install && cd ..
367
+ ${cdStep} cd backend && npm install && cd ..
367
368
  cd frontend && npm install && cd ..
368
369
 
369
370
  # Start backend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-surf-app",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Scaffold a Surf app — Vite + React + Express + @surf-ai/sdk",
5
5
  "type": "module",
6
6
  "bin": {