import inquirer from "inquirer";
const r = await inquirer.prompt([
{
type: "input",
name: "packageName", message: "set package name",
validate(val) {
if (val) return true;
return "Please enter package name";
},
choices: [
{
name: '77'
}
],
},
]);
execa("yarn",{tcwd: '路径', stdio: "inherit"});
npm config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npmjs.org/
npm publish --registry https://registry.npmjs.org
"files": ["bin" "package.json"]
npm unpublish--force --registry https://registry.npmjs.org
yarn add name -save/-dev
yarn remove name -save/-dev
yarn global add name
yarn global <add/bin/list/remove/upgrade>