From 387fd37de1ec3419cd7d1ce1c5ce5831567daccb Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Thu, 19 Aug 2021 13:10:37 +0200 Subject: [PATCH] fix: types with ipjs build --- package.json | 3 ++- packages/ipfs-unixfs-exporter/package.json | 1 + packages/ipfs-unixfs-importer/package.json | 1 + packages/ipfs-unixfs/package.json | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5185e028..6cb1b645 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "update-contributors": "aegir release --lint=false --test=false --bump=false --build=false --changelog=false --commit=false --tag=false --push=false --ghrelease=false --docs=false --publish=false" }, "devDependencies": { - "lerna": "^3.22.1" + "lerna": "^3.22.1", + "json": "^11.0.0" }, "repository": { "type": "git", diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index fcb01826..10b26a7f 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -12,6 +12,7 @@ "prepare": "aegir build --no-bundle", "test": "aegir test", "build": "aegir build --esm-tests", + "postbuild": "npx json -I -f dist/package.json -e this.types='\"src/index.d.ts\"'", "clean": "rimraf ./dist", "lint": "aegir ts -p check && aegir lint", "coverage": "nyc -s npm run test -t node && nyc report --reporter=html", diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index 0c41e6bf..aef546d8 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -12,6 +12,7 @@ "prepare": "aegir build --no-bundle", "test": "aegir test", "build": "aegir build --esm-tests", + "postbuild": "npx json -I -f dist/package.json -e this.types='\"src/index.d.ts\"'", "clean": "rimraf ./dist", "lint": "aegir ts -p check && aegir lint", "coverage": "nyc -s npm run test -t node && nyc report --reporter=html", diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index 1d27abff..94a80ae6 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -15,6 +15,7 @@ "prepare:types": "aegir build --no-bundle", "test": "aegir test", "build": "aegir build --esm-tests", + "postbuild": "npx json -I -f dist/package.json -e this.types='\"src/index.d.ts\"'", "clean": "rimraf ./dist", "lint": "aegir ts -p check && aegir lint", "coverage": "nyc -s aegir test -t node && nyc report --reporter=html",