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

Function validate

packages/create-webpack-app/src/generators/init/default.ts:89–94  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

87 choices: ["npm", "yarn", "pnpm"],
88 default: "npm",
89 validate(input: string) {
90 if (!input.trim()) {
91 return "Package manager cannot be empty";
92 }
93 return true;
94 },
95 },
96 ],
97 actions: function actions(answers: Answers) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected