@dtinsight/create
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -11,3 +11,6 @@ "use strict"; | ||
const ora_1 = __importDefault(require("ora")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
(async () => { | ||
const pkg = JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(__dirname, "../package.json"), "utf-8")); | ||
console.log(chalk_1.default.blueBright("[INFO]: "), chalk_1.default.yellowBright(pkg.name, `v${pkg.version}`)); | ||
const { applicationName, template } = await (0, prompts_1.default)([ | ||
@@ -36,3 +39,3 @@ { | ||
fs_1.default.mkdirSync(path_1.default.join(root, applicationName), { recursive: true }); | ||
const templatePath = path_1.default.join(__dirname, "..", "src", "templates", `template-${template}`); | ||
const templatePath = path_1.default.join(__dirname, "..", "dist", "templates", `template-${template}`); | ||
const staffs = fs_1.default.readdirSync(templatePath); | ||
@@ -39,0 +42,0 @@ staffs.forEach((staff) => { |
{ | ||
"name": "@dtinsight/create", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Create Molecule Application with create-react-app.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7351
119