Skip to content

Commit

Permalink
chore: Update version to 0.2.0 in manifest and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ae86jack committed Jul 7, 2024
1 parent 653102b commit 37d4746
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 82 deletions.
65 changes: 33 additions & 32 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";
import builtins from 'builtin-modules'
import esbuild from 'esbuild'
import process from 'process'

const banner =
`/*
const banner = `/*
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 prod = process.argv[2] === 'production'

const context = await esbuild.context({
banner: {
js: banner,
js: banner
},
entryPoints: ["src/main.ts"],
entryPoints: ['src/main.ts'],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins],
format: "cjs",
target: "es2018",
logLevel: "info",
sourcemap: prod ? false : "inline",
'obsidian',
'electron',
'@codemirror/autocomplete',
'@codemirror/collab',
'@codemirror/commands',
'@codemirror/language',
'@codemirror/lint',
'@codemirror/search',
'@codemirror/state',
'@codemirror/view',
'@lezer/common',
'@lezer/highlight',
'@lezer/lr',
...builtins
],
format: 'cjs',
target: 'es2018',
logLevel: 'info',
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: "main.js",
});
platform: 'node',
outfile: 'main.js'
})

if (prod) {
await context.rebuild();
process.exit(0);
await context.rebuild()
process.exit(0)
} else {
await context.watch();
await context.watch()
}
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "tars",
"name": "Tars",
"version": "0.1.2",
"version": "0.2.0",
"minAppVersion": "1.5.8",
"description": "Use Kimi and other Chinese LLMs for text generation based on tag suggestions.",
"author": "Tarslab",
"authorUrl": "https://github.com/tarslab",
"isDesktopOnly": false
"isDesktopOnly": true
}
151 changes: 107 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-tars",
"version": "0.1.2",
"version": "0.2.0",
"description": "Use Kimi and other Chinese LLMs for text generation based on tag suggestions.",
"main": "main.js",
"scripts": {
Expand All @@ -12,15 +12,16 @@
"author": "C Jack<https://github.com/ae86jack>",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"@types/node": "^16.18.101",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"builtin-modules": "3.3.0",
"esbuild": "0.17.3",
"jose": "^5.2.4",
"node-fetch": "^3.3.2",
"obsidian": "latest",
"openai": "^4.33.0",
"tslib": "^2.4.0",
"typescript": "5.4"
"typescript": "^5.5.2"
}
}
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"0.1.0": "1.5.8",
"0.1.1": "1.5.8",
"0.1.2": "1.5.8"
"0.1.2": "1.5.8",
"0.2.0": "1.5.8"
}

0 comments on commit 37d4746

Please sign in to comment.