@fireberry/cli 0.4.3-beta.2 → 0.4.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @avivnakar
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fireberry CLI tool for managing your Fireberry application.
|
|
|
7
7
|
Install the CLI globally using npm:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @fireberry/cli
|
|
10
|
+
npm install -g @fireberry/cli@latest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
After installation, the `fireberry` command will be available in your terminal.
|
|
@@ -130,7 +130,7 @@ export async function runCreateComponent({ type, name, }) {
|
|
|
130
130
|
const componentSettings = await promptForSettings(validatedType);
|
|
131
131
|
spinner.text = chalk.cyan(`Creating Vite React app for "${chalk.cyan(componentName)}"...`);
|
|
132
132
|
spinner.start();
|
|
133
|
-
const componentDir = path.join(process.cwd(),
|
|
133
|
+
const componentDir = path.join(process.cwd(), componentName);
|
|
134
134
|
await fs.ensureDir(componentDir);
|
|
135
135
|
spinner.text = `Running npm create vite@latest...`;
|
|
136
136
|
const viteResult = spawnSync(`npm create vite@latest ${sanitizedName} -- --template react --no-interactive`, {
|
|
@@ -151,7 +151,7 @@ export async function runCreateComponent({ type, name, }) {
|
|
|
151
151
|
throw new Error("Failed to install dependencies");
|
|
152
152
|
}
|
|
153
153
|
spinner.text = `Installing Fireberry packages...`;
|
|
154
|
-
const fireberryResult = spawnSync("npm install @fireberry/ds @fireberry/sdk", {
|
|
154
|
+
const fireberryResult = spawnSync("npm install @fireberry/ds@latest @fireberry/sdk@latest", {
|
|
155
155
|
cwd: componentDir,
|
|
156
156
|
stdio: "inherit",
|
|
157
157
|
shell: true,
|
|
@@ -183,7 +183,7 @@ export async function runCreateComponent({ type, name, }) {
|
|
|
183
183
|
type: validatedType,
|
|
184
184
|
title: componentName,
|
|
185
185
|
id: componentId,
|
|
186
|
-
path: `${
|
|
186
|
+
path: `${componentName}/dist`,
|
|
187
187
|
settings: componentSettings,
|
|
188
188
|
};
|
|
189
189
|
if (!manifest.components) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fireberry/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Fireberry CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"preferGlobal": true,
|
|
9
8
|
"bin": {
|
|
10
9
|
"fireberry": "dist/bin/fireberry.js"
|
|
11
10
|
},
|
|
@@ -175,7 +175,7 @@ export async function runCreateComponent({
|
|
|
175
175
|
);
|
|
176
176
|
spinner.start();
|
|
177
177
|
|
|
178
|
-
const componentDir = path.join(process.cwd(),
|
|
178
|
+
const componentDir = path.join(process.cwd(), componentName);
|
|
179
179
|
await fs.ensureDir(componentDir);
|
|
180
180
|
|
|
181
181
|
spinner.text = `Running npm create vite@latest...`;
|
|
@@ -209,7 +209,7 @@ export async function runCreateComponent({
|
|
|
209
209
|
|
|
210
210
|
spinner.text = `Installing Fireberry packages...`;
|
|
211
211
|
const fireberryResult = spawnSync(
|
|
212
|
-
"npm install @fireberry/ds @fireberry/sdk",
|
|
212
|
+
"npm install @fireberry/ds@latest @fireberry/sdk@latest",
|
|
213
213
|
{
|
|
214
214
|
cwd: componentDir,
|
|
215
215
|
stdio: "inherit",
|
|
@@ -255,7 +255,7 @@ export async function runCreateComponent({
|
|
|
255
255
|
type: validatedType,
|
|
256
256
|
title: componentName,
|
|
257
257
|
id: componentId,
|
|
258
|
-
path: `${
|
|
258
|
+
path: `${componentName}/dist`,
|
|
259
259
|
settings: componentSettings,
|
|
260
260
|
};
|
|
261
261
|
|