Minified package

This commit is contained in:
Auto Rebase
2024-12-28 00:48:01 +01:00
committed by Skydust
parent 7e6bef38bf
commit 757bdca40c
4 changed files with 71 additions and 20513 deletions

16
app.ts
View File

@@ -187,8 +187,8 @@ const rebaseBranch = async ({
"rebase",
onBranch
]).catch(async error => {
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.ERROR);
writeConsole(error, LogLevel.ERROR)
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.WARNING);
writeConsole(error, LogLevel.WARNING)
await runGitCommand([
"rebase",
"--abort"
@@ -236,14 +236,18 @@ const main = async (): Promise<void> => {
writeConsole(branches);
// Step 2: Detect dependencies
writeConsole("Determining dependencies...");
const dependencies = await buildRebaseDependencyGraph(branches);
writeConsole("Dependencies");
writeConsole(dependencies);
writeConsole(dependencies, LogLevel.DEBUG);
// Step 3: Determine rebase order
const order = rebaseOrder(dependencies);
writeConsole("Rebase order");
writeConsole(order);
if (order.length === 0) {
writeConsole("Nothing to rebase");
} else {
writeConsole("Rebase order");
writeConsole(order);
}
// Step 4: Rebase branches
for (const rebaseAction of order) {

20564
dist/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/package.json vendored
View File

@@ -5,7 +5,7 @@
"main": "app.js",
"scripts": {
"prepare": "husky",
"build": "cp package.json dist/ && sed -i '' -E 's/\"type\": \".*$//' dist/package.json && esbuild --outdir=dist --bundle --platform=node --format=cjs --allow-overwrite ./app.ts",
"build": "cp package.json dist/ && sed -i '' -E 's/\"type\": \".*$//' dist/package.json && esbuild --outdir=dist --bundle --platform=node --minify --format=cjs --allow-overwrite ./app.ts",
"dev": "tsx app.ts"
},

View File

@@ -5,7 +5,7 @@
"main": "app.js",
"scripts": {
"prepare": "husky",
"build": "cp package.json dist/ && sed -i '' -E 's/\"type\": \".*$//' dist/package.json && esbuild --outdir=dist --bundle --platform=node --format=cjs --allow-overwrite ./app.ts",
"build": "cp package.json dist/ && sed -i '' -E 's/\"type\": \".*$//' dist/package.json && esbuild --outdir=dist --bundle --platform=node --minify --format=cjs --allow-overwrite ./app.ts",
"dev": "tsx app.ts"
},
"type": "module",