fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10
@@ -1,4 +0,3 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions'; | ||
import { Pool } from './utils/async/pool'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions'; | ||
declare class ForkTsCheckerWebpackPlugin { | ||
@@ -12,8 +11,8 @@ /** | ||
*/ | ||
static readonly issuesPool: Pool; | ||
static readonly dependenciesPool: Pool; | ||
static readonly issuesPool: import("./utils/async/pool").Pool; | ||
static readonly dependenciesPool: import("./utils/async/pool").Pool; | ||
/** | ||
* @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead | ||
*/ | ||
static get pool(): Pool; | ||
static readonly pool: import("./utils/async/pool").Pool; | ||
private readonly options; | ||
@@ -20,0 +19,0 @@ constructor(options?: ForkTsCheckerWebpackPluginOptions); |
@@ -7,18 +7,19 @@ "use strict"; | ||
exports.ForkTsCheckerWebpackPlugin = void 0; | ||
const schema_utils_1 = require("schema-utils"); | ||
const cosmiconfig_1 = require("cosmiconfig"); | ||
const deepmerge_1 = __importDefault(require("deepmerge")); | ||
const schema_utils_1 = require("schema-utils"); | ||
// type only dependency | ||
// eslint-disable-next-line node/no-extraneous-import | ||
const ForkTsCheckerWebpackPluginConfiguration_1 = require("./ForkTsCheckerWebpackPluginConfiguration"); | ||
const ForkTsCheckerWebpackPluginOptions_json_1 = __importDefault(require("./ForkTsCheckerWebpackPluginOptions.json")); | ||
const ForkTsCheckerWebpackPluginConfiguration_1 = require("./ForkTsCheckerWebpackPluginConfiguration"); | ||
const ForkTsCheckerWebpackPluginState_1 = require("./ForkTsCheckerWebpackPluginState"); | ||
const TypeScriptSupport_1 = require("./typescript-reporter/TypeScriptSupport"); | ||
const TypeScriptReporterRpcClient_1 = require("./typescript-reporter/reporter/TypeScriptReporterRpcClient"); | ||
const pluginHooks_1 = require("./hooks/pluginHooks"); | ||
const pluginPools_1 = require("./hooks/pluginPools"); | ||
const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies"); | ||
const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching"); | ||
const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage"); | ||
const tapStartToConnectAndRunReporter_1 = require("./hooks/tapStartToConnectAndRunReporter"); | ||
const tapStopToDisconnectReporter_1 = require("./hooks/tapStopToDisconnectReporter"); | ||
const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies"); | ||
const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage"); | ||
const pluginHooks_1 = require("./hooks/pluginHooks"); | ||
const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching"); | ||
const pool_1 = require("./utils/async/pool"); | ||
const os_1 = __importDefault(require("os")); | ||
const TypeScriptReporterRpcClient_1 = require("./typescript-reporter/reporter/TypeScriptReporterRpcClient"); | ||
const TypeScriptSupport_1 = require("./typescript-reporter/TypeScriptSupport"); | ||
class ForkTsCheckerWebpackPlugin { | ||
@@ -35,9 +36,2 @@ constructor(options = {}) { | ||
} | ||
/** | ||
* @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead | ||
*/ | ||
static get pool() { | ||
// for backward compatibility | ||
return ForkTsCheckerWebpackPlugin.issuesPool; | ||
} | ||
static getCompilerHooks(compiler) { | ||
@@ -63,7 +57,11 @@ return pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); | ||
*/ | ||
ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.9'; // will be replaced by the @semantic-release/exec | ||
ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.10'; // will be replaced by the @semantic-release/exec | ||
/** | ||
* Default pools for the plugin concurrency limit | ||
*/ | ||
ForkTsCheckerWebpackPlugin.issuesPool = pool_1.createPool(Math.max(1, os_1.default.cpus().length)); | ||
ForkTsCheckerWebpackPlugin.dependenciesPool = pool_1.createPool(Math.max(1, os_1.default.cpus().length)); | ||
ForkTsCheckerWebpackPlugin.issuesPool = pluginPools_1.issuesPool; | ||
ForkTsCheckerWebpackPlugin.dependenciesPool = pluginPools_1.dependenciesPool; | ||
/** | ||
* @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead | ||
*/ | ||
ForkTsCheckerWebpackPlugin.pool = pluginPools_1.issuesPool; |
@@ -1,7 +0,7 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions'; | ||
import { IssueConfiguration } from './issue/IssueConfiguration'; | ||
import { FormatterConfiguration } from './formatter'; | ||
import { TypeScriptReporterConfiguration } from './typescript-reporter/TypeScriptReporterConfiguration'; | ||
import { LoggerConfiguration } from './logger/LoggerConfiguration'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions'; | ||
import type { FormatterConfiguration } from './formatter'; | ||
import type { IssueConfiguration } from './issue/IssueConfiguration'; | ||
import type { LoggerConfiguration } from './logger/LoggerConfiguration'; | ||
import type { TypeScriptReporterConfiguration } from './typescript-reporter/TypeScriptReporterConfiguration'; | ||
interface ForkTsCheckerWebpackPluginConfiguration { | ||
@@ -8,0 +8,0 @@ async: boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createForkTsCheckerWebpackPluginConfiguration = void 0; | ||
const formatter_1 = require("./formatter"); | ||
const IssueConfiguration_1 = require("./issue/IssueConfiguration"); | ||
const formatter_1 = require("./formatter"); | ||
const LoggerConfiguration_1 = require("./logger/LoggerConfiguration"); | ||
const TypeScriptReporterConfiguration_1 = require("./typescript-reporter/TypeScriptReporterConfiguration"); | ||
const LoggerConfiguration_1 = require("./logger/LoggerConfiguration"); | ||
function createForkTsCheckerWebpackPluginConfiguration(compiler, options = {}) { | ||
@@ -9,0 +9,0 @@ return { |
@@ -1,5 +0,5 @@ | ||
import { TypeScriptReporterOptions } from './typescript-reporter/TypeScriptReporterOptions'; | ||
import { IssueOptions } from './issue/IssueOptions'; | ||
import { FormatterOptions } from './formatter'; | ||
import LoggerOptions from './logger/LoggerOptions'; | ||
import type { FormatterOptions } from './formatter'; | ||
import type { IssueOptions } from './issue/IssueOptions'; | ||
import type LoggerOptions from './logger/LoggerOptions'; | ||
import type { TypeScriptReporterOptions } from './typescript-reporter/TypeScriptReporterOptions'; | ||
interface ForkTsCheckerWebpackPluginOptions { | ||
@@ -6,0 +6,0 @@ async?: boolean; |
@@ -1,4 +0,4 @@ | ||
import { FullTap } from 'tapable'; | ||
import { FilesMatch, Report } from './reporter'; | ||
import { Issue } from './issue'; | ||
import type { FullTap } from 'tapable'; | ||
import type { Issue } from './issue'; | ||
import type { FilesMatch, Report } from './reporter'; | ||
interface ForkTsCheckerWebpackPluginState { | ||
@@ -5,0 +5,0 @@ issuesReportPromise: Promise<Report | undefined>; |
@@ -1,3 +0,3 @@ | ||
import { Formatter } from './Formatter'; | ||
import type { Formatter } from './Formatter'; | ||
declare function createBasicFormatter(): Formatter; | ||
export { createBasicFormatter }; |
@@ -1,4 +0,4 @@ | ||
import { Formatter } from './Formatter'; | ||
import type { Formatter } from './Formatter'; | ||
import { BabelCodeFrameOptions } from './types/babel__code-frame'; | ||
declare function createCodeFrameFormatter(options?: BabelCodeFrameOptions): Formatter; | ||
export { createCodeFrameFormatter, BabelCodeFrameOptions }; |
@@ -8,4 +8,4 @@ "use strict"; | ||
const os_1 = __importDefault(require("os")); | ||
const code_frame_1 = require("@babel/code-frame"); | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const code_frame_1 = require("@babel/code-frame"); | ||
const BasicFormatter_1 = require("./BasicFormatter"); | ||
@@ -12,0 +12,0 @@ function createCodeFrameFormatter(options) { |
@@ -1,3 +0,3 @@ | ||
import { Issue } from '../issue'; | ||
import type { Issue } from '../issue'; | ||
declare type Formatter = (issue: Issue) => string; | ||
export { Formatter }; |
@@ -1,5 +0,5 @@ | ||
import { FormatterOptions } from './FormatterOptions'; | ||
import { Formatter } from './Formatter'; | ||
import type { Formatter } from './Formatter'; | ||
import type { FormatterOptions } from './FormatterOptions'; | ||
declare type FormatterConfiguration = Formatter; | ||
declare function createFormatterConfiguration(options: FormatterOptions | undefined): FormatterConfiguration; | ||
export { FormatterConfiguration, createFormatterConfiguration }; |
@@ -1,3 +0,3 @@ | ||
import { Formatter } from './Formatter'; | ||
import { BabelCodeFrameOptions } from './types/babel__code-frame'; | ||
import type { Formatter } from './Formatter'; | ||
import type { BabelCodeFrameOptions } from './types/babel__code-frame'; | ||
declare type FormatterType = 'basic' | 'codeframe'; | ||
@@ -4,0 +4,0 @@ declare type BasicFormatterOptions = { |
@@ -1,3 +0,3 @@ | ||
import { Formatter } from './Formatter'; | ||
import type { Formatter } from './Formatter'; | ||
declare function createWebpackFormatter(formatter: Formatter): Formatter; | ||
export { createWebpackFormatter }; |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
declare function interceptDoneToGetWebpackDevServerTap(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void; | ||
export { interceptDoneToGetWebpackDevServerTap }; |
@@ -1,5 +0,5 @@ | ||
import * as webpack from 'webpack'; | ||
import { SyncHook, SyncWaterfallHook, AsyncSeriesWaterfallHook } from 'tapable'; | ||
import { FilesChange } from '../reporter'; | ||
import { Issue } from '../issue'; | ||
import type * as webpack from 'webpack'; | ||
import type { Issue } from '../issue'; | ||
import type { FilesChange } from '../reporter'; | ||
declare function createForkTsCheckerWebpackPluginHooks(): { | ||
@@ -6,0 +6,0 @@ start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>; |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
declare function tapAfterCompileToAddDependencies(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapAfterCompileToAddDependencies }; |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
declare function tapAfterCompileToGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapAfterCompileToGetIssues }; |
@@ -13,4 +13,4 @@ "use strict"; | ||
exports.tapAfterCompileToGetIssues = void 0; | ||
const IssueWebpackError_1 = require("../issue/IssueWebpackError"); | ||
const pluginHooks_1 = require("./pluginHooks"); | ||
const IssueWebpackError_1 = require("../issue/IssueWebpackError"); | ||
function tapAfterCompileToGetIssues(compiler, configuration, state) { | ||
@@ -17,0 +17,0 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); |
@@ -1,4 +0,4 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
declare function tapAfterEnvironmentToPatchWatching(compiler: webpack.Compiler, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapAfterEnvironmentToPatchWatching }; |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
declare function tapDoneToAsyncGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapDoneToAsyncGetIssues }; |
@@ -17,3 +17,2 @@ "use strict"; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const pluginHooks_1 = require("./pluginHooks"); | ||
const WebpackFormatter_1 = require("../formatter/WebpackFormatter"); | ||
@@ -23,2 +22,3 @@ const IssueWebpackError_1 = require("../issue/IssueWebpackError"); | ||
const wait_1 = __importDefault(require("../utils/async/wait")); | ||
const pluginHooks_1 = require("./pluginHooks"); | ||
function tapDoneToAsyncGetIssues(compiler, configuration, state) { | ||
@@ -25,0 +25,0 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); |
@@ -1,4 +0,4 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
declare function tapErrorToLogMessage(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration): void; | ||
export { tapErrorToLogMessage }; |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.tapErrorToLogMessage = void 0; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const RpcIpcMessagePortClosedError_1 = require("../rpc/rpc-ipc/error/RpcIpcMessagePortClosedError"); | ||
const pluginHooks_1 = require("./pluginHooks"); | ||
const RpcIpcMessagePortClosedError_1 = require("../rpc/rpc-ipc/error/RpcIpcMessagePortClosedError"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
function tapErrorToLogMessage(compiler, configuration) { | ||
@@ -12,0 +12,0 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); |
@@ -1,6 +0,6 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import { ReporterRpcClient } from '../reporter'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type { ReporterRpcClient } from '../reporter'; | ||
declare function tapStartToConnectAndRunReporter(compiler: webpack.Compiler, issuesReporter: ReporterRpcClient, dependenciesReporter: ReporterRpcClient, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapStartToConnectAndRunReporter }; |
@@ -13,9 +13,9 @@ "use strict"; | ||
exports.tapStartToConnectAndRunReporter = void 0; | ||
const OperationCanceledError_1 = require("../error/OperationCanceledError"); | ||
const reporter_1 = require("../reporter"); | ||
const interceptDoneToGetWebpackDevServerTap_1 = require("./interceptDoneToGetWebpackDevServerTap"); | ||
const pluginHooks_1 = require("./pluginHooks"); | ||
const reporter_1 = require("../reporter"); | ||
const OperationCanceledError_1 = require("../error/OperationCanceledError"); | ||
const pluginPools_1 = require("./pluginPools"); | ||
const tapAfterCompileToGetIssues_1 = require("./tapAfterCompileToGetIssues"); | ||
const tapDoneToAsyncGetIssues_1 = require("./tapDoneToAsyncGetIssues"); | ||
const tapAfterCompileToGetIssues_1 = require("./tapAfterCompileToGetIssues"); | ||
const interceptDoneToGetWebpackDevServerTap_1 = require("./interceptDoneToGetWebpackDevServerTap"); | ||
const ForkTsCheckerWebpackPlugin_1 = require("../ForkTsCheckerWebpackPlugin"); | ||
function tapStartToConnectAndRunReporter(compiler, issuesReporter, dependenciesReporter, configuration, state) { | ||
@@ -75,3 +75,3 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); | ||
change = yield hooks.start.promise(change, compilation); | ||
state.issuesReportPromise = ForkTsCheckerWebpackPlugin_1.ForkTsCheckerWebpackPlugin.issuesPool.submit((done) => | ||
state.issuesReportPromise = pluginPools_1.issuesPool.submit((done) => | ||
// eslint-disable-next-line no-async-promise-executor | ||
@@ -101,3 +101,3 @@ new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { | ||
}))); | ||
state.dependenciesReportPromise = ForkTsCheckerWebpackPlugin_1.ForkTsCheckerWebpackPlugin.dependenciesPool.submit((done) => | ||
state.dependenciesReportPromise = pluginPools_1.dependenciesPool.submit((done) => | ||
// eslint-disable-next-line no-async-promise-executor | ||
@@ -104,0 +104,0 @@ new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import { ReporterRpcClient } from '../reporter'; | ||
import type webpack from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type { ReporterRpcClient } from '../reporter'; | ||
declare function tapStopToDisconnectReporter(compiler: webpack.Compiler, issuesReporter: ReporterRpcClient, dependenciesReporter: ReporterRpcClient, state: ForkTsCheckerWebpackPluginState): void; | ||
export { tapStopToDisconnectReporter }; |
@@ -1,3 +0,3 @@ | ||
import { IssueSeverity } from './IssueSeverity'; | ||
import { IssueLocation } from './IssueLocation'; | ||
import type { IssueLocation } from './IssueLocation'; | ||
import type { IssueSeverity } from './IssueSeverity'; | ||
interface Issue { | ||
@@ -4,0 +4,0 @@ severity: IssueSeverity; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deduplicateAndSortIssues = exports.isIssue = void 0; | ||
const IssueLocation_1 = require("./IssueLocation"); | ||
const IssueSeverity_1 = require("./IssueSeverity"); | ||
const IssueLocation_1 = require("./IssueLocation"); | ||
function isIssue(value) { | ||
@@ -7,0 +7,0 @@ return (!!value && |
@@ -1,4 +0,4 @@ | ||
import webpack from 'webpack'; | ||
import { IssuePredicate } from './IssuePredicate'; | ||
import { IssueOptions } from './IssueOptions'; | ||
import type webpack from 'webpack'; | ||
import type { IssueOptions } from './IssueOptions'; | ||
import type { IssuePredicate } from './IssuePredicate'; | ||
interface IssueConfiguration { | ||
@@ -5,0 +5,0 @@ predicate: IssuePredicate; |
@@ -1,2 +0,2 @@ | ||
import { IssuePosition } from './IssuePosition'; | ||
import type { IssuePosition } from './IssuePosition'; | ||
interface IssueLocation { | ||
@@ -3,0 +3,0 @@ start: IssuePosition; |
@@ -1,5 +0,5 @@ | ||
import { Issue } from './index'; | ||
import { IssuePredicate } from './IssuePredicate'; | ||
import type { IssuePredicate } from './IssuePredicate'; | ||
import type { Issue } from './index'; | ||
declare type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>; | ||
declare function createIssuePredicateFromIssueMatch(context: string, match: IssueMatch): IssuePredicate; | ||
export { IssueMatch, createIssuePredicateFromIssueMatch }; |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.createIssuePredicateFromIssueMatch = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const minimatch_1 = __importDefault(require("minimatch")); | ||
const path_1 = __importDefault(require("path")); | ||
const forwardSlash_1 = __importDefault(require("../utils/path/forwardSlash")); | ||
@@ -11,0 +11,0 @@ function createIssuePredicateFromIssueMatch(context, match) { |
@@ -1,3 +0,3 @@ | ||
import { IssueMatch } from './IssueMatch'; | ||
import { IssuePredicate } from './IssuePredicate'; | ||
import type { IssueMatch } from './IssueMatch'; | ||
import type { IssuePredicate } from './IssuePredicate'; | ||
declare type IssuePredicateOption = IssuePredicate | IssueMatch | (IssuePredicate | IssueMatch)[]; | ||
@@ -4,0 +4,0 @@ interface IssueOptions { |
@@ -1,2 +0,2 @@ | ||
import { Issue } from './index'; | ||
import type { Issue } from './index'; | ||
declare type IssuePredicate = (issue: Issue) => boolean; | ||
@@ -3,0 +3,0 @@ declare function createTrivialIssuePredicate(result: boolean): IssuePredicate; |
import webpack from 'webpack'; | ||
import { Issue } from './Issue'; | ||
import type { Issue } from './Issue'; | ||
declare class IssueWebpackError extends webpack.WebpackError { | ||
@@ -4,0 +4,0 @@ readonly issue: Issue; |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.IssueWebpackError = void 0; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const webpack_1 = __importDefault(require("webpack")); | ||
const relativeToContext_1 = require("../utils/path/relativeToContext"); | ||
const IssueLocation_1 = require("./IssueLocation"); | ||
const relativeToContext_1 = require("../utils/path/relativeToContext"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
class IssueWebpackError extends webpack_1.default.WebpackError { | ||
@@ -13,0 +13,0 @@ constructor(message, issue) { |
@@ -1,4 +0,4 @@ | ||
import LoggerOptions from './LoggerOptions'; | ||
import Logger from './Logger'; | ||
import webpack from 'webpack'; | ||
import type webpack from 'webpack'; | ||
import type Logger from './Logger'; | ||
import type LoggerOptions from './LoggerOptions'; | ||
interface LoggerConfiguration { | ||
@@ -5,0 +5,0 @@ infrastructure: Logger; |
@@ -1,5 +0,5 @@ | ||
import webpack from 'webpack'; | ||
import Logger from './Logger'; | ||
import type webpack from 'webpack'; | ||
import type Logger from './Logger'; | ||
declare type LoggerType = 'console' | 'webpack-infrastructure' | 'silent'; | ||
declare function createLogger(type: LoggerType | Logger, compiler: webpack.Compiler): Logger; | ||
export { createLogger, LoggerType }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createLogger = void 0; | ||
const PartialLogger_1 = require("./PartialLogger"); | ||
const WebpackInfrastructureLogger_1 = require("./WebpackInfrastructureLogger"); | ||
const PartialLogger_1 = require("./PartialLogger"); | ||
function createLogger(type, compiler) { | ||
@@ -7,0 +7,0 @@ if (typeof type !== 'string') { |
@@ -1,3 +0,3 @@ | ||
import { LoggerType } from './LoggerFactory'; | ||
import Logger from './Logger'; | ||
import type Logger from './Logger'; | ||
import type { LoggerType } from './LoggerFactory'; | ||
declare type LoggerOptions = { | ||
@@ -4,0 +4,0 @@ infrastructure?: LoggerType | Logger; |
@@ -1,4 +0,4 @@ | ||
import Logger from './Logger'; | ||
import type Logger from './Logger'; | ||
declare type LoggerMethods = 'info' | 'log' | 'error'; | ||
declare function createPartialLogger(methods: LoggerMethods[], logger: Logger): Logger; | ||
export { createPartialLogger }; |
@@ -1,4 +0,4 @@ | ||
import webpack from 'webpack'; | ||
import Logger from './Logger'; | ||
import type webpack from 'webpack'; | ||
import type Logger from './Logger'; | ||
declare function createWebpackInfrastructureLogger(compiler: webpack.Compiler): Logger | undefined; | ||
export { createWebpackInfrastructureLogger }; |
@@ -1,2 +0,2 @@ | ||
import { Reporter } from './Reporter'; | ||
import type { Reporter } from './Reporter'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This higher order reporter aggregates too frequent getReport requests to avoid unnecessary computation. |
@@ -1,2 +0,2 @@ | ||
import { Compiler } from 'webpack'; | ||
import type { Compiler } from 'webpack'; | ||
interface FilesChange { | ||
@@ -3,0 +3,0 @@ changedFiles?: string[]; |
@@ -1,3 +0,3 @@ | ||
import { FilesMatch } from './FilesMatch'; | ||
import { Issue } from '../issue'; | ||
import type { Issue } from '../issue'; | ||
import type { FilesMatch } from './FilesMatch'; | ||
interface Report { | ||
@@ -4,0 +4,0 @@ getDependencies(): Promise<FilesMatch>; |
@@ -1,3 +0,3 @@ | ||
import { Reporter } from '../Reporter'; | ||
import { RpcMessageChannel } from '../../rpc'; | ||
import type { RpcMessageChannel } from '../../rpc'; | ||
import type { Reporter } from '../Reporter'; | ||
interface ReporterRpcClient extends Reporter { | ||
@@ -4,0 +4,0 @@ isConnected: () => boolean; |
@@ -17,4 +17,4 @@ "use strict"; | ||
const rpc_1 = require("../../rpc"); | ||
const flatten_1 = __importDefault(require("../../utils/array/flatten")); | ||
const ReporterRpcProcedure_1 = require("./ReporterRpcProcedure"); | ||
const flatten_1 = __importDefault(require("../../utils/array/flatten")); | ||
// suppressing because it will be removed anyway | ||
@@ -21,0 +21,0 @@ // eslint-disable-next-line @typescript-eslint/ban-types |
@@ -1,5 +0,5 @@ | ||
import { RpcProcedure } from '../../rpc'; | ||
import { FilesChange } from '../FilesChange'; | ||
import { Issue } from '../../issue'; | ||
import { FilesMatch } from '../FilesMatch'; | ||
import type { Issue } from '../../issue'; | ||
import type { RpcProcedure } from '../../rpc'; | ||
import type { FilesChange } from '../FilesChange'; | ||
import type { FilesMatch } from '../FilesMatch'; | ||
declare const configure: RpcProcedure<object, void>; | ||
@@ -6,0 +6,0 @@ declare const getReport: RpcProcedure<{ |
@@ -1,3 +0,3 @@ | ||
import { Reporter } from '../Reporter'; | ||
import { RpcMessagePort } from '../../rpc'; | ||
import type { RpcMessagePort } from '../../rpc'; | ||
import type { Reporter } from '../Reporter'; | ||
interface ReporterRpcService { | ||
@@ -4,0 +4,0 @@ isOpen: () => boolean; |
@@ -1,3 +0,3 @@ | ||
import { FilesChange } from './FilesChange'; | ||
import { Report } from './Report'; | ||
import type { FilesChange } from './FilesChange'; | ||
import type { Report } from './Report'; | ||
interface Reporter { | ||
@@ -4,0 +4,0 @@ getReport(change: FilesChange, watching: boolean): Promise<Report>; |
@@ -1,3 +0,3 @@ | ||
import { RpcMessageChannel } from '../index'; | ||
import type { RpcMessageChannel } from '../index'; | ||
declare function createRpcIpcMessageChannel(servicePath: string, memoryLimit?: number): RpcMessageChannel; | ||
export { createRpcIpcMessageChannel }; |
@@ -1,5 +0,5 @@ | ||
import { ProcessLike } from './ProcessLike'; | ||
import { RpcMessagePort } from '../index'; | ||
import type { RpcMessagePort } from '../index'; | ||
import type { ProcessLike } from './ProcessLike'; | ||
declare function createRpcIpcMessagePort(process: ProcessLike): RpcMessagePort; | ||
declare function createRpcIpcForkedProcessMessagePort(filePath: string, memoryLimit?: number, autoRecreate?: boolean): RpcMessagePort; | ||
export { createRpcIpcMessagePort, createRpcIpcForkedProcessMessagePort }; |
@@ -1,3 +0,3 @@ | ||
import { RpcProcedure, RpcProcedurePayload, RpcProcedureResult } from './RpcProcedure'; | ||
import { RpcMessagePort } from './RpcMessagePort'; | ||
import type { RpcMessagePort } from './RpcMessagePort'; | ||
import type { RpcProcedure, RpcProcedurePayload, RpcProcedureResult } from './RpcProcedure'; | ||
interface RpcClient { | ||
@@ -4,0 +4,0 @@ readonly isConnected: () => boolean; |
@@ -13,4 +13,4 @@ "use strict"; | ||
exports.createRpcClient = void 0; | ||
const RpcRemoteError_1 = require("./error/RpcRemoteError"); | ||
const RpcMessage_1 = require("./RpcMessage"); | ||
const RpcRemoteError_1 = require("./error/RpcRemoteError"); | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -17,0 +17,0 @@ function createRpcClient(port) { |
@@ -1,2 +0,2 @@ | ||
import { RpcProcedure, RpcProcedurePayload, RpcProcedureResult } from './RpcProcedure'; | ||
import type { RpcProcedure, RpcProcedurePayload, RpcProcedureResult } from './RpcProcedure'; | ||
interface RpcMessage<TType extends string = string, TProcedure extends RpcProcedure = RpcProcedure, TPayload = unknown> { | ||
@@ -3,0 +3,0 @@ rpc: true; |
@@ -1,2 +0,2 @@ | ||
import { RpcMessagePort } from './RpcMessagePort'; | ||
import type { RpcMessagePort } from './RpcMessagePort'; | ||
interface RpcMessageChannel { | ||
@@ -3,0 +3,0 @@ readonly servicePort: RpcMessagePort; |
@@ -1,3 +0,3 @@ | ||
import { RpcProcedure } from './RpcProcedure'; | ||
import { RpcMessagePort } from './RpcMessagePort'; | ||
import type { RpcMessagePort } from './RpcMessagePort'; | ||
import type { RpcProcedure } from './RpcProcedure'; | ||
declare type RpcCallHandler<TPayload = any, TResult = any> = (payload: TPayload) => Promise<TResult>; | ||
@@ -4,0 +4,0 @@ interface RpcService { |
@@ -1,2 +0,2 @@ | ||
import { TypeScriptExtension } from './TypeScriptExtension'; | ||
import type { TypeScriptExtension } from './TypeScriptExtension'; | ||
interface TypeScriptEmbeddedSource { | ||
@@ -3,0 +3,0 @@ sourceText: string; |
@@ -100,3 +100,3 @@ "use strict"; | ||
return Object.assign(Object.assign({}, dependencies), { files: dependencies.files.map((fileName) => { | ||
const { embeddedExtension, embeddedFileName, extension, } = parsePotentiallyEmbeddedFileName(fileName); | ||
const { embeddedExtension, embeddedFileName, extension } = parsePotentiallyEmbeddedFileName(fileName); | ||
if (embeddedExtensions.includes(embeddedExtension)) { | ||
@@ -103,0 +103,0 @@ const embeddedSource = getCachedEmbeddedSource(embeddedFileName); |
import type * as ts from 'typescript'; | ||
import { Issue } from '../../issue'; | ||
import { FilesMatch } from '../../reporter'; | ||
import type { Issue } from '../../issue'; | ||
import type { FilesMatch } from '../../reporter'; | ||
interface TypeScriptHostExtension { | ||
@@ -5,0 +5,0 @@ extendWatchSolutionBuilderHost?<TProgram extends ts.BuilderProgram, THost extends ts.SolutionBuilderWithWatchHost<TProgram>>(host: THost, parsedCommandLine?: ts.ParsedCommandLine): THost; |
@@ -1,4 +0,4 @@ | ||
import { TypeScriptExtension } from '../TypeScriptExtension'; | ||
import { TypeScriptVueExtensionConfiguration } from './TypeScriptVueExtensionConfiguration'; | ||
import type { TypeScriptExtension } from '../TypeScriptExtension'; | ||
import type { TypeScriptVueExtensionConfiguration } from './TypeScriptVueExtensionConfiguration'; | ||
declare function createTypeScriptVueExtension(configuration: TypeScriptVueExtensionConfiguration): TypeScriptExtension; | ||
export { createTypeScriptVueExtension }; |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.createTypeScriptVueExtension = void 0; | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const TypeScriptEmbeddedExtension_1 = require("../TypeScriptEmbeddedExtension"); | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
function createTypeScriptVueExtension(configuration) { | ||
@@ -11,0 +11,0 @@ function loadVueTemplateCompiler() { |
@@ -1,2 +0,2 @@ | ||
import { TypeScriptVueExtensionOptions } from './TypeScriptVueExtensionOptions'; | ||
import type { TypeScriptVueExtensionOptions } from './TypeScriptVueExtensionOptions'; | ||
interface TypeScriptVueExtensionConfiguration { | ||
@@ -3,0 +3,0 @@ enabled: boolean; |
@@ -1,3 +0,3 @@ | ||
import { TypeScriptVueExtensionConfiguration } from './TypeScriptVueExtensionConfiguration'; | ||
import type { TypeScriptVueExtensionConfiguration } from './TypeScriptVueExtensionConfiguration'; | ||
declare function assertTypeScriptVueExtensionSupport(configuration: TypeScriptVueExtensionConfiguration): void; | ||
export { assertTypeScriptVueExtensionSupport }; |
/// <reference types="node" /> | ||
import { Dirent, Stats } from 'fs'; | ||
import type { Dirent, Stats } from 'fs'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Interface to abstract file system implementation details. |
@@ -1,2 +0,2 @@ | ||
import { FileSystem } from './FileSystem'; | ||
import type { FileSystem } from './FileSystem'; | ||
/** | ||
@@ -3,0 +3,0 @@ * It's an implementation of FileSystem interface which reads and writes to the in-memory file system. |
@@ -6,2 +6,3 @@ "use strict"; | ||
const memfs_1 = require("memfs"); | ||
// eslint-disable-next-line node/no-unsupported-features/node-builtins | ||
/** | ||
@@ -8,0 +9,0 @@ * It's an implementation of FileSystem interface which reads and writes to the in-memory file system. |
@@ -1,2 +0,2 @@ | ||
import { FileSystem } from './FileSystem'; | ||
import type { FileSystem } from './FileSystem'; | ||
/** | ||
@@ -3,0 +3,0 @@ * It's an implementation of FileSystem interface which reads from the real file system, but write to the in-memory file system. |
@@ -1,2 +0,2 @@ | ||
import { FileSystem } from './FileSystem'; | ||
import type { FileSystem } from './FileSystem'; | ||
/** | ||
@@ -3,0 +3,0 @@ * It's an implementation of the FileSystem interface which reads and writes directly to the real file system. |
@@ -9,2 +9,3 @@ "use strict"; | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
// eslint-disable-next-line node/no-unsupported-features/node-builtins | ||
/** | ||
@@ -11,0 +12,0 @@ * It's an implementation of the FileSystem interface which reads and writes directly to the real file system. |
import type * as ts from 'typescript'; | ||
import { Issue } from '../../issue'; | ||
import type { Issue } from '../../issue'; | ||
declare function createIssuesFromTsDiagnostics(typescript: typeof ts, diagnostics: ts.Diagnostic[]): Issue[]; | ||
export { createIssuesFromTsDiagnostics }; |
@@ -31,4 +31,4 @@ "use strict"; | ||
if (diagnostic.start && diagnostic.length) { | ||
const { line: startLine, character: startCharacter, } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); | ||
const { line: endLine, character: endCharacter, } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start + diagnostic.length); | ||
const { line: startLine, character: startCharacter } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); | ||
const { line: endLine, character: endCharacter } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start + diagnostic.length); | ||
location = { | ||
@@ -35,0 +35,0 @@ start: { |
import type * as ts from 'typescript'; | ||
import { Performance } from '../../profile/Performance'; | ||
import type { Performance } from '../../profile/Performance'; | ||
interface TypeScriptPerformance { | ||
@@ -4,0 +4,0 @@ enable(): void; |
@@ -1,5 +0,5 @@ | ||
import * as ts from 'typescript'; | ||
import { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
import type * as ts from 'typescript'; | ||
import type { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import type { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
declare function createControlledCompilerHost(typescript: typeof ts, parsedCommandLine: ts.ParsedCommandLine, system: ControlledTypeScriptSystem, hostExtensions?: TypeScriptHostExtension[]): ts.CompilerHost; | ||
export { createControlledCompilerHost }; |
import type * as ts from 'typescript'; | ||
import { FilesMatch } from '../../reporter'; | ||
import type { FilesMatch } from '../../reporter'; | ||
interface ControlledTypeScriptSystem extends ts.System { | ||
@@ -4,0 +4,0 @@ invokeFileCreated(path: string): void; |
@@ -17,6 +17,6 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const forwardSlash_1 = __importDefault(require("../../utils/path/forwardSlash")); | ||
const MemFileSystem_1 = require("../file-system/MemFileSystem"); | ||
const PassiveFileSystem_1 = require("../file-system/PassiveFileSystem"); | ||
const forwardSlash_1 = __importDefault(require("../../utils/path/forwardSlash")); | ||
const RealFileSystem_1 = require("../file-system/RealFileSystem"); | ||
const MemFileSystem_1 = require("../file-system/MemFileSystem"); | ||
function createControlledTypeScriptSystem(typescript, mode = 'readonly') { | ||
@@ -23,0 +23,0 @@ let artifacts = { |
import type * as ts from 'typescript'; | ||
import { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
import type { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import type { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
declare function createControlledWatchCompilerHost<TProgram extends ts.BuilderProgram>(typescript: typeof ts, parsedCommandLine: ts.ParsedCommandLine, system: ControlledTypeScriptSystem, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, afterProgramCreate?: (program: TProgram) => void, hostExtensions?: TypeScriptHostExtension[]): ts.WatchCompilerHostOfFilesAndCompilerOptions<TProgram>; | ||
export { createControlledWatchCompilerHost }; |
import type * as ts from 'typescript'; | ||
import { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
import type { TypeScriptHostExtension } from '../extension/TypeScriptExtension'; | ||
import type { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem'; | ||
declare function createControlledWatchSolutionBuilderHost<TProgram extends ts.BuilderProgram>(typescript: typeof ts, parsedCommandLine: ts.ParsedCommandLine, system: ControlledTypeScriptSystem, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, reportSolutionBuilderStatus?: (diagnostic: ts.Diagnostic) => void, afterProgramCreate?: (program: TProgram) => void, afterProgramEmitAndDiagnostics?: (program: TProgram) => void, hostExtensions?: TypeScriptHostExtension[]): ts.SolutionBuilderWithWatchHost<TProgram>; | ||
export { createControlledWatchSolutionBuilderHost }; |
import type * as ts from 'typescript'; | ||
import { TypeScriptConfigurationOverwrite } from '../TypeScriptConfigurationOverwrite'; | ||
import { FilesMatch } from '../../reporter'; | ||
import type { FilesMatch } from '../../reporter'; | ||
import type { TypeScriptConfigurationOverwrite } from '../TypeScriptConfigurationOverwrite'; | ||
declare function parseTypeScriptConfiguration(typescript: typeof ts, configFileName: string, configFileContext: string, configOverwriteJSON: TypeScriptConfigurationOverwrite, parseConfigFileHost: ts.ParseConfigFileHost): ts.ParsedCommandLine; | ||
@@ -5,0 +5,0 @@ declare function getDependenciesFromTypeScriptConfiguration(typescript: typeof ts, parsedConfiguration: ts.ParsedCommandLine, configFileContext: string, parseConfigFileHost: ts.ParseConfigFileHost, processedConfigFiles?: string[]): FilesMatch; |
@@ -1,4 +0,4 @@ | ||
import { Reporter } from '../../reporter'; | ||
import { TypeScriptReporterConfiguration } from '../TypeScriptReporterConfiguration'; | ||
import type { Reporter } from '../../reporter'; | ||
import type { TypeScriptReporterConfiguration } from '../TypeScriptReporterConfiguration'; | ||
declare function createTypeScriptReporter(configuration: TypeScriptReporterConfiguration): Reporter; | ||
export { createTypeScriptReporter }; |
@@ -17,11 +17,11 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const Performance_1 = require("../../profile/Performance"); | ||
const TypeScriptVueExtension_1 = require("../extension/vue/TypeScriptVueExtension"); | ||
const TypeScriptIssueFactory_1 = require("../issue/TypeScriptIssueFactory"); | ||
const TypeScriptPerformance_1 = require("../profile/TypeScriptPerformance"); | ||
const ControlledCompilerHost_1 = require("./ControlledCompilerHost"); | ||
const ControlledTypeScriptSystem_1 = require("./ControlledTypeScriptSystem"); | ||
const ControlledWatchCompilerHost_1 = require("./ControlledWatchCompilerHost"); | ||
const TypeScriptVueExtension_1 = require("../extension/vue/TypeScriptVueExtension"); | ||
const ControlledWatchSolutionBuilderHost_1 = require("./ControlledWatchSolutionBuilderHost"); | ||
const ControlledTypeScriptSystem_1 = require("./ControlledTypeScriptSystem"); | ||
const TypeScriptConfigurationParser_1 = require("./TypeScriptConfigurationParser"); | ||
const Performance_1 = require("../../profile/Performance"); | ||
const TypeScriptPerformance_1 = require("../profile/TypeScriptPerformance"); | ||
const ControlledCompilerHost_1 = require("./ControlledCompilerHost"); | ||
function createTypeScriptReporter(configuration) { | ||
@@ -28,0 +28,0 @@ let parsedConfiguration; |
@@ -1,4 +0,4 @@ | ||
import { TypeScriptReporterConfiguration } from '../TypeScriptReporterConfiguration'; | ||
import { ReporterRpcClient } from '../../reporter'; | ||
import type { ReporterRpcClient } from '../../reporter'; | ||
import type { TypeScriptReporterConfiguration } from '../TypeScriptReporterConfiguration'; | ||
declare function createTypeScriptReporterRpcClient(configuration: TypeScriptReporterConfiguration): ReporterRpcClient; | ||
export { createTypeScriptReporterRpcClient }; |
@@ -7,6 +7,6 @@ "use strict"; | ||
const process_1 = __importDefault(require("process")); | ||
const reporter_1 = require("../../reporter"); | ||
const rpc_ipc_1 = require("../../rpc/rpc-ipc"); | ||
const TypeScriptReporter_1 = require("./TypeScriptReporter"); | ||
const rpc_ipc_1 = require("../../rpc/rpc-ipc"); | ||
const reporter_1 = require("../../reporter"); | ||
const service = reporter_1.registerReporterRpcService(rpc_ipc_1.createRpcIpcMessagePort(process_1.default), TypeScriptReporter_1.createTypeScriptReporter); | ||
service.open(); |
@@ -1,6 +0,6 @@ | ||
import webpack from 'webpack'; | ||
import { TypeScriptDiagnosticsOptions } from './TypeScriptDiagnosticsOptions'; | ||
import { TypeScriptReporterOptions } from './TypeScriptReporterOptions'; | ||
import { TypeScriptVueExtensionConfiguration } from './extension/vue/TypeScriptVueExtensionConfiguration'; | ||
import { TypeScriptConfigurationOverwrite } from './TypeScriptConfigurationOverwrite'; | ||
import type webpack from 'webpack'; | ||
import type { TypeScriptVueExtensionConfiguration } from './extension/vue/TypeScriptVueExtensionConfiguration'; | ||
import type { TypeScriptConfigurationOverwrite } from './TypeScriptConfigurationOverwrite'; | ||
import type { TypeScriptDiagnosticsOptions } from './TypeScriptDiagnosticsOptions'; | ||
import type { TypeScriptReporterOptions } from './TypeScriptReporterOptions'; | ||
interface TypeScriptReporterConfiguration { | ||
@@ -7,0 +7,0 @@ enabled: boolean; |
@@ -1,4 +0,4 @@ | ||
import { TypeScriptDiagnosticsOptions } from './TypeScriptDiagnosticsOptions'; | ||
import { TypeScriptVueExtensionOptions } from './extension/vue/TypeScriptVueExtensionOptions'; | ||
import { TypeScriptConfigurationOverwrite } from './TypeScriptConfigurationOverwrite'; | ||
import type { TypeScriptVueExtensionOptions } from './extension/vue/TypeScriptVueExtensionOptions'; | ||
import type { TypeScriptConfigurationOverwrite } from './TypeScriptConfigurationOverwrite'; | ||
import type { TypeScriptDiagnosticsOptions } from './TypeScriptDiagnosticsOptions'; | ||
declare type TypeScriptReporterOptions = { | ||
@@ -5,0 +5,0 @@ memoryLimit?: number; |
@@ -1,3 +0,3 @@ | ||
import { TypeScriptReporterConfiguration } from './TypeScriptReporterConfiguration'; | ||
import type { TypeScriptReporterConfiguration } from './TypeScriptReporterConfiguration'; | ||
declare function assertTypeScriptSupport(configuration: TypeScriptReporterConfiguration): void; | ||
export { assertTypeScriptSupport }; |
@@ -26,5 +26,5 @@ "use strict"; | ||
exports.assertTypeScriptSupport = void 0; | ||
const os_1 = __importDefault(require("os")); | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const semver = __importStar(require("semver")); | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const os_1 = __importDefault(require("os")); | ||
const TypeScriptVueExtensionSupport_1 = require("./extension/vue/TypeScriptVueExtensionSupport"); | ||
@@ -31,0 +31,0 @@ function assertTypeScriptSupport(configuration) { |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.relativeToContext = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const forwardSlash_1 = __importDefault(require("./forwardSlash")); | ||
const path_1 = __importDefault(require("path")); | ||
function relativeToContext(file, context) { | ||
@@ -11,0 +11,0 @@ let fileInContext = forwardSlash_1.default(path_1.default.relative(context, file)); |
@@ -1,5 +0,5 @@ | ||
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import { FSWatcher } from 'chokidar'; | ||
import { WatchFileSystem } from './WatchFileSystem'; | ||
import { Compiler } from 'webpack'; | ||
import type { FSWatcher } from 'chokidar'; | ||
import type { Compiler } from 'webpack'; | ||
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState'; | ||
import type { WatchFileSystem } from './WatchFileSystem'; | ||
declare class InclusiveNodeWatchFileSystem implements WatchFileSystem { | ||
@@ -6,0 +6,0 @@ private watchFileSystem; |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.InclusiveNodeWatchFileSystem = void 0; | ||
const path_1 = require("path"); | ||
const chokidar_1 = __importDefault(require("chokidar")); | ||
const path_1 = require("path"); | ||
const minimatch_1 = __importDefault(require("minimatch")); | ||
const reporter_1 = require("../reporter"); | ||
const minimatch_1 = __importDefault(require("minimatch")); | ||
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp']; | ||
@@ -13,0 +13,0 @@ function createIsIgnored(ignored, excluded) { |
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
import webpack from 'webpack'; | ||
import type { EventEmitter } from 'events'; | ||
import type webpack from 'webpack'; | ||
interface Watchpack extends EventEmitter { | ||
@@ -5,0 +5,0 @@ _onChange(item: string, mtime: number, file: string, type?: string): void; |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "7.0.0-alpha.9", | ||
"version": "7.0.0-alpha.10", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -72,4 +72,4 @@ "keywords": [ | ||
"peerDependencies": { | ||
"webpack": "^5.11.0", | ||
"typescript": ">3.6.0" | ||
"typescript": ">3.6.0", | ||
"webpack": "^5.11.0" | ||
}, | ||
@@ -93,10 +93,10 @@ "devDependencies": { | ||
"@types/semver": "^7.3.8", | ||
"@typescript-eslint/eslint-plugin": "^4.29.0", | ||
"@typescript-eslint/parser": "^4.29.0", | ||
"@typescript-eslint/eslint-plugin": "^5.1.0", | ||
"@typescript-eslint/parser": "^5.1.0", | ||
"commitlint": "^13.1.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"git-cz": "^4.7.6", | ||
@@ -107,2 +107,3 @@ "husky": "^7.0.0", | ||
"jest-environment-node": "^27.0.6", | ||
"json-schema": "^0.3.0", | ||
"karton": "^0.4.1", | ||
@@ -109,0 +110,0 @@ "lint-staged": "^11.1.2", |
251691
210
4858
40