From e902186cc557d876093a6ca60b3b8f2567c74b05 Mon Sep 17 00:00:00 2001 From: sarayourfriend Date: Thu, 25 Mar 2021 11:10:26 -0700 Subject: [PATCH] Add types directive to packages that need it (#30252) * Add types directive to packages that need it * Update date CHANGELOG for types * Fix changelogs --- packages/api-fetch/CHANGELOG.md | 2 ++ packages/api-fetch/package.json | 1 + packages/date/CHANGELOG.md | 4 ++++ packages/date/package.json | 1 + 4 files changed, 8 insertions(+) diff --git a/packages/api-fetch/CHANGELOG.md b/packages/api-fetch/CHANGELOG.md index 9d9dc4330caf5..b69ef5840fe9e 100644 --- a/packages/api-fetch/CHANGELOG.md +++ b/packages/api-fetch/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +### New Feature + - Publish TypeScript definitions. ## 3.22.0 (2021-03-17) diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index d7927703412ba..d19dedf66ab44 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -22,6 +22,7 @@ "main": "build/index.js", "module": "build-module/index.js", "react-native": "src/index", + "types": "build-types", "dependencies": { "@babel/runtime": "^7.13.10", "@wordpress/i18n": "file:../i18n", diff --git a/packages/date/CHANGELOG.md b/packages/date/CHANGELOG.md index 1d86fddbc7590..831375aefd6a1 100644 --- a/packages/date/CHANGELOG.md +++ b/packages/date/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### New Feature + +- Bundle type definitions. + ## 3.14.0 (2021-03-17) ## 3.0.1 (2018-12-12) diff --git a/packages/date/package.json b/packages/date/package.json index 417cd7584741d..94df3dbcfbd62 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -21,6 +21,7 @@ "main": "build/index.js", "module": "build-module/index.js", "react-native": "src/index", + "types": "build-types", "dependencies": { "@babel/runtime": "^7.13.10", "moment": "^2.22.1",