[index.js][s]: add checkPackageVersion to index.js
This commit is contained in:
parent
8f0cf2eab6
commit
c85eb4ebed
@ -4,11 +4,12 @@ const { program } = require("commander");
|
|||||||
const chalk = require("chalk");
|
const chalk = require("chalk");
|
||||||
const prompts = require("prompts");
|
const prompts = require("prompts");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const { install, initGit } = require("./helpers/install");
|
const { install, initGit, checkPackageVersion } = require("./helpers/install");
|
||||||
const package = require("./package.json");
|
const package = require("./package.json");
|
||||||
const copy = require("./helpers/copy");
|
const copy = require("./helpers/copy");
|
||||||
const Listr = require("listr");
|
const Listr = require("listr");
|
||||||
const figlet = require('figlet');
|
const figlet = require('figlet');
|
||||||
|
const { truncate } = require("fs");
|
||||||
|
|
||||||
// Output path to create new portal app
|
// Output path to create new portal app
|
||||||
let projectPath = "";
|
let projectPath = "";
|
||||||
@ -29,6 +30,7 @@ program
|
|||||||
dir: "Directory to be used on install Portal.js",
|
dir: "Directory to be used on install Portal.js",
|
||||||
})
|
})
|
||||||
.action((name) => (projectPath = name))
|
.action((name) => (projectPath = name))
|
||||||
|
.option('--use-npm')
|
||||||
.allowUnknownOption()
|
.allowUnknownOption()
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user