mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 08:08:34 +08:00
Update version to 0.1.4
This commit is contained in:
@@ -10,8 +10,7 @@ if you want to view the source, please visit the github repository of this plugi
|
||||
`;
|
||||
const prod = (process.argv[2] === 'production');
|
||||
|
||||
(async () => { // Enclose everything in an async function for using await
|
||||
const ctx = await esbuild.context({
|
||||
const ctx = await esbuild.context({
|
||||
banner: {
|
||||
js: banner,
|
||||
},
|
||||
@@ -54,6 +53,6 @@ const prod = (process.argv[2] === 'production');
|
||||
if (!prod) {
|
||||
await ctx.watch();
|
||||
} else {
|
||||
await ctx.dispose();
|
||||
await ctx.rebuild()
|
||||
ctx.dispose().then(r => console.log('Build completed'), e => console.error(e));
|
||||
}
|
||||
})().catch(() => process.exit(1)); // Use .catch here to handle any errors
|
||||
|
||||
Reference in New Issue
Block a user