Compare commits

...

1 Commits
0.1.0 ... 0.1.1

Author SHA1 Message Date
Jiaxin Peng
fdb81f76a7 Update version to 0.1.1 2023-08-29 14:21:12 +01:00
3 changed files with 48 additions and 45 deletions

View File

@@ -8,10 +8,10 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
`;
const prod = (process.argv[2] === 'production');
const ctx = await esbuild.context({
(async () => { // Enclose everything in an async function for using await
const ctx = await esbuild.context({
banner: {
js: banner,
},
@@ -41,16 +41,19 @@ const ctx = await esbuild.context({
'@codemirror/text',
'@codemirror/tooltip',
'@codemirror/view',
...builtins],
...builtins
],
format: 'cjs',
target: 'es2016',
logLevel: "info",
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',
})
await ctx.watch();
// await ctx.dispose();
});
if (!prod) {
await ctx.watch();
} else {
await ctx.dispose();
}
})().catch(() => process.exit(1)); // Use .catch here to handle any errors

View File

@@ -1,7 +1,7 @@
{
"id": "share-to-notionnext",
"name": "Share to NotionNext",
"version": "0.1.0",
"version": "0.1.1",
"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",

View File

@@ -1,6 +1,6 @@
{
"name": "share-to-notionnext",
"version": "0.1.0",
"version": "0.1.1",
"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",