Skip to content

tiny-invariant should be moved from devDependencies to dependencies #2613

@ruslan0012

Description

@ruslan0012

Problem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions