@usecontextlayer/cli 0.11.2 → 0.11.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.
- package/dist/cli.mjs +15 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -12350,7 +12350,7 @@ function superRefine(fn, params) {
|
|
|
12350
12350
|
const env = object({ CTX_PLATFORM_URL: url().default("http://localhost:3010") }).parse(process.env);
|
|
12351
12351
|
//#endregion
|
|
12352
12352
|
//#region package.json
|
|
12353
|
-
var version = "0.11.
|
|
12353
|
+
var version = "0.11.3";
|
|
12354
12354
|
//#endregion
|
|
12355
12355
|
//#region cli.ts
|
|
12356
12356
|
const program = new Command().name("ctx").description("ContextLayer CLI").version(version);
|
|
@@ -12372,6 +12372,20 @@ program.command("init <directory>").description("Create a Cloudflare React Route
|
|
|
12372
12372
|
process.exitCode = result.exitCode;
|
|
12373
12373
|
if (result.exitCode !== 0) return;
|
|
12374
12374
|
await cp(new URL("./template/", import.meta.url), directory, { recursive: true });
|
|
12375
|
+
const configure = await execa("pnpm", [
|
|
12376
|
+
"config",
|
|
12377
|
+
"set",
|
|
12378
|
+
"--location=project",
|
|
12379
|
+
"--json",
|
|
12380
|
+
"minimumReleaseAgeExclude",
|
|
12381
|
+
"[\"@usecontextlayer/*\"]"
|
|
12382
|
+
], {
|
|
12383
|
+
cwd: directory,
|
|
12384
|
+
reject: false,
|
|
12385
|
+
stdio: "inherit"
|
|
12386
|
+
});
|
|
12387
|
+
process.exitCode = configure.exitCode;
|
|
12388
|
+
if (configure.exitCode !== 0) return;
|
|
12375
12389
|
const install = await execa("pnpm", [
|
|
12376
12390
|
"add",
|
|
12377
12391
|
`@usecontextlayer/tools@${version}`,
|