diff --git a/package-lock.json b/package-lock.json index defb7a3..ec66f96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -211,6 +211,14 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.18.tgz", "integrity": "sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==" }, + "@types/node-fetch": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.4.tgz", + "integrity": "sha512-tR1ekaXUGpmzOcDXWU9BW73YfA2/VW1DF1FH+wlJ82BbCSnWTbdX+JkqWQXWKIGsFPnPsYadbXfNgz28g+ccWg==", + "requires": { + "@types/node": "*" + } + }, "@types/shelljs": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.8.1.tgz", diff --git a/package.json b/package.json index bc013c2..042a4ab 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "dependencies": { "@oceanprotocol/keeper-contracts": "^0.5.3", "@oceanprotocol/secret-store-client": "~0.0.14", + "@types/node-fetch": "^2.1.4", "bignumber.js": "^8.0.1", "ethereumjs-util": "^6.0.0", "node-fetch": "^2.3.0", diff --git a/tsconfig.json b/tsconfig.json index 111e8db..2c76110 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,10 @@ "preserveConstEnums": true, "outDir": "./dist/node/", "rootDir": "./src/", - "sourceMap": true + "sourceMap": true, + "typeRoots": [ + "node_modules/@types" + ] }, "include": [ "src/**/*"