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

12
app.ts
View File

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

20570
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", "main": "app.js",
"scripts": { "scripts": {
"prepare": "husky", "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" "dev": "tsx app.ts"
}, },

View File

@@ -5,7 +5,7 @@
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"prepare": "husky", "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" "dev": "tsx app.ts"
}, },
"type": "module", "type": "module",