Skip to content

Commit

Permalink
feat: export ./lite for mind-elixir-cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Aug 19, 2023
1 parent 5c5bc62 commit d75b5c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 2 additions & 5 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))
const buildList = [
{
name: 'MindElixir',
fileName: 'MindElixir',
enrty: __dirname + './src/index.ts',
},
{
name: 'MindElixir',
fileName: 'MindElixirLite',
name: 'MindElixirLite',
enrty: __dirname + './src/index.ts',
mode: 'lite',
},
{
name: 'example',
fileName: 'example',
enrty: __dirname + './src/exampleData/1.ts',
},
]
Expand All @@ -28,7 +25,7 @@ for (let i = 0; i < buildList.length; i++) {
emptyOutDir: i === 0,
lib: {
entry: info.enrty,
fileName: info.fileName,
fileName: info.name,
name: info.name,
formats: ['iife', 'es'],
},
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mind-elixir",
"version": "3.0.0",
"version": "3.0.1",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand All @@ -25,6 +25,9 @@
"import": "./dist/MindElixir.js",
"require": "./dist/MindElixir.js"
},
"./lite": {
"import": "./dist/MindElixirLite.iife.js"
},
"./example": {
"types": "./dist/types/exampleData/1.d.ts",
"import": "./dist/example.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ MindElixir.DARK_THEME = DARK_THEME
* @memberof MindElixir
* @static
*/
MindElixir.version = '3.0.0'
MindElixir.version = '3.0.1'
/**
* @function
* @memberof MindElixir
Expand Down

0 comments on commit d75b5c6

Please sign in to comment.