create-tina-app 1.5.1 → 1.5.2
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var require_package = __commonJS({
|
|
|
34
34
|
"package.json"(exports2, module2) {
|
|
35
35
|
module2.exports = {
|
|
36
36
|
name: "create-tina-app",
|
|
37
|
-
version: "1.5.
|
|
37
|
+
version: "1.5.2",
|
|
38
38
|
main: "dist/index.js",
|
|
39
39
|
files: [
|
|
40
40
|
"dist",
|
|
@@ -448,7 +448,6 @@ async function checkPackageExists(name2) {
|
|
|
448
448
|
|
|
449
449
|
// src/index.ts
|
|
450
450
|
var import_node_process = require("node:process");
|
|
451
|
-
var import_ora = __toESM(require("ora"));
|
|
452
451
|
|
|
453
452
|
// src/util/options.ts
|
|
454
453
|
var import_commander = require("commander");
|
|
@@ -529,6 +528,7 @@ var THEMES = [
|
|
|
529
528
|
|
|
530
529
|
// src/index.ts
|
|
531
530
|
async function run() {
|
|
531
|
+
const ora = (await import("ora")).default;
|
|
532
532
|
if (process.stdout.columns >= 60) {
|
|
533
533
|
console.log(TextStyles.tinaOrange(`${llama}`));
|
|
534
534
|
console.log(TextStyles.tinaOrange(`${tinaCms}`));
|
|
@@ -537,7 +537,7 @@ async function run() {
|
|
|
537
537
|
}
|
|
538
538
|
const version2 = require_package().version;
|
|
539
539
|
console.log(`Create Tina App v${version2}`);
|
|
540
|
-
const spinner = (
|
|
540
|
+
const spinner = ora();
|
|
541
541
|
preRunChecks(spinner);
|
|
542
542
|
const opts = extractOptions(process.argv);
|
|
543
543
|
const telemetry = new import_metrics.Telemetry({ disabled: opts?.noTelemetry });
|
|
@@ -708,7 +708,10 @@ async function run() {
|
|
|
708
708
|
` \u2022 \u{1F680} Deploy to Production: ${TextStyles.link("https://tina.io/docs/tina-cloud/")}`
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
|
-
run()
|
|
711
|
+
run().catch((error) => {
|
|
712
|
+
console.error("Error running create-tina-app:", error);
|
|
713
|
+
process.exit(1);
|
|
714
|
+
});
|
|
712
715
|
// Annotate the CommonJS export names for ESM import in node:
|
|
713
716
|
0 && (module.exports = {
|
|
714
717
|
run
|