@create-node-app/core 0.3.3 → 0.3.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.
package/dist/index.js CHANGED
@@ -708,7 +708,6 @@ var runCommandInProjectDir = async (root, command, args = [], successMessage = "
708
708
  // don't show output in console
709
709
  stdio: "ignore"
710
710
  });
711
- console.log();
712
711
  console.log(import_chalk3.default.green(successMessage));
713
712
  } catch (error) {
714
713
  console.log();
@@ -829,7 +828,7 @@ var run = async ({
829
828
  "git",
830
829
  ["init"],
831
830
  "Successfully initialized git repository.",
832
- "Failed to initialize git repository."
831
+ "Failed to initialize git repository. Run `git init` to initialize git repository after the process is completed."
833
832
  );
834
833
  if (installDependencies && isOnline) {
835
834
  const packageJson = JSON.parse(
@@ -841,7 +840,8 @@ var run = async ({
841
840
  root,
842
841
  runCommand,
843
842
  ["format"],
844
- "Successfully formatted code."
843
+ "Successfully formatted code.",
844
+ `Failed to format code. Run \`${runCommand} format\` to format code after the process is completed.`
845
845
  );
846
846
  } catch {
847
847
  }
@@ -853,12 +853,15 @@ var run = async ({
853
853
  runCommand,
854
854
  ["lint:fix"],
855
855
  "Successfully fixed linting errors.",
856
- "Failed to fix linting errors."
856
+ `Failed to fix linting errors. Run \`${runCommand} lint:fix\` to fix linting errors after the process is completed.`
857
857
  );
858
858
  } catch {
859
859
  }
860
860
  }
861
861
  }
862
+ console.log();
863
+ console.log(import_chalk3.default.green("Successfully created project " + appName + "."));
864
+ process.chdir(root);
862
865
  };
863
866
  var createApp = async ({
864
867
  name,
package/dist/index.mjs CHANGED
@@ -679,7 +679,6 @@ var runCommandInProjectDir = async (root, command, args = [], successMessage = "
679
679
  // don't show output in console
680
680
  stdio: "ignore"
681
681
  });
682
- console.log();
683
682
  console.log(chalk3.green(successMessage));
684
683
  } catch (error) {
685
684
  console.log();
@@ -800,7 +799,7 @@ var run = async ({
800
799
  "git",
801
800
  ["init"],
802
801
  "Successfully initialized git repository.",
803
- "Failed to initialize git repository."
802
+ "Failed to initialize git repository. Run `git init` to initialize git repository after the process is completed."
804
803
  );
805
804
  if (installDependencies && isOnline) {
806
805
  const packageJson = JSON.parse(
@@ -812,7 +811,8 @@ var run = async ({
812
811
  root,
813
812
  runCommand,
814
813
  ["format"],
815
- "Successfully formatted code."
814
+ "Successfully formatted code.",
815
+ `Failed to format code. Run \`${runCommand} format\` to format code after the process is completed.`
816
816
  );
817
817
  } catch {
818
818
  }
@@ -824,12 +824,15 @@ var run = async ({
824
824
  runCommand,
825
825
  ["lint:fix"],
826
826
  "Successfully fixed linting errors.",
827
- "Failed to fix linting errors."
827
+ `Failed to fix linting errors. Run \`${runCommand} lint:fix\` to fix linting errors after the process is completed.`
828
828
  );
829
829
  } catch {
830
830
  }
831
831
  }
832
832
  }
833
+ console.log();
834
+ console.log(chalk3.green("Successfully created project " + appName + "."));
835
+ process.chdir(root);
833
836
  };
834
837
  var createApp = async ({
835
838
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@create-node-app/core",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",