airswap-protocols icon indicating copy to clipboard operation
airswap-protocols copied to clipboard

make build arch-agnostic

Open fauxbytes opened this issue 5 months ago • 0 comments

Attempting to build on windows (git-bash).

$ git rev-parse --short HEAD
e986b927
$ cd source/swap/
$ yarn compile
yarn run v1.22.22
$ hardhat compile; yarn typechain
Error HH303: Unrecognized task 'compile;'
$ cd -
$ export LINUX_CMD_DELIM=';'
$ rg -g '**/package.json' "$LINUX_CMD_DELIM"
source\batch-call\package.json
19:    "compile": "hardhat compile; yarn typechain",

source\swap\package.json
20:    "compile": "hardhat compile; yarn typechain",

source\pool\package.json
19:    "compile": "hardhat compile; yarn typechain",

source\wrapper\package.json
21:    "compile": "hardhat compile; yarn typechain",

source\delegate\package.json
19:    "compile": "hardhat compile; yarn typechain",

source\registry\package.json
19:    "compile": "hardhat compile; yarn typechain",

source\staking\package.json
19:    "compile": "hardhat compile; yarn typechain",

source\swap-erc20\package.json
19:    "compile": "hardhat compile; yarn typechain",

Also suspect the following error is somehow arch-related (doesn't occur on linux):

$ yarn compile
yarn run v1.22.22
$ lerna run compile
lerna notice cli v7.4.2
lerna info versioning independent

 >  Lerna (powered by Nx)   Running target compile for 11 projects
    ×  @airswap/utils:compile
$ yarn clean && tsc -b
error TypeError: Cannot create property '-noemit' on string '{"-noemit":""}'

fauxbytes avatar Sep 26 '24 00:09 fauxbytes