Skip to content

Commit cb4a308

Browse files
committed
fix broken help module import
1 parent 60c8bc7 commit cb4a308

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: lib/cmd/new.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
const chalk = require('chalk');
22
const ejs = require("ejs");
33
const path = require("path");
4-
const spawnSync = require('child_process').spawnSync;
4+
const spawnSync = require("child_process").spawnSync;
55

6-
const app = require('../bootstrap');
6+
const app = require("./../bootstrap");
77
const FM = require("./../utils/file-manager");
8-
const FormatString = require("../utils/format-string");
8+
const FormatString = require("./../utils/format-string");
9+
const help = require("./help")
910
const ARGS = process.ARGS;
1011

1112
const projectFiles = [
@@ -22,7 +23,7 @@ const projectFiles = [
2223

2324
{ path: "src/middlewares/auth.middleware.js", template: "mw-auth", options: ["auth"] },
2425
{ path: "src/middlewares/error.middleware.js", template: "mw-error", options: [] },
25-
{ path: "src/middlewares/upload.middleware.js", template: "mw-multer", options: [] },
26+
{ path: "src/middlewares/upload.middleware.js", template: "mw-upload", options: [] },
2627
{ path: "src/middlewares/pre-route.middleware.js", template: "mw-pre-route", options: [] },
2728

2829
{ path: "src/controllers/auth.controller.js", template: "src-controller-auth", options: ["auth"] },

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)