diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e657642..4f084f89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## v2.0.3 (not released yet) +- Fix bundling issue where TypeScript types would not get picked up correctly in old + TypeScript versions. Thanks, @robinchow! + - ![](./docs/assets/tiny-ts-logo.png) Fix TypeScript types for `Result` type to allow implicit-undefineds. diff --git a/package.json b/package.json index 7d01ecf0..83295ee4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "decoders", - "version": "2.0.2", + "version": "2.0.3", "description": "Elegant and battle-tested validation library for type-safe input data (for TypeScript and Flow)", "license": "MIT", "repository": { @@ -14,6 +14,7 @@ }, "main": "./dist/index.js", "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", "scripts": { "actually-prepublish": "echo \"\\n\\nPlease run \\`bin/publish.sh \\` instead.\\n\\n\" && exit 2", "build": "./bin/build.sh", @@ -128,7 +129,6 @@ "itertools": "^1.7.1", "jest": "^28.1.1", "prettier": "^2.7.1", - "prettier-plugin-package": "^1.3.0", "rimraf": "^3.0.2", "typescript": "^4.7.4" }, diff --git a/yarn.lock b/yarn.lock index f6d4e211..1fd6fbf3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4275,11 +4275,6 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier-plugin-package@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/prettier-plugin-package/-/prettier-plugin-package-1.3.0.tgz#b42d12eda16b67c9fcf95054d799fe3f542aef54" - integrity sha512-KPNHR/Jm2zTevBp1SnjzMnooO1BOQW2bixVbOp8flOJoW+dxdDwEncObfsKZdkjwrv6AIH4oWqm5EO/etDmK9Q== - prettier@^1.19.1: version "1.19.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"