diff --git a/packages/perps-controller/CHANGELOG.md b/packages/perps-controller/CHANGELOG.md index 587f5eb5c5..24e6ce7017 100644 --- a/packages/perps-controller/CHANGELOG.md +++ b/packages/perps-controller/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add slippage controls so users can configure per-order slippage tolerance for market trades ([#8871](https://github.com/MetaMask/core/pull/8871)) - Track `vip_tier` and `vip_discount` properties on perps trading events for fee analytics ([#8871](https://github.com/MetaMask/core/pull/8871)) - Surface an in-app banner during an ongoing HyperLiquid outage so users see degraded trading status ([#8871](https://github.com/MetaMask/core/pull/8871)) +- Expose subpath `exports` for `./constants`, `./constants/*`, `./types`, and `./utils/*` so consumers using legacy `node` module resolution can deep-import compiled entry points without losing tree-shaking ([#8883](https://github.com/MetaMask/core/pull/8883)) ### Fixed diff --git a/packages/perps-controller/package.json b/packages/perps-controller/package.json index 87832436f6..108ce7dc14 100644 --- a/packages/perps-controller/package.json +++ b/packages/perps-controller/package.json @@ -35,6 +35,46 @@ "default": "./dist/index.cjs" } }, + "./constants": { + "import": { + "types": "./dist/constants/index.d.mts", + "default": "./dist/constants/index.mjs" + }, + "require": { + "types": "./dist/constants/index.d.cts", + "default": "./dist/constants/index.cjs" + } + }, + "./constants/*": { + "import": { + "types": "./dist/constants/*.d.mts", + "default": "./dist/constants/*.mjs" + }, + "require": { + "types": "./dist/constants/*.d.cts", + "default": "./dist/constants/*.cjs" + } + }, + "./types": { + "import": { + "types": "./dist/types/index.d.mts", + "default": "./dist/types/index.mjs" + }, + "require": { + "types": "./dist/types/index.d.cts", + "default": "./dist/types/index.cjs" + } + }, + "./utils/*": { + "import": { + "types": "./dist/utils/*.d.mts", + "default": "./dist/utils/*.mjs" + }, + "require": { + "types": "./dist/utils/*.d.cts", + "default": "./dist/utils/*.cjs" + } + }, "./package.json": "./package.json" }, "publishConfig": {