@valuerail/cli 1.0.0-beta.4 → 1.0.0-beta.5
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 +5 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -48834,12 +48834,13 @@ var hasVrailConfig = () => {
|
|
|
48834
48834
|
return false;
|
|
48835
48835
|
}
|
|
48836
48836
|
};
|
|
48837
|
-
var getCliVersion = () => {
|
|
48838
|
-
return process.env.CLI_VERSION || "v0.0.1";
|
|
48839
|
-
};
|
|
48840
48837
|
function Banner() {
|
|
48841
48838
|
const isVrailProject = hasVrailConfig();
|
|
48842
|
-
const [version, setVersion] = import_react25.useState(
|
|
48839
|
+
const [version, setVersion] = import_react25.useState("v0.0.1");
|
|
48840
|
+
import_react25.useEffect(() => {
|
|
48841
|
+
const v = process.env.CLI_VERSION || "v0.0.1";
|
|
48842
|
+
setVersion(v);
|
|
48843
|
+
}, []);
|
|
48843
48844
|
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
|
|
48844
48845
|
flexDirection: "column",
|
|
48845
48846
|
marginBottom: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valuerail/cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"author": "Kamil Guszpit",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"fonts"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"dev": "bun --watch run src/index.tsx",
|
|
18
|
+
"dev": "CLI_VERSION=$(bun -e 'console.log(require(\"./package.json\").version)') bun --watch run src/index.tsx",
|
|
19
19
|
"build": "bun build ./src/index.tsx --compile --outfile dist/vrail",
|
|
20
20
|
"build:npm": "bun build ./src/index.tsx --target=node --format=esm --outfile dist/index.js --define:process.env.CLI_VERSION=\"\\\"$(jq -r .version package.json)\\\"\"",
|
|
21
21
|
"postbuild:npm": "cp -r ../../node_modules/cfonts/fonts ./fonts",
|