Skip to content

Commit

Permalink
chore: update version source
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Oct 7, 2024
1 parent b395048 commit dd851d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mind-elixir",
"version": "4.1.3",
"version": "4.1.4",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ window.m = mind
window.M = MindElixir
window.E = MindElixir.E

console.log('MindElixir Version', MindElixir.version)

window.destroy = () => {
mind.destroy()
// @ts-expect-error remove reference
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export * from './types/dom'
import type { MindElixirData, MindElixirInstance, MindElixirMethods, Options } from './types/index'
import methods from './methods'
import { sub, main } from './utils/generateBranch'
// @ts-expect-error json file
import { version } from '../package.json'

// TODO show up animation
const $d = document
Expand Down Expand Up @@ -129,7 +131,7 @@ MindElixir.DARK_THEME = DARK_THEME
* @memberof MindElixir
* @static
*/
MindElixir.version = '4.1.3'
MindElixir.version = version
/**
* @function
* @memberof MindElixir
Expand Down

0 comments on commit dd851d0

Please sign in to comment.