You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tiny-invariant is currently listed in devDependencies but is used in production code (src/pool-utils/poolId.ts and src/utils/assetHelpers.ts). This causes runtime errors when the package is installed with --production flag, as devDependencies are not installed.
Evidence
The library is imported and used in getPoolAddress(), getPoolSpecialization(), getPoolNonce() functions and in AssetHelpers.sortTokens() method. Both files are exported through main index.ts.
Solution
Move tiny-invariant from devDependencies to dependencies in package.json.
Impact
This fixes runtime crashes in production environments and aligns with npm best practices where production code dependencies belong in dependencies. No breaking changes to API.