From 30b24a5b59132ef8e769ce492a68fdee26cb4902 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 17 Sep 2023 12:59:28 +0800 Subject: [PATCH] fix: use types instead of typings --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 95b7a46..1780b05 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "stream-wormhole", "version": "2.0.0", "description": "Pipe ReadStream to a wormhole", - "typings": "./dist/esm/index.d.ts", "files": [ "dist", "src" @@ -32,7 +31,7 @@ "lint": "eslint src test", "ci": "npm run lint && egg-bin cov", "contributor": "git-contributor", - "prepublishOnly": "tshy" + "prepublishOnly": "tshy && tshy-after" }, "dependencies": {}, "devDependencies": { @@ -44,6 +43,7 @@ "eslint-config-egg": "^12.3.0", "git-contributor": "^2.1.5", "tshy": "^1.0.0", + "tshy-after": "^1.0.0", "typescript": "^5.2.2" }, "homepage": "https://github.com/node-modules/stream-wormhole", @@ -66,5 +66,6 @@ "version": "16, 18, 20" }, "author": "fengmk2", - "license": "MIT" + "license": "MIT", + "types": "./dist/commonjs/index.d.ts" }