From 8c4ec6c58935333aabe4b92ca86504c1491e72d9 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sun, 17 Sep 2023 13:55:56 +0800 Subject: [PATCH] fix: use types instead of typings (#469) --- README.md | 4 ++-- package.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7737c5b6..3ed58e43 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ Fork [undici benchmarks script](https://github.com/fengmk2/undici/blob/urllib-be ## Contributors -|[
fengmk2](https://github.com/fengmk2)
|[
dead-horse](https://github.com/dead-horse)
|[
xingrz](https://github.com/xingrz)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
|[
popomore](https://github.com/popomore)
|[
JacksonTian](https://github.com/JacksonTian)
| +|[
fengmk2](https://github.com/fengmk2)
|[
dead-horse](https://github.com/dead-horse)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
|[
xingrz](https://github.com/xingrz)
|[
popomore](https://github.com/popomore)
|[
JacksonTian](https://github.com/JacksonTian)
| | :---: | :---: | :---: | :---: | :---: | :---: | |[
ibigbug](https://github.com/ibigbug)
|[
greenkeeperio-bot](https://github.com/greenkeeperio-bot)
|[
atian25](https://github.com/atian25)
|[
killagu](https://github.com/killagu)
|[
paambaati](https://github.com/paambaati)
|[
denghongcai](https://github.com/denghongcai)
| |[
gemwuu](https://github.com/gemwuu)
|[
XadillaX](https://github.com/XadillaX)
|[
alsotang](https://github.com/alsotang)
|[
leoner](https://github.com/leoner)
|[
hyj1991](https://github.com/hyj1991)
|[
isayme](https://github.com/isayme)
| @@ -297,7 +297,7 @@ Fork [undici benchmarks script](https://github.com/fengmk2/undici/blob/urllib-be |[
Amunu](https://github.com/Amunu)
|[
azure-pipelines[bot]](https://github.com/apps/azure-pipelines)
|[
capsice](https://github.com/capsice)
|[
changzhiwin](https://github.com/changzhiwin)
|[
yuzhigang33](https://github.com/yuzhigang33)
|[
elrrrrrrr](https://github.com/elrrrrrrr)
| [
fishbar](https://github.com/fishbar)
|[
gxcsoccer](https://github.com/gxcsoccer)
|[
mars-coder](https://github.com/mars-coder)
|[
rockdai](https://github.com/rockdai)
|[
dickeylth](https://github.com/dickeylth)
|[
aladdin-add](https://github.com/aladdin-add)
-This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon Apr 24 2023 17:42:08 GMT+0800`. +This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Sep 16 2023 01:02:26 GMT+0800`. diff --git a/package.json b/package.json index 8d0ccf68..2a81e76a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ }, "./package.json": "./package.json" }, - "typings": "./dist/commonjs/index.d.ts", "files": [ "dist", "src" @@ -50,7 +49,7 @@ "scripts": { "lint": "eslint src test --ext .ts --cache", "prebuild": "npm run clean", - "build": "tsc --version && tshy && npm run build:version", + "build": "tsc --version && tshy && tshy-after && npm run build:version", "postbuild": "rm -rf *.tsbuildinfo", "build:version": "node ./scripts/replace_urllib_version.js", "build:cjs:test": "cd test/cjs && rm -rf node_modules && npm link ../.. && node index.js", @@ -102,11 +101,13 @@ "selfsigned": "^2.0.1", "tar-stream": "^2.2.0", "tshy": "^1.0.0-3", + "tshy-after": "^1.0.0", "typescript": "^5.0.4", "vitest": "^0.32.0" }, "engines": { "node": ">= 14.19.3" }, - "license": "MIT" + "license": "MIT", + "types": "./dist/commonjs/index.d.ts" }