From c6d9c09a1199c02e7b8be859bc5f71849b3ac85a Mon Sep 17 00:00:00 2001 From: achingbrain Date: Wed, 8 Sep 2021 13:08:49 +0100 Subject: [PATCH] chore: update config --- packages/interface-blockstore-tests/package.json | 1 + packages/interface-blockstore/package.json | 5 +++-- packages/interface-blockstore/tsconfig.json | 5 +---- packages/interface-datastore-tests/package.json | 2 ++ packages/interface-store/package.json | 2 +- packages/interface-store/tsconfig.json | 6 +----- 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/interface-blockstore-tests/package.json b/packages/interface-blockstore-tests/package.json index 2cab30ca..dccb02b2 100644 --- a/packages/interface-blockstore-tests/package.json +++ b/packages/interface-blockstore-tests/package.json @@ -4,6 +4,7 @@ "description": "Compliance tests for the blockstore interface", "leadMaintainer": "Alex Potsides ", "main": "src/index.js", + "type": "module", "types": "types/src/index.d.ts", "files": [ "src", diff --git a/packages/interface-blockstore/package.json b/packages/interface-blockstore/package.json index f269de2d..8eaf4919 100644 --- a/packages/interface-blockstore/package.json +++ b/packages/interface-blockstore/package.json @@ -2,10 +2,11 @@ "name": "interface-blockstore", "version": "2.0.0", "description": "An interface for storing and retrieving blocks", - "types": "types/src/index.d.ts", + "types": "dist/src/index.d.ts", "scripts": { "build": "aegir build", - "lint": "aegir ts -p check && aegir lint" + "lint": "aegir ts -p check && aegir lint", + "preleaseOnly": "npx json -I -f dist/package.json -e this.types='\"src/index.d.ts\"'" }, "license": "(Apache-2.0 OR MIT)", "homepage": "https://github.com/ipfs/js-ipfs-interfaces/tree/master/packages/interface-blockstore#readme", diff --git a/packages/interface-blockstore/tsconfig.json b/packages/interface-blockstore/tsconfig.json index 5fd2bf1b..8c858208 100644 --- a/packages/interface-blockstore/tsconfig.json +++ b/packages/interface-blockstore/tsconfig.json @@ -1,14 +1,11 @@ { "extends": "aegir/src/config/tsconfig.aegir.json", "compilerOptions": { - "outDir": "types" + "outDir": "dist" }, "include": [ "src" ], - "exclude": [ - "dist" - ], "references": [ { "path": "../interface-store" diff --git a/packages/interface-datastore-tests/package.json b/packages/interface-datastore-tests/package.json index c65ef248..03ccc9e0 100644 --- a/packages/interface-datastore-tests/package.json +++ b/packages/interface-datastore-tests/package.json @@ -3,6 +3,8 @@ "version": "2.0.0", "description": "Compliance tests for the datastore interface", "leadMaintainer": "Alex Potsides ", + "main": "src/index.js", + "type": "module", "types": "types/src/index.d.ts", "files": [ "src", diff --git a/packages/interface-store/package.json b/packages/interface-store/package.json index 2c075ed8..d92cf7dd 100644 --- a/packages/interface-store/package.json +++ b/packages/interface-store/package.json @@ -3,7 +3,7 @@ "version": "2.0.0", "description": "A generic interface for storing and retrieving data", "main": "src/index.js", - "types": "types/src/index.d.ts", + "types": "dist/src/index.d.ts", "scripts": { "build": "aegir build", "lint": "aegir ts -p check && aegir lint" diff --git a/packages/interface-store/tsconfig.json b/packages/interface-store/tsconfig.json index 0affc059..5fe8ea40 100644 --- a/packages/interface-store/tsconfig.json +++ b/packages/interface-store/tsconfig.json @@ -1,13 +1,9 @@ { "extends": "aegir/src/config/tsconfig.aegir.json", "compilerOptions": { - "outDir": "types" + "outDir": "dist" }, "include": [ "src" - ], - "exclude": [ - "dist", - "node_modules" ] }