@plaiful/cli 0.16.0 → 0.16.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaiful/cli",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "The Plaiful CLI: work on your Plaiful product from your game repo, with no AWS access",
5
5
  "bin": {
6
6
  "plaiful": "bin/plaiful.js"
package/src/cli.js CHANGED
@@ -446,6 +446,11 @@ async function docsPull(ctx, r = repo(ctx)) {
446
446
  }
447
447
  const where = whereThingsGo(ctx, r);
448
448
  lines.push(...where.lines);
449
+ // The web template reads .env.development, which plaiful env writes (PLAI-202): say so when it's missing.
450
+ const needsEnv = fs.existsSync(path.join(r.root, `${ENV_FILE}.example`)) && !fs.existsSync(path.join(r.root, ENV_FILE));
451
+ if (needsEnv) {
452
+ lines.push(`No ${ENV_FILE} yet: run plaiful env to write it from ${r.product}'s dev config${fs.existsSync(path.join(r.root, '.env')) ? ' (the game doesn\'t read .env)' : ''}.`);
453
+ }
449
454
  lines.push(copies ? 'Local copies as of now; the live docs are `plaiful docs`.' : 'The platform docs are live: plaiful docs (start with plaiful docs read README).');
450
455
  ctx.out(lines.join('\n'), { success: true, dir: r.docsDir, ...result, gitignore: ignore, misplaced_specs: where.misplaced });
451
456
  return 0;