@vercube/cli 0.0.14 → 0.0.16
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.mjs +9 -9
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { installDependencies } from "nypm";
|
|
|
11
11
|
import { x } from "tinyexec";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.0.
|
|
14
|
+
var version = "0.0.15";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/commands/build.ts
|
|
@@ -170,9 +170,9 @@ const initCommand = defineCommand({
|
|
|
170
170
|
preferOffline: Boolean(ctx.args.preferOffline),
|
|
171
171
|
registry: DEFAULT_REGISTRY
|
|
172
172
|
});
|
|
173
|
-
} catch (
|
|
174
|
-
if (process.env.DEBUG) throw
|
|
175
|
-
logger.error(
|
|
173
|
+
} catch (error) {
|
|
174
|
+
if (process.env.DEBUG) throw error;
|
|
175
|
+
logger.error(error.toString());
|
|
176
176
|
process.exit(1);
|
|
177
177
|
}
|
|
178
178
|
const packageManagerArg = ctx.args.packageManager;
|
|
@@ -192,9 +192,9 @@ const initCommand = defineCommand({
|
|
|
192
192
|
command: selectedPackageManager
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
} catch (
|
|
196
|
-
if (process.env.DEBUG) throw
|
|
197
|
-
logger.error(
|
|
195
|
+
} catch (error) {
|
|
196
|
+
if (process.env.DEBUG) throw error;
|
|
197
|
+
logger.error(error.toString());
|
|
198
198
|
process.exit(1);
|
|
199
199
|
}
|
|
200
200
|
logger.success("Installation completed.");
|
|
@@ -210,8 +210,8 @@ const initCommand = defineCommand({
|
|
|
210
210
|
throwOnError: true,
|
|
211
211
|
nodeOptions: { stdio: "inherit" }
|
|
212
212
|
});
|
|
213
|
-
} catch (
|
|
214
|
-
logger.warn(`Failed to initialize git repository: ${
|
|
213
|
+
} catch (error) {
|
|
214
|
+
logger.warn(`Failed to initialize git repository: ${error}`);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
logger.log("\n✨ Vercube project has been created! Next steps:");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "CLI module for Vercube framework",
|
|
5
5
|
"repository": "@vercube/cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"pathe": "2.0.3",
|
|
29
29
|
"std-env": "3.9.0",
|
|
30
30
|
"tinyexec": "1.0.1",
|
|
31
|
-
"@vercube/devkit": "0.0.
|
|
31
|
+
"@vercube/devkit": "0.0.16"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|