Switched from eslint and prettier to biome
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { spawn } from "node:child_process";
|
||||
import { resolve } from "node:path";
|
||||
import { spawn } from 'node:child_process'
|
||||
import { resolve } from 'node:path'
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -9,41 +9,41 @@ import { resolve } from "node:path";
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
const run = async (command, ...args) => {
|
||||
const cwd = resolve();
|
||||
return new Promise((resolve) => {
|
||||
const cmd = spawn(command, args, {
|
||||
stdio: ["inherit", "pipe", "pipe"], // Inherit stdin, pipe stdout, pipe stderr
|
||||
shell: true,
|
||||
cwd,
|
||||
});
|
||||
const cwd = resolve()
|
||||
return new Promise((resolve) => {
|
||||
const cmd = spawn(command, args, {
|
||||
stdio: ['inherit', 'pipe', 'pipe'], // Inherit stdin, pipe stdout, pipe stderr
|
||||
shell: true,
|
||||
cwd,
|
||||
})
|
||||
|
||||
let output = "";
|
||||
let output = ''
|
||||
|
||||
cmd.stdout.on("data", (data) => {
|
||||
process.stdout.write(data.toString());
|
||||
output += data.toString();
|
||||
});
|
||||
cmd.stdout.on('data', (data) => {
|
||||
process.stdout.write(data.toString())
|
||||
output += data.toString()
|
||||
})
|
||||
|
||||
cmd.stderr.on("data", (data) => {
|
||||
process.stderr.write(data.toString());
|
||||
});
|
||||
cmd.stderr.on('data', (data) => {
|
||||
process.stderr.write(data.toString())
|
||||
})
|
||||
|
||||
cmd.on("close", () => {
|
||||
resolve(output);
|
||||
});
|
||||
});
|
||||
};
|
||||
cmd.on('close', () => {
|
||||
resolve(output)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
const main = async () => {
|
||||
await run("bun changeset version");
|
||||
await run("git add .");
|
||||
await run('git commit -m "chore: update version"');
|
||||
await run("git push");
|
||||
await run("bun run build");
|
||||
await run("bun changeset publish");
|
||||
await run("git push --follow-tags");
|
||||
const tag = (await run("git describe --abbrev=0")).replace("\n", "");
|
||||
await run(`tea releases create --tag ${tag} --title "${tag}"`);
|
||||
};
|
||||
await run('bun changeset version')
|
||||
await run('git add .')
|
||||
await run('git commit -m "chore: update version"')
|
||||
await run('git push')
|
||||
await run('bun run build')
|
||||
await run('bun changeset publish')
|
||||
await run('git push --follow-tags')
|
||||
const tag = (await run('git describe --abbrev=0')).replace('\n', '')
|
||||
await run(`tea releases create --tag ${tag} --title "${tag}"`)
|
||||
}
|
||||
|
||||
main();
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user