From 49b8d470fb70ec20e4d90615fb14d1daf8198261 Mon Sep 17 00:00:00 2001 From: Jiaxin Peng Date: Tue, 29 Aug 2023 14:48:50 +0100 Subject: [PATCH] Update version to 0.1.4 --- esbuild.config.mjs | 7 +++---- manifest.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 6ab5f6a..44f0827 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -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 diff --git a/manifest.json b/manifest.json index 4a5547c..fd5e9ac 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "share-to-notionnext", "name": "Share to NotionNext", - "version": "0.1.3", + "version": "0.1.4", "minAppVersion": "0.0.1", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.", "author": "EasyChris, jxpeng98", diff --git a/package.json b/package.json index 46cc26d..79d0964 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "share-to-notionnext", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.", "main": "main.js",