From a5ae2f54ea2bbbb73267cb7583c403acb6cab941 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 8 Mar 2019 17:14:52 +0100 Subject: [PATCH] chore: copy d.ts files during build (#8086) * chore: copy d.ts files during build * changelog * Revert "chore: copy d.ts files during build" This reverts commit 5d2c2e74d343f45e7c5524d866b7e2342017e5f7. * move d.ts files to root of module --- CHANGELOG.md | 2 ++ packages/jest-reporters/{src => }/istanbul-api.d.ts | 0 packages/jest-reporters/{src => }/istanbul-lib-coverage.d.ts | 0 packages/jest-reporters/{src => }/node-notifier.d.ts | 0 packages/jest-reporters/src/coverage_reporter.ts | 4 ++-- packages/jest-reporters/src/generateEmptyCoverage.ts | 2 +- packages/jest-reporters/src/notify_reporter.ts | 2 +- packages/jest-serializer/src/index.ts | 2 ++ packages/jest-serializer/{src/global.d.ts => v8.d.ts} | 0 9 files changed, 8 insertions(+), 4 deletions(-) rename packages/jest-reporters/{src => }/istanbul-api.d.ts (100%) rename packages/jest-reporters/{src => }/istanbul-lib-coverage.d.ts (100%) rename packages/jest-reporters/{src => }/node-notifier.d.ts (100%) rename packages/jest-serializer/{src/global.d.ts => v8.d.ts} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9983aabc1980..9917981b308c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ ### Chore & Maintenance +- `[*]` Make sure to include `d.ts` files in the tarball when building ([#8086](https://github.com/facebook/jest/pull/8086)) + ### Performance ## 24.3.1 diff --git a/packages/jest-reporters/src/istanbul-api.d.ts b/packages/jest-reporters/istanbul-api.d.ts similarity index 100% rename from packages/jest-reporters/src/istanbul-api.d.ts rename to packages/jest-reporters/istanbul-api.d.ts diff --git a/packages/jest-reporters/src/istanbul-lib-coverage.d.ts b/packages/jest-reporters/istanbul-lib-coverage.d.ts similarity index 100% rename from packages/jest-reporters/src/istanbul-lib-coverage.d.ts rename to packages/jest-reporters/istanbul-lib-coverage.d.ts diff --git a/packages/jest-reporters/src/node-notifier.d.ts b/packages/jest-reporters/node-notifier.d.ts similarity index 100% rename from packages/jest-reporters/src/node-notifier.d.ts rename to packages/jest-reporters/node-notifier.d.ts diff --git a/packages/jest-reporters/src/coverage_reporter.ts b/packages/jest-reporters/src/coverage_reporter.ts index 698abc17e4ff..2799cfd04a31 100644 --- a/packages/jest-reporters/src/coverage_reporter.ts +++ b/packages/jest-reporters/src/coverage_reporter.ts @@ -6,8 +6,8 @@ */ // TODO: Remove this -/// -/// +/// +/// import path from 'path'; import {Config} from '@jest/types'; diff --git a/packages/jest-reporters/src/generateEmptyCoverage.ts b/packages/jest-reporters/src/generateEmptyCoverage.ts index 6ea3567566d9..59e87304dfe3 100644 --- a/packages/jest-reporters/src/generateEmptyCoverage.ts +++ b/packages/jest-reporters/src/generateEmptyCoverage.ts @@ -6,7 +6,7 @@ */ // TODO: Remove this -/// +/// import {Config} from '@jest/types'; import {readInitialCoverage} from 'istanbul-lib-instrument'; diff --git a/packages/jest-reporters/src/notify_reporter.ts b/packages/jest-reporters/src/notify_reporter.ts index 460530a6447d..9022eed40870 100644 --- a/packages/jest-reporters/src/notify_reporter.ts +++ b/packages/jest-reporters/src/notify_reporter.ts @@ -6,7 +6,7 @@ */ // TODO: Remove this -/// +/// import path from 'path'; import util from 'util'; diff --git a/packages/jest-serializer/src/index.ts b/packages/jest-serializer/src/index.ts index c9b3525ea613..bf02f9325227 100644 --- a/packages/jest-serializer/src/index.ts +++ b/packages/jest-serializer/src/index.ts @@ -4,6 +4,8 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +// TODO: Remove this +/// import fs from 'fs'; import v8 from 'v8'; diff --git a/packages/jest-serializer/src/global.d.ts b/packages/jest-serializer/v8.d.ts similarity index 100% rename from packages/jest-serializer/src/global.d.ts rename to packages/jest-serializer/v8.d.ts