From 4a281fcfa7ead6cb91f935e853b0a1bf7b98dcc9 Mon Sep 17 00:00:00 2001 From: Justin <328965+justinbarry@users.noreply.github.com> Date: Mon, 5 Feb 2024 15:17:00 -0800 Subject: [PATCH] Refactor build configuration and remove "exports" in signers and constants (#67) --- .changeset/light-penguins-deny.md | 6 ++++++ packages/constants/package.json | 4 ---- packages/constants/tsup.config.ts | 2 +- packages/signers/package.json | 3 --- packages/signers/tsup.config.ts | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .changeset/light-penguins-deny.md diff --git a/.changeset/light-penguins-deny.md b/.changeset/light-penguins-deny.md new file mode 100644 index 00000000..5628b17f --- /dev/null +++ b/.changeset/light-penguins-deny.md @@ -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. diff --git a/packages/constants/package.json b/packages/constants/package.json index 47d925a1..9860178d 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -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", diff --git a/packages/constants/tsup.config.ts b/packages/constants/tsup.config.ts index 87aa596a..52f374c2 100644 --- a/packages/constants/tsup.config.ts +++ b/packages/constants/tsup.config.ts @@ -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, diff --git a/packages/signers/package.json b/packages/signers/package.json index dacd6778..7f28fe0e 100644 --- a/packages/signers/package.json +++ b/packages/signers/package.json @@ -4,9 +4,6 @@ "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", - "exports": { - ".": "./dist" - }, "license": "MIT", "scripts": { "build": "tsup", diff --git a/packages/signers/tsup.config.ts b/packages/signers/tsup.config.ts index 87aa596a..52f374c2 100644 --- a/packages/signers/tsup.config.ts +++ b/packages/signers/tsup.config.ts @@ -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,