diff --git a/heft-plugins/heft-typescript-plugin/src/TranspilerWorker.ts b/heft-plugins/heft-typescript-plugin/src/TranspilerWorker.ts index a0f88213eb9..19984ec334a 100644 --- a/heft-plugins/heft-typescript-plugin/src/TranspilerWorker.ts +++ b/heft-plugins/heft-typescript-plugin/src/TranspilerWorker.ts @@ -1,6 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. import { parentPort, workerData } from 'node:worker_threads'; -import * as TTypescript from 'typescript'; +import type * as TTypescript from 'typescript'; import type { ITranspilationErrorMessage, ITranspilationRequestMessage, diff --git a/heft-plugins/heft-typescript-plugin/src/TypeScriptBuilder.ts b/heft-plugins/heft-typescript-plugin/src/TypeScriptBuilder.ts index 6c9fa6ce566..7dabb6ed718 100644 --- a/heft-plugins/heft-typescript-plugin/src/TypeScriptBuilder.ts +++ b/heft-plugins/heft-typescript-plugin/src/TypeScriptBuilder.ts @@ -3,8 +3,10 @@ import * as crypto from 'crypto'; import * as path from 'path'; +import { Worker } from 'worker_threads'; + import * as semver from 'semver'; -import * as TTypescript from 'typescript'; +import type * as TTypescript from 'typescript'; import { type ITerminal, JsonFile, @@ -26,7 +28,6 @@ import type { ITypescriptWorkerData } from './types'; import { configureProgramForMultiEmit } from './configureProgramForMultiEmit'; -import { Worker } from 'worker_threads'; export interface ITypeScriptBuilderConfiguration extends ITypeScriptConfigurationJson { /** diff --git a/heft-plugins/heft-typescript-plugin/src/configureProgramForMultiEmit.ts b/heft-plugins/heft-typescript-plugin/src/configureProgramForMultiEmit.ts index 65b2ebe45f8..6cfbd7cfe6b 100644 --- a/heft-plugins/heft-typescript-plugin/src/configureProgramForMultiEmit.ts +++ b/heft-plugins/heft-typescript-plugin/src/configureProgramForMultiEmit.ts @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. import type * as TTypescript from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; diff --git a/heft-plugins/heft-typescript-plugin/src/types.ts b/heft-plugins/heft-typescript-plugin/src/types.ts index d58f3b4a25c..aea0ee72955 100644 --- a/heft-plugins/heft-typescript-plugin/src/types.ts +++ b/heft-plugins/heft-typescript-plugin/src/types.ts @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. import type * as TTypescript from 'typescript'; export interface ITypescriptWorkerData {