@cedarjs/cli 1.0.0-canary.13002 → 1.0.0-canary.13004
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/{rwfw.js → cfw.js} +11 -14
- package/package.json +15 -15
package/dist/{rwfw.js → cfw.js}
RENAMED
|
@@ -6,28 +6,25 @@ import fs from "fs-extra";
|
|
|
6
6
|
import { terminalLink } from "termi-link";
|
|
7
7
|
import { getConfigPath } from "@cedarjs/project-config";
|
|
8
8
|
const config = new Configstore("@cedarjs/cli");
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
11
|
-
console.error("Error: You must specify the path to
|
|
12
|
-
console.error("Usage: `
|
|
9
|
+
const CFW_PATH = process.env.CFW_PATH || process.env.RWFW_PATH || process.env.RW_PATH || config.get("CFW_PATH") || config.get("RWFW_PATH");
|
|
10
|
+
if (!CFW_PATH) {
|
|
11
|
+
console.error("Error: You must specify the path to Cedar Framework");
|
|
12
|
+
console.error("Usage: `CFW_PATH=~/gh/cedarjs/cedar yarn cfw <command>");
|
|
13
13
|
process.exit(1);
|
|
14
14
|
}
|
|
15
|
-
if (!fs.existsSync(
|
|
15
|
+
if (!fs.existsSync(CFW_PATH)) {
|
|
16
16
|
console.error(
|
|
17
|
-
`Error: The specified path to
|
|
17
|
+
`Error: The specified path to Cedar Framework (${CFW_PATH}) does not exist.`
|
|
18
18
|
);
|
|
19
|
-
console.error("Usage: `
|
|
19
|
+
console.error("Usage: `CFW_PATH=~/gh/cedarjs/cedar yarn cfw <command>");
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
config.set("
|
|
22
|
+
const absCfwPath = path.resolve(process.cwd(), CFW_PATH);
|
|
23
|
+
config.set("CFW_PATH", absCfwPath);
|
|
24
24
|
const projectPath = path.dirname(
|
|
25
25
|
getConfigPath(process.env.RWJS_CWD ?? process.cwd())
|
|
26
26
|
);
|
|
27
|
-
console.log(
|
|
28
|
-
"Redwood Framework Tools Path:",
|
|
29
|
-
terminalLink(absRwFwPath, absRwFwPath)
|
|
30
|
-
);
|
|
27
|
+
console.log("Cedar Framework Tools Path:", terminalLink(absCfwPath, absCfwPath));
|
|
31
28
|
let command = process.argv.slice(2);
|
|
32
29
|
const helpCommands = ["help", "--help"];
|
|
33
30
|
if (!command.length || command.some((cmd) => helpCommands.includes(cmd))) {
|
|
@@ -36,7 +33,7 @@ if (!command.length || command.some((cmd) => helpCommands.includes(cmd))) {
|
|
|
36
33
|
try {
|
|
37
34
|
execa.sync("yarn", [...command], {
|
|
38
35
|
stdio: "inherit",
|
|
39
|
-
cwd:
|
|
36
|
+
cwd: absCfwPath,
|
|
40
37
|
env: {
|
|
41
38
|
RWJS_CWD: projectPath
|
|
42
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.13004+66daa5ace",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"bin": {
|
|
13
13
|
"cedarjs": "./dist/index.js",
|
|
14
|
+
"cfw": "./dist/cfw.js",
|
|
14
15
|
"redwood": "./dist/index.js",
|
|
15
|
-
"rw": "./dist/index.js"
|
|
16
|
-
"rwfw": "./dist/rwfw.js"
|
|
16
|
+
"rw": "./dist/index.js"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build:pack": "yarn pack -o cedarjs-cli.tgz",
|
|
24
24
|
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build && yarn fix:permissions\"",
|
|
25
25
|
"dev": "RWJS_CWD=../../__fixtures__/example-todo-main node dist/index.js",
|
|
26
|
-
"fix:permissions": "chmod +x dist/index.js dist/
|
|
26
|
+
"fix:permissions": "chmod +x dist/index.js dist/cfw.js",
|
|
27
27
|
"prepublishOnly": "yarn build",
|
|
28
28
|
"test": "vitest run",
|
|
29
29
|
"test:watch": "vitest watch"
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/preset-typescript": "7.28.5",
|
|
33
33
|
"@babel/runtime-corejs3": "7.28.4",
|
|
34
|
-
"@cedarjs/api-server": "1.0.0-canary.
|
|
35
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
41
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
42
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
34
|
+
"@cedarjs/api-server": "1.0.0-canary.13004",
|
|
35
|
+
"@cedarjs/cli-helpers": "1.0.0-canary.13004",
|
|
36
|
+
"@cedarjs/fastify-web": "1.0.0-canary.13004",
|
|
37
|
+
"@cedarjs/internal": "1.0.0-canary.13004",
|
|
38
|
+
"@cedarjs/prerender": "1.0.0-canary.13004",
|
|
39
|
+
"@cedarjs/project-config": "1.0.0-canary.13004",
|
|
40
|
+
"@cedarjs/structure": "1.0.0-canary.13004",
|
|
41
|
+
"@cedarjs/telemetry": "1.0.0-canary.13004",
|
|
42
|
+
"@cedarjs/web-server": "1.0.0-canary.13004",
|
|
43
43
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
44
44
|
"@opentelemetry/api": "1.8.0",
|
|
45
45
|
"@opentelemetry/core": "1.22.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"envinfo": "7.21.0",
|
|
65
65
|
"execa": "5.1.1",
|
|
66
66
|
"fast-glob": "3.3.3",
|
|
67
|
-
"fs-extra": "11.
|
|
67
|
+
"fs-extra": "11.3.3",
|
|
68
68
|
"humanize-string": "2.1.0",
|
|
69
69
|
"jscodeshift": "17.0.0",
|
|
70
70
|
"latest-version": "9.0.0",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "66daa5ace3dd7b03200d5e6dd977a6759da9725f"
|
|
105
105
|
}
|