Skip to content

Commit

Permalink
Change change-case import & deprecated paramCase
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregradelet committed Nov 8, 2023
1 parent 7a5904d commit eed3d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/tasks/setup/modules/setup-package-json.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Inquirer from "inquirer"
import changeCase from "change-case"
import * as changeCase from "change-case"
import * as mfs from "@cher-ami/mfs"
import logs from "../../../helpers/logger.js"
import path from "path"
Expand Down Expand Up @@ -42,7 +42,7 @@ export default async ({ packageJson, defaultProjectName, fakeMode } = {}) => {
type: "input",
message: "What's the project name? (dash-case)",
name: "projectName",
}).then((answer) => (projectName = changeCase.paramCase(answer.projectName)))
}).then((answer) => (projectName = changeCase.trainCase(answer.projectName)))
log("> new project name:", projectName)

// Ask user for author
Expand Down

0 comments on commit eed3d4c

Please sign in to comment.