Skip to content

Commit

Permalink
feat: add exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Aug 1, 2024
1 parent 8100402 commit d3549d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "mina-js",
"version": "0.0.1",
"scripts": {
"build": "tsup",
"test": "bun test",
Expand All @@ -23,5 +24,17 @@
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"exports": {
"./accounts": {
"types": "./dist/accounts/index.d.ts",
"import": "./dist/accounts/index.mjs",
"default": "./dist/accounts/index.js"
},
"./providers": {
"types": "./dist/providers/index.d.ts",
"import": "./dist/providers/index.mjs",
"default": "./dist/providers/index.js"
}
}
}
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/accounts/index.ts", "src/providers/index.ts"],
outDir: "./dist",
format: "esm",
format: ["esm", "cjs"],
sourcemap: true,
clean: true,
bundle: true,
Expand Down

0 comments on commit d3549d0

Please sign in to comment.