diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f83e71d..b61a7a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,6 @@ jobs: node-version: ${{steps.get-version.outputs.node}} - run: npm install - - run: npm install domexception - run: npm run report -- --colors diff --git a/.gitignore b/.gitignore index 8602d1e..4c1a06c 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ typings/ .env index.d.ts +from.d.ts diff --git a/from.js b/from.js index 0f493c6..86d21b4 100644 --- a/from.js +++ b/from.js @@ -1,4 +1,5 @@ const {statSync, createReadStream} = require('fs'); +const Blob = require('./index.js'); const DOMException = require('domexception'); // eslint-disable-next-line unicorn/import-index diff --git a/package.json b/package.json index 9368cf1..57d6727 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,15 @@ "files": [ "from.js", "index.js", - "index.d.ts" + "index.d.ts", + "from.d.ts" ], "scripts": { "lint": "xo", "test": "xo && ava", "report": "c8 --reporter json --reporter text ava", "coverage": "c8 --reporter json --reporter text ava && codecov -f coverage/coverage-final.json", - "prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js" + "prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js from.js" }, "repository": "https://github.com/node-fetch/fetch-blob.git", "keywords": [ @@ -33,6 +34,7 @@ "ava": "^3.8.2", "c8": "^7.2.0", "codecov": "^3.7.0", + "domexception": "^2.0.1", "get-stream": "^5.1.0", "node-fetch": "^2.6.0", "typescript": "^3.9.5",