Skip to content

Commit

Permalink
fix: use tsup instead of microbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Marantesss committed Nov 27, 2023
1 parent 71de09e commit c0433d4
Show file tree
Hide file tree
Showing 4 changed files with 1,498 additions and 4,992 deletions.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerlifting-formulas",
"version": "0.2.1",
"version": "0.2.3",
"description": "Powerlifting Formulas Calculator (Wilks, WilksV2, Dots, IPF, Reshel and Glossbrenner)",
"type": "module",
"keywords": [
Expand All @@ -15,9 +15,7 @@
"author": "Marantesss <goncalojmarantes@gmail.com>",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/index.module.js",
"unpkg": "./dist/index.umd.js",
"exports": "./dist/index.modern.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
Expand All @@ -30,15 +28,14 @@
"url": "git+https://github.com/Marantesss/powerlifting-formulas.git"
},
"scripts": {
"build": "microbundle --sourcemap false",
"dev": "microbundle watch --sourcemap false",
"build": "tsup",
"test": "vitest",
"test:watch": "vitest --watch"
},
"devDependencies": {
"@types/node": "^20.9.2",
"microbundle": "^0.15.1",
"tsc": "^2.0.4",
"tsup": "^8.0.1",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
},
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export type { Formula, Gender, Mass } from './types'

export { wilks, wilks2020 } from './wilks'
export { dots } from './dots'
export { glossbrenner } from './glossbrenner'
Expand Down
11 changes: 11 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
splitting: false,
sourcemap: true,
clean: true,
minify: true,
dts: true
})
Loading

0 comments on commit c0433d4

Please sign in to comment.