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

Function validate

packages/create-webpack-app/src/generators/init/react.ts:78–83  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected