Skip to content

Commit

Permalink
chore(pkg): bump and use treeshakable utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Aug 11, 2024
1 parent 62a93ab commit f2ad985
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"default": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "tsup src/index.ts --dts --minify terser --clean --format cjs,esm --sourcemap",
"build": "tsup",
"release": "release-it",
"lint": "tsc && eslint ."
},
Expand Down Expand Up @@ -64,6 +69,6 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@literate.ink/utilities": "1.0.0-10281844077.1"
"@literate.ink/utilities": "1.0.0-10336585950.1"
}
}
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

16 changes: 16 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["src/index.ts"],

outDir: "dist",
format: ["cjs", "esm"],

treeshake: true,
splitting: false,

sourcemap: true,
minify: "terser",
clean: true,
dts: true
});

0 comments on commit f2ad985

Please sign in to comment.