warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

[BUG] - absolute path breaking builds #523

Closed dtfiedler closed 6 months ago

dtfiedler commented 6 months ago

Describe the bug When building with warp-contracts>1.4.39 - get the following error

node_modules/warp-contracts/lib/types/core/modules/impl/HandlerExecutorFactory.d.ts:12:21 - error TS2307: Cannot find module 'utils/types/mutually-exclusive' or its corresponding type declarations.

12 import { XOR } from 'utils/types/mutually-exclusive';
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/warp-contracts/lib/types/core/mo

To Reproduce Install warp-contracts@v1.4.43

tsconfig.json:

{
  "compilerOptions": {
    "target": "es2021",
    "module": "CommonJS",
    "moduleResolution": "node",
  }
}
import { WarpFactory } from 'warp-contracts'

Expected behavior Routes are all relative and builds work as expected

Desktop (please complete the following information):

Additional context Github action build error here https://github.com/ar-io/arns-service/actions/runs/9018958323/job/24780910601

ppedziwiatr commented 6 months ago

released in 1.4.44