@flaredev/cli 0.6.0 → 0.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/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="https://flare-docs.codetotech.com/banner.png" alt="Flare — the full-stack framework for Cloudflare and Next.js" width="100%">
3
+ </p>
4
+
1
5
  # @flaredev/cli
2
6
 
3
7
  The `flare` command for [Flare](https://flare-docs.codetotech.com), a
package/dist/index.js CHANGED
@@ -323,6 +323,7 @@ function installArgs(pm) {
323
323
  }
324
324
 
325
325
  // src/commands/create.ts
326
+ var ALLOW_BUILDS = ["'@prisma/engines': true", "esbuild: true", "prisma: true", "sharp: false", "workerd: true"].map((line) => ` ${line}`).join("\n");
326
327
  function toAppName(dir) {
327
328
  const name = basename(resolve2(dir)).toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-+|-+$/g, "");
328
329
  if (!name) throw new Error(`Cannot derive an app name from "${dir}". Use letters, digits, and dashes.`);
@@ -411,8 +412,9 @@ MAIL_FROM=
411
412
  ${devVarsEntries(authProviders)}`
412
413
  );
413
414
  if (packageManager === "pnpm" && !inWorkspace) {
414
- const allowBuilds = stack === "next" ? "allowBuilds:\n '@prisma/engines': true\n prisma: true\n sharp: false\n" : "allowBuilds:\n esbuild: true\n workerd: true\n sharp: false\n";
415
- writeFileSync3(join3(dir, "pnpm-workspace.yaml"), allowBuilds);
415
+ writeFileSync3(join3(dir, "pnpm-workspace.yaml"), `allowBuilds:
416
+ ${ALLOW_BUILDS}
417
+ `);
416
418
  }
417
419
  const pinned = flarePackageSpec("core", dir, packageManager).startsWith("^");
418
420
  if (pinned) copyLockfile(packageManager, dir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flaredev/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "The flare command-line tool: create, generate, migrate, and deploy Flare apps",
5
5
  "license": "MIT",
6
6
  "author": "Muke Johnbaptist",
@@ -41,7 +41,7 @@
41
41
  "jiti": "^2.7.0",
42
42
  "jsonc-parser": "^3.3.1",
43
43
  "picocolors": "^1.1.1",
44
- "@flaredev/core": "0.6.0"
44
+ "@flaredev/core": "0.6.1"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22"