MCPcopy Create free account
hub / github.com/webpack/webpack-cli / validate

Function validate

packages/create-webpack-app/src/generators/init/vue.ts:77–82  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

75 choices: ["npm", "yarn", "pnpm"],
76 default: "npm",
77 validate(input: string) {
78 if (!input.trim()) {
79 return "Package manager cannot be empty";
80 }
81 return true;
82 },
83 },
84 ],
85 actions: function actions(answers: Answers) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected