From 0f35f6ee9328376c8fde01684593b10b80b0a987 Mon Sep 17 00:00:00 2001 From: Matthew Salamon <35425388+Matthews3301@users.noreply.github.com> Date: Thu, 18 Nov 2021 05:00:37 +0000 Subject: [PATCH] chore: update typechain scripts for Windows (#2707) There are two errors when deploying on Windows system: 1. Using single quotes in path argument doesn't seem to be accepted in typechain command 2. `?(v3-core|v3-periphery)` operator doesn't work Here are fixes/workarounds. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 61777386df..7234f79145 100644 --- a/package.json +++ b/package.json @@ -137,8 +137,8 @@ "@walletconnect/ethereum-provider": "1.6.5" }, "scripts": { - "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'", - "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'", + "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"", + "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*.json\"", "contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3", "graphql:generate": "graphql-codegen --config codegen.yml", "prei18n:extract": "touch src/locales/en-US.po",