Update version to 0.1.1

This commit is contained in:
Jiaxin Peng
2023-08-29 14:21:12 +01:00
parent 024b7f726e
commit a7b44b7583
3 changed files with 48 additions and 45 deletions

View File

@@ -8,49 +8,52 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin if you want to view the source, please visit the github repository of this plugin
*/ */
`; `;
const prod = (process.argv[2] === 'production'); const prod = (process.argv[2] === 'production');
const ctx = await esbuild.context({ (async () => { // Enclose everything in an async function for using await
banner: { const ctx = await esbuild.context({
js: banner, banner: {
}, js: banner,
entryPoints: ['src/main.ts'], },
bundle: true, entryPoints: ['src/main.ts'],
external: [ bundle: true,
'obsidian', external: [
'electron', 'obsidian',
'@codemirror/autocomplete', 'electron',
'@codemirror/closebrackets', '@codemirror/autocomplete',
'@codemirror/collab', '@codemirror/closebrackets',
'@codemirror/commands', '@codemirror/collab',
'@codemirror/comment', '@codemirror/commands',
'@codemirror/fold', '@codemirror/comment',
'@codemirror/gutter', '@codemirror/fold',
'@codemirror/highlight', '@codemirror/gutter',
'@codemirror/history', '@codemirror/highlight',
'@codemirror/language', '@codemirror/history',
'@codemirror/lint', '@codemirror/language',
'@codemirror/matchbrackets', '@codemirror/lint',
'@codemirror/panel', '@codemirror/matchbrackets',
'@codemirror/rangeset', '@codemirror/panel',
'@codemirror/rectangular-selection', '@codemirror/rangeset',
'@codemirror/search', '@codemirror/rectangular-selection',
'@codemirror/state', '@codemirror/search',
'@codemirror/stream-parser', '@codemirror/state',
'@codemirror/text', '@codemirror/stream-parser',
'@codemirror/tooltip', '@codemirror/text',
'@codemirror/view', '@codemirror/tooltip',
...builtins], '@codemirror/view',
format: 'cjs', ...builtins
target: 'es2016', ],
logLevel: "info", format: 'cjs',
sourcemap: prod ? false : 'inline', target: 'es2016',
treeShaking: true, logLevel: "info",
outfile: 'main.js', 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", "id": "share-to-notionnext",
"name": "Share to NotionNext", "name": "Share to NotionNext",
"version": "0.1.0", "version": "0.1.1",
"minAppVersion": "0.0.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.", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.",
"author": "EasyChris, jxpeng98", "author": "EasyChris, jxpeng98",

View File

@@ -1,6 +1,6 @@
{ {
"name": "share-to-notionnext", "name": "share-to-notionnext",
"version": "0.1.0", "version": "0.1.1",
"type": "module", "type": "module",
"description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.",
"main": "main.js", "main": "main.js",