Skip to content

Commit

Permalink
tsup build with minify
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Jan 31, 2023
1 parent 7ea75e6 commit 02f318f
Show file tree
Hide file tree
Showing 5 changed files with 547 additions and 29 deletions.
36 changes: 24 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,18 @@
"email": "davay@frkt.ru"
},
"type": "module",
"exports": {
".": {
"import": "./lib/gun-avatar.js",
"require": "./lib/gun-avatar.umd.cjs"
}
},
"main": "./lib/gun-avatar.umd.cjs",
"module": "./lib/gun-avatar.js",
"types": "./lib/types/index.d.ts",
"exports": "./lib/index.js",
"main": "./lib/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib"
],
"packageManager": "pnpm@7.26.2",
"scripts": {
"dev": "vitepress dev docs",
"build": "vitepress build docs",
"build-lib": "vite build --config vite.config.lib.js && tsc ",
"build-lib": "tsup",
"serve": "vitepress preview docs --port=5005",
"test": "vite docs/public/tests",
"deploy": "sh deploy.sh"
Expand All @@ -59,9 +55,25 @@
"@vitejs/plugin-vue": "^4.0.0",
"@volar/vue-language-plugin-pug": "^1.0.24",
"pug": "3.0.2",
"tsup": "^6.5.0",
"unocss": "^0.48.4",
"unplugin-icons": "^0.15.1",
"vite": "^4.0.4",
"vitepress": "1.0.0-alpha.40"
"vitepress": "1.0.0-alpha.40",
"typescript": "4.9.5"
},
"tsup": {
"entry": [
"src/index.ts"
],
"splitting": false,
"sourcemap": true,
"clean": true,
"dts": true,
"outDir": "lib",
"minify": true,
"format": [
"esm"
]
}
}
}
Loading

0 comments on commit 02f318f

Please sign in to comment.