Skip to content

Commit

Permalink
Refactor build configuration and remove "exports" in signers and cons…
Browse files Browse the repository at this point in the history
…tants (#67)
  • Loading branch information
justinbarry authored Feb 5, 2024
1 parent 7e49955 commit 4a281fc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .changeset/light-penguins-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@burnt-labs/constants": patch
"@burnt-labs/signers": patch
---

Remove exports from package.json in signers and constants package. Additionally, adjust build setting to output more predicable build output.
4 changes: 0 additions & 4 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"module": "./dist/index.mjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist",
"./styles.css": "./dist/index.css"
},
"license": "MIT",
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
treeshake: true,
splitting: true,
entry: ["src/**/*.ts"],
entry: ["src/index.ts"],
format: ["esm", "cjs"],
dts: true,
minify: false,
Expand Down
3 changes: 0 additions & 3 deletions packages/signers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist"
},
"license": "MIT",
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion packages/signers/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
treeshake: true,
splitting: true,
entry: ["src/**/*.ts"],
entry: ["src/index.ts"],
format: ["esm", "cjs"],
dts: true,
minify: false,
Expand Down

0 comments on commit 4a281fc

Please sign in to comment.