@flaredev/cli 0.7.1 → 0.7.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/dist/index.js +9 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4160,10 +4160,17 @@ ${result.output.trim()}`);
4160
4160
  import { existsSync as existsSync22, mkdirSync as mkdirSync11, readFileSync as readFileSync14, readdirSync as readdirSync8, writeFileSync as writeFileSync15 } from "fs";
4161
4161
  import { dirname as dirname11, join as join21, relative as relative2 } from "path";
4162
4162
  import pc17 from "picocolors";
4163
- var TRACKED = ["lib/resource"];
4163
+ var TRACKED = ["lib", "components"];
4164
+ var PER_APP = /__APP_NAME__|__PM__|__THEME__|__COMPAT_DATE__/;
4165
+ var WRITTEN_PER_APP = /* @__PURE__ */ new Set(["lib/auth-config.ts"]);
4164
4166
  var prunedOn = (path, stack) => stack === "next" && CLOUDFLARE_ONLY.some((only) => path === only || path.startsWith(`${only}/`));
4165
4167
  function upstreamFile(path, stack) {
4166
- if (prunedOn(path, stack)) return void 0;
4168
+ if (prunedOn(path, stack) || WRITTEN_PER_APP.has(path)) return void 0;
4169
+ const found = locate(path, stack);
4170
+ if (found && PER_APP.test(readFileSync14(found, "utf8"))) return void 0;
4171
+ return found;
4172
+ }
4173
+ function locate(path, stack) {
4167
4174
  const candidates = stack === "next" ? [join21(templatesDir, "next", path), join21(templatesDir, "app", path)] : [join21(templatesDir, "app", path)];
4168
4175
  return candidates.find((candidate) => existsSync22(candidate));
4169
4176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flaredev/cli",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
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.7.1"
44
+ "@flaredev/core": "0.7.2"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22"