@valuerail/cli 1.0.0-beta.2 → 1.0.0-beta.4
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/index.js +2 -15
- package/fonts/3d.json +659 -0
- package/fonts/block.json +482 -0
- package/fonts/chrome.json +305 -0
- package/fonts/console.json +73 -0
- package/fonts/grid.json +482 -0
- package/fonts/huge.json +777 -0
- package/fonts/pallet.json +482 -0
- package/fonts/shade.json +600 -0
- package/fonts/simple.json +364 -0
- package/fonts/simple3d.json +541 -0
- package/fonts/simpleBlock.json +541 -0
- package/fonts/slick.json +482 -0
- package/fonts/tiny.json +246 -0
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -48827,7 +48827,6 @@ var dist_default6 = BigText;
|
|
|
48827
48827
|
var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
48828
48828
|
import fs2 from "fs";
|
|
48829
48829
|
import path from "path";
|
|
48830
|
-
var __dirname = "/home/runner/work/valuerail/valuerail/packages/cli/src/ui/components";
|
|
48831
48830
|
var hasVrailConfig = () => {
|
|
48832
48831
|
try {
|
|
48833
48832
|
return fs2.existsSync(path.join(process.cwd(), "vrail.config.ts"));
|
|
@@ -48836,23 +48835,11 @@ var hasVrailConfig = () => {
|
|
|
48836
48835
|
}
|
|
48837
48836
|
};
|
|
48838
48837
|
var getCliVersion = () => {
|
|
48839
|
-
|
|
48840
|
-
const pkgPath = path.resolve(__dirname, "../../package.json");
|
|
48841
|
-
if (fs2.existsSync(pkgPath)) {
|
|
48842
|
-
const pkg = JSON.parse(fs2.readFileSync(pkgPath, "utf8"));
|
|
48843
|
-
return pkg.version;
|
|
48844
|
-
}
|
|
48845
|
-
return "v0.0.1";
|
|
48846
|
-
} catch (e) {
|
|
48847
|
-
return "v0.0.1";
|
|
48848
|
-
}
|
|
48838
|
+
return process.env.CLI_VERSION || "v0.0.1";
|
|
48849
48839
|
};
|
|
48850
48840
|
function Banner() {
|
|
48851
48841
|
const isVrailProject = hasVrailConfig();
|
|
48852
|
-
const [version, setVersion] = import_react25.useState(
|
|
48853
|
-
import_react25.useEffect(() => {
|
|
48854
|
-
setVersion(getCliVersion());
|
|
48855
|
-
}, []);
|
|
48842
|
+
const [version, setVersion] = import_react25.useState(getCliVersion());
|
|
48856
48843
|
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
|
|
48857
48844
|
flexDirection: "column",
|
|
48858
48845
|
marginBottom: 1,
|