Skip to content

Commit

Permalink
Version 0.1.13 - Optimization and fix log on start
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamint08 committed Apr 8, 2024
1 parent 4171f85 commit f505836
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 113 deletions.
30 changes: 15 additions & 15 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ import {parseArgs} from "util";
const dir = './lib';
if (existsSync(dir)) rmSync(dir, { recursive: true });

// Build source files
Bun.build({
format: 'esm',
target: 'bun',
outdir: './lib',
entrypoints: ['./src/main'],
minify: {
whitespace: true
},
external: Object.keys(pkg.dependencies)
});

await $`bun x tsc`;

const { values, positionals } = parseArgs({
args: Bun.argv,
options: {
Expand All @@ -39,4 +25,18 @@ if(values.version) {
pkg.version = values.version;
Bun.write('package.json', JSON.stringify(pkg, null, 2));
console.log(`Updated version to ${values.version}`);
}
}

// Build source files
Bun.build({
format: 'esm',
target: 'bun',
outdir: './lib',
entrypoints: ['./src/main'],
minify: {
whitespace: true
},
external: Object.keys(pkg.dependencies)
});

await $`bun x tsc`;
Loading

0 comments on commit f505836

Please sign in to comment.