mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(putout) lint using actions
This commit is contained in:
parent
bbb6d46c09
commit
f97677f384
1 changed files with 3 additions and 5 deletions
|
|
@ -12,8 +12,6 @@ import shortdate from 'shortdate';
|
||||||
const simport = createSimport(import.meta.url);
|
const simport = createSimport(import.meta.url);
|
||||||
const place = promisify(_place);
|
const place = promisify(_place);
|
||||||
|
|
||||||
debugger;
|
|
||||||
|
|
||||||
const Info = await simport('../package.json');
|
const Info = await simport('../package.json');
|
||||||
|
|
||||||
await main();
|
await main();
|
||||||
|
|
@ -31,7 +29,7 @@ async function main() {
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
return console.error(error);
|
return console.error(error);
|
||||||
|
|
||||||
await replaceVersion('README.md', version, versionNew);
|
await replaceVersion('README.md', version, versionNew);
|
||||||
await replaceVersion('HELP.md', version, versionNew);
|
await replaceVersion('HELP.md', version, versionNew);
|
||||||
|
|
||||||
|
|
@ -43,7 +41,7 @@ async function main() {
|
||||||
await replaceVersion('HELP.md', history, historyNew);
|
await replaceVersion('HELP.md', history, historyNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function replaceVersion(name, version, versionNew, callback) {
|
async function replaceVersion(name, version, versionNew) {
|
||||||
const [error] = await tryToCatch(place, name, version, versionNew);
|
const [error] = await tryToCatch(place, name, version, versionNew);
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
|
|
@ -72,5 +70,5 @@ function getVersionNew(last, match) {
|
||||||
return minor(match, Info.version);
|
return minor(match, Info.version);
|
||||||
|
|
||||||
return last.substr(3);
|
return last.substr(3);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue