Open neilcampbell opened 8 months ago
Worth also testing the imports in subscriber-ts too if possible, there's a couple of weird ones in there.
@robdmoore Can confirm the AlgoKit subscriber-ts imports work correctly with this change and all tests pass.
Just pushed an update to the PR to include a couple of additional index imports I missed. This update handles the below imports:
import { ABIContractNetworkInfo } from 'algosdk/dist/types/abi'
import { AssetFreezeTxn } from 'algosdk/dist/types/types/transactions'
import { AssetFreezeTransaction } from 'algosdk/dist/types/types/transactions/asset'
Produce a valid ESM and CJS output, so importing into an ESM project doesn't fallback to using the CJS version.
This fixes the following error, when using
algosdk
in an ESM project.I have tested that the following imports, which were previously resolvable still work correctly.
Additionally I have tested the update in AlgoKit utils-ts and all tests pass.