Skip to content

Commit

Permalink
v0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Buczacka authored and Walter Buczacka committed Nov 5, 2024
1 parent 660e2b8 commit 0acbec6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "@datawheel/data-explorer",
"version": "0.3.3",
"version": "0.3.4",
"exports": {
".": {
"types": "./dist/main.d.ts",
"import": "./dist/main.js",
"require": "./dist/main.cjs"
"import": "./dist/main.js"
}
},
"types": "./dist/main.d.ts",
Expand Down
9 changes: 6 additions & 3 deletions tsup.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

//@ts-check
import {defineConfig} from "tsup"

export default defineConfig(options => ({
clean: !options.watch,
entry: ["src/main.ts"],
format: ["esm", "cjs"],
format: ["esm"],
outExtension() {
return {js: ".js"}
},
shims: true,
sourcemap: !!options.watch,
splitting: false,
treeshake: true,
declaration: true,
dts: true,
dts: true, // This enables type declaration file generation
}));

0 comments on commit 0acbec6

Please sign in to comment.