@cedarjs/cli 3.0.0-canary.13382 → 3.0.0-canary.13383

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 +6 -7
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { trace, SpanStatusCode } from "@opentelemetry/api";
5
5
  import { hideBin, Parser } from "yargs/helpers";
6
6
  import yargs from "yargs/yargs";
7
7
  import { loadEnvFiles, recordTelemetryAttributes } from "@cedarjs/cli-helpers";
8
- import { projectIsEsm, getConfigPath } from "@cedarjs/project-config";
8
+ import { findUp, projectIsEsm, getConfigPath } from "@cedarjs/project-config";
9
9
  import { telemetryMiddleware } from "@cedarjs/telemetry";
10
10
  import * as buildCommand from "./commands/build.js";
11
11
  import * as checkCommand from "./commands/check.js";
@@ -32,7 +32,6 @@ import * as typeCheckCommand from "./commands/type-check.js";
32
32
  import * as upgradeCommand from "./commands/upgrade/upgrade.js";
33
33
  import c from "./lib/colors.js";
34
34
  import { exitWithError } from "./lib/exit.js";
35
- import { findUp } from "./lib/index.js";
36
35
  import * as updateCheck from "./lib/updateCheck.js";
37
36
  import { loadPlugins } from "./plugin.js";
38
37
  import { startTelemetry, shutdownTelemetry } from "./telemetry/index.js";
@@ -150,13 +149,13 @@ function getTomlDir(cwd2) {
150
149
  let tomlDir = "";
151
150
  try {
152
151
  if (cwd2) {
153
- const found = configFiles.some((f) => fs.existsSync(path.join(cwd2, f)));
152
+ const absCwd = path.resolve(process.cwd(), cwd2);
153
+ const found = configFiles.some((f) => fs.existsSync(path.join(absCwd, f)));
154
154
  if (!found) {
155
- throw new Error(
156
- `Couldn't find a "cedar.toml" or "redwood.toml" file in ${cwd2}`
157
- );
155
+ const tomls = configFiles.join('" or "');
156
+ throw new Error(`Couldn't find a "${tomls}" file in ${absCwd}`);
158
157
  }
159
- tomlDir = cwd2;
158
+ tomlDir = absCwd;
160
159
  } else {
161
160
  const configTomlPath = findUp("cedar.toml", process.cwd()) || findUp("redwood.toml", process.cwd());
162
161
  if (!configTomlPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "3.0.0-canary.13382+388d67898",
3
+ "version": "3.0.0-canary.13383+105dedd2d",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "build:pack": "yarn pack -o cedarjs-cli.tgz",
25
25
  "build:types": "tsc --build --verbose ./tsconfig.build.json",
26
26
  "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build && yarn fix:permissions\"",
27
- "dev": "CEDAR_CWD=../../__fixtures__/example-todo-main node dist/index.js",
27
+ "dev": "CEDAR_CWD=../../test-project node dist/index.js",
28
28
  "fix:permissions": "chmod +x dist/index.js dist/cfw.js",
29
29
  "prepublishOnly": "yarn build",
30
30
  "test": "vitest run",
@@ -34,15 +34,15 @@
34
34
  "@babel/parser": "7.29.0",
35
35
  "@babel/preset-typescript": "7.28.5",
36
36
  "@babel/runtime-corejs3": "7.29.0",
37
- "@cedarjs/api-server": "3.0.0-canary.13382",
38
- "@cedarjs/cli-helpers": "3.0.0-canary.13382",
39
- "@cedarjs/fastify-web": "3.0.0-canary.13382",
40
- "@cedarjs/internal": "3.0.0-canary.13382",
41
- "@cedarjs/prerender": "3.0.0-canary.13382",
42
- "@cedarjs/project-config": "3.0.0-canary.13382",
43
- "@cedarjs/structure": "3.0.0-canary.13382",
44
- "@cedarjs/telemetry": "3.0.0-canary.13382",
45
- "@cedarjs/web-server": "3.0.0-canary.13382",
37
+ "@cedarjs/api-server": "3.0.0-canary.13383",
38
+ "@cedarjs/cli-helpers": "3.0.0-canary.13383",
39
+ "@cedarjs/fastify-web": "3.0.0-canary.13383",
40
+ "@cedarjs/internal": "3.0.0-canary.13383",
41
+ "@cedarjs/prerender": "3.0.0-canary.13383",
42
+ "@cedarjs/project-config": "3.0.0-canary.13383",
43
+ "@cedarjs/structure": "3.0.0-canary.13383",
44
+ "@cedarjs/telemetry": "3.0.0-canary.13383",
45
+ "@cedarjs/web-server": "3.0.0-canary.13383",
46
46
  "@listr2/prompt-adapter-enquirer": "2.0.16",
47
47
  "@opentelemetry/api": "1.9.0",
48
48
  "@opentelemetry/core": "1.30.1",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "388d678981c32c8ec075217f961e7ed201e3444f"
109
+ "gitHead": "105dedd2d4f2c0de716ac8f8510dfb492dcb6e0e"
110
110
  }