create-fs-app 1.1.4 → 1.1.5

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/create-fs-app.js +4 -2
  2. package/package.json +1 -1
package/create-fs-app.js CHANGED
@@ -19,7 +19,9 @@ const mernGitRepo = "https://github.com/Om-jannu/mern-template.git";
19
19
 
20
20
  //sleep function
21
21
  const sleep = (ms = 1000) => new Promise((r) => setTimeout(r, ms));
22
-
22
+ const installMyPackage = async() =>{
23
+ child_process.execSync('npm i create-fs-app -g');
24
+ }
23
25
  // welcome function
24
26
  const welcome = async () => {
25
27
  const msg = "create-fs-app";
@@ -132,7 +134,7 @@ if (process.argv.length > 3) {
132
134
  console.log(chalk.bold.yellow("Try : npx build-mern-app app_name"));
133
135
  process.exit(1);
134
136
  }
135
-
137
+ await installMyPackage();
136
138
  await welcome();
137
139
  await askFsName();
138
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fs-app",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "A command line tool to create Full Stack templates",
5
5
  "main": "./create-fs-app",
6
6
  "bin": "./create-fs-app.js",