Skip to content

Commit

Permalink
Add separate blocks export
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsteff committed May 31, 2024
1 parent bb89755 commit 9257ae3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"exports": {
".": {
"import": "./dist/index.js"
},
"./blocks": {
"import": "./dist/blocks/index.js"
}
},
"files": [
Expand All @@ -20,7 +23,7 @@
"typescript": "^5.4.5"
},
"scripts": {
"build": "tsup src/index.ts"
"build": "tsup src/index.ts src/blocks/index.ts"
},
"author": "",
"license": "ISC",
Expand Down
7 changes: 4 additions & 3 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { defineConfig } from 'tsup'
import { defineConfig } from "tsup";

export default defineConfig((options) => ({
name: "reaviz-data-utils",
entry: ['src/index.tsx'],
entry: ["src/index.tsx", "src/blocks/index.ts"],
format: ["esm", "cjs"],
bundle: true,
clean: true,
}))
splitting: true,
}));

0 comments on commit 9257ae3

Please sign in to comment.