create-tina-app 1.5.2 → 1.6.1

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -9
  2. package/package.json +2 -2
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.2",
37
+ version: "1.6.1",
38
38
  main: "dist/index.js",
39
39
  files: [
40
40
  "dist",
@@ -82,7 +82,7 @@ var require_package = __commonJS({
82
82
  commander: "^12.1.0",
83
83
  "cross-spawn": "catalog:",
84
84
  "fs-extra": "catalog:",
85
- ora: "^8.2.0",
85
+ ora: "catalog:",
86
86
  prompts: "catalog:",
87
87
  tar: "catalog:",
88
88
  "validate-npm-package-name": "catalog:"
@@ -337,15 +337,15 @@ var import_path3 = __toESM(require("path"));
337
337
  var TEMPLATES = [
338
338
  {
339
339
  title: "\u2B50 NextJS starter",
340
- description: "Kickstart your project with NextJS \u2013 our top recommendation for a seamless, performant, and versatile web experience.",
341
- value: "tina-cloud-starter",
340
+ description: "Kickstart your project with Next.js \u2013 our top recommendation for a seamless, performant, and versatile web experience.",
341
+ value: "tina-nextjs-starter",
342
342
  isInternal: false,
343
- gitURL: "https://github.com/tinacms/tina-cloud-starter",
343
+ gitURL: "https://github.com/tinacms/tina-nextjs-starter",
344
344
  devUrl: "http://localhost:3000"
345
345
  },
346
346
  {
347
347
  title: "\u2B50\uFE0F TinaDocs",
348
- description: "Get your documentation site up and running with TinaCMS and Next.JS in minutes.",
348
+ description: "Get your documentation site up and running with TinaCMS and Next.js in minutes.",
349
349
  value: "tina-docs",
350
350
  isInternal: false,
351
351
  gitURL: "https://github.com/tinacms/tina-docs",
@@ -529,6 +529,7 @@ var THEMES = [
529
529
  // src/index.ts
530
530
  async function run() {
531
531
  const ora = (await import("ora")).default;
532
+ let packageManagerInstallationHadError = false;
532
533
  if (process.stdout.columns >= 60) {
533
534
  console.log(TextStyles.tinaOrange(`${llama}`));
534
535
  console.log(TextStyles.tinaOrange(`${tinaCms}`));
@@ -668,7 +669,7 @@ async function run() {
668
669
  spinner.succeed();
669
670
  } catch (err) {
670
671
  spinner.fail(`Failed to install packages: ${err.message}`);
671
- (0, import_node_process.exit)(1);
672
+ packageManagerInstallationHadError = true;
672
673
  }
673
674
  spinner.start("Initializing git repository.");
674
675
  try {
@@ -690,7 +691,8 @@ async function run() {
690
691
  const padCommand = (cmd, width = 20) => TextStyles.cmd(cmd) + " ".repeat(Math.max(0, width - cmd.length));
691
692
  spinner.info(`${TextStyles.bold("To get started:")}
692
693
 
693
- ${padCommand(`cd ${appName}`)}# move into your project directory
694
+ ${padCommand(`cd ${appName}`)}# move into your project directory${packageManagerInstallationHadError ? `
695
+ ${padCommand(`${pkgManager} install`)}# install dependencies` : ""}
694
696
  ${padCommand(`${pkgManager} run dev`)}# start the dev server ${TextStyles.link(template.devUrl)}
695
697
  ${padCommand(`${pkgManager} run build`)}# build the app for production
696
698
  `);
@@ -705,7 +707,7 @@ async function run() {
705
707
  ` \u2022 \u{1F58C}\uFE0F Extend Tina with custom field components: ${TextStyles.link("https://tina.io/docs/advanced/extending-tina/")}`
706
708
  );
707
709
  console.log(
708
- ` \u2022 \u{1F680} Deploy to Production: ${TextStyles.link("https://tina.io/docs/tina-cloud/")}`
710
+ ` \u2022 \u{1F680} Deploy to Production: ${TextStyles.link("https://tina.io/docs/tinacloud/")}`
709
711
  );
710
712
  }
711
713
  run().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tina-app",
3
- "version": "1.5.2",
3
+ "version": "1.6.1",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -35,7 +35,7 @@
35
35
  "@types/prompts": "^2.4.9",
36
36
  "@types/tar": "6.1.13",
37
37
  "typescript": "^5.7.3",
38
- "@tinacms/scripts": "1.4.0"
38
+ "@tinacms/scripts": "1.4.1"
39
39
  },
40
40
  "dependencies": {
41
41
  "chalk": "4.1.2",