@rushstack/heft
Advanced tools
Comparing version 0.36.1 to 0.36.2
# Change Log - @rushstack/heft | ||
This log was last generated on Thu, 12 Aug 2021 01:28:38 GMT and should not be manually modified. | ||
This log was last generated on Thu, 12 Aug 2021 18:11:18 GMT and should not be manually modified. | ||
## 0.36.2 | ||
Thu, 12 Aug 2021 18:11:18 GMT | ||
### Patches | ||
- Fix an issue with the TypeScript compilation when Heft is invoked in a terminal with incorrect casing in the CWD. | ||
## 0.36.1 | ||
@@ -6,0 +13,0 @@ Thu, 12 Aug 2021 01:28:38 GMT |
@@ -1,3 +0,3 @@ | ||
import { SubprocessRunnerBase } from '../../utilities/subprocess/SubprocessRunnerBase'; | ||
export interface IApiExtractorRunnerConfiguration { | ||
import { ISubprocessRunnerBaseConfiguration, SubprocessRunnerBase } from '../../utilities/subprocess/SubprocessRunnerBase'; | ||
export interface IApiExtractorRunnerConfiguration extends ISubprocessRunnerBaseConfiguration { | ||
/** | ||
@@ -22,8 +22,2 @@ * The path to the Extractor's config file ("api-extractor.json") | ||
/** | ||
* The folder of the project being built | ||
* | ||
* For example, /home/username/code/repo/project | ||
*/ | ||
buildFolder: string; | ||
/** | ||
* If set to true, run API Extractor in production mode | ||
@@ -30,0 +24,0 @@ */ |
import { ITerminalProvider } from '@rushstack/node-core-library'; | ||
import { ExtendedTypeScript } from './internalTypings/TypeScriptInternals'; | ||
import { SubprocessRunnerBase } from '../../utilities/subprocess/SubprocessRunnerBase'; | ||
import { ISubprocessRunnerBaseConfiguration, SubprocessRunnerBase } from '../../utilities/subprocess/SubprocessRunnerBase'; | ||
import { PerformanceMeasurer, PerformanceMeasurerAsync } from '../../utilities/Performance'; | ||
import { HeftSession } from '../../pluginFramework/HeftSession'; | ||
import { ISharedTypeScriptConfiguration } from './TypeScriptPlugin'; | ||
export interface ITypeScriptBuilderConfiguration extends ISharedTypeScriptConfiguration { | ||
buildFolder: string; | ||
export interface ITypeScriptBuilderConfiguration extends ISharedTypeScriptConfiguration, ISubprocessRunnerBaseConfiguration { | ||
/** | ||
@@ -10,0 +9,0 @@ * The folder to write build metadata. |
@@ -13,2 +13,10 @@ import { ITerminalProvider, Terminal } from '@rushstack/node-core-library'; | ||
export declare const SUBPROCESS_RUNNER_INNER_INVOKE: unique symbol; | ||
export interface ISubprocessRunnerBaseConfiguration { | ||
/** | ||
* The folder of the project being built | ||
* | ||
* For example, /home/username/code/repo/project | ||
*/ | ||
buildFolder: string; | ||
} | ||
/** | ||
@@ -21,3 +29,3 @@ * This base class allows an computationally expensive task to be run in a separate NodeJS | ||
*/ | ||
export declare abstract class SubprocessRunnerBase<TSubprocessConfiguration> { | ||
export declare abstract class SubprocessRunnerBase<TSubprocessConfiguration extends ISubprocessRunnerBaseConfiguration> { | ||
static [SUBPROCESS_RUNNER_CLASS_LABEL]: boolean; | ||
@@ -42,3 +50,3 @@ private static _subprocessInspectorPort; | ||
constructor(parentGlobalTerminalProvider: ITerminalProvider, configuration: TSubprocessConfiguration, heftSession: HeftSession); | ||
static initializeSubprocess<TSubprocessConfiguration>(thisType: new (parentGlobalTerminalProvider: ITerminalProvider, configuration: TSubprocessConfiguration, heftSession: HeftSession) => SubprocessRunnerBase<TSubprocessConfiguration>, innerConfiguration: ISubprocessInnerConfiguration, configuration: TSubprocessConfiguration): SubprocessRunnerBase<TSubprocessConfiguration>; | ||
static initializeSubprocess<TSubprocessConfiguration extends ISubprocessRunnerBaseConfiguration>(thisType: new (parentGlobalTerminalProvider: ITerminalProvider, configuration: TSubprocessConfiguration, heftSession: HeftSession) => SubprocessRunnerBase<TSubprocessConfiguration>, innerConfiguration: ISubprocessInnerConfiguration, configuration: TSubprocessConfiguration): SubprocessRunnerBase<TSubprocessConfiguration>; | ||
invokeAsSubprocessAsync(): Promise<void>; | ||
@@ -45,0 +53,0 @@ abstract invokeAsync(): Promise<void>; |
@@ -85,3 +85,3 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
const subprocess = childProcess.fork(path.resolve(__dirname, 'startSubprocess'), [this.filename, JSON.stringify(this._innerConfiguration), JSON.stringify(this._configuration)], Object.assign({ execArgv: this._processNodeArgsForSubprocess(this._globalTerminal, process.execArgv) }, SubprocessTerminator_1.SubprocessTerminator.RECOMMENDED_OPTIONS)); | ||
const subprocess = childProcess.fork(path.resolve(__dirname, 'startSubprocess'), [this.filename, JSON.stringify(this._innerConfiguration), JSON.stringify(this._configuration)], Object.assign({ execArgv: this._processNodeArgsForSubprocess(this._globalTerminal, process.execArgv), cwd: this._configuration.buildFolder }, SubprocessTerminator_1.SubprocessTerminator.RECOMMENDED_OPTIONS)); | ||
SubprocessTerminator_1.SubprocessTerminator.killProcessTreeOnExit(subprocess, SubprocessTerminator_1.SubprocessTerminator.RECOMMENDED_OPTIONS); | ||
@@ -88,0 +88,0 @@ this._terminalProviderManager.registerSubprocess(subprocess); |
{ | ||
"name": "@rushstack/heft", | ||
"version": "0.36.1", | ||
"version": "0.36.2", | ||
"description": "Build all your JavaScript projects the same way: A way that works.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1118977
11642