fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 6.0.8 to 6.1.0
import webpack from 'webpack'; | ||
import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions'; | ||
import { Pool } from './utils/async/pool'; | ||
declare class ForkTsCheckerWebpackPlugin implements webpack.Plugin { | ||
/** | ||
* Current version of the plugin | ||
*/ | ||
static readonly version: string; | ||
/** | ||
* Default pool for the plugin concurrency limit | ||
*/ | ||
static readonly pool: Pool; | ||
private readonly options; | ||
@@ -6,0 +14,0 @@ constructor(options?: ForkTsCheckerWebpackPluginOptions); |
@@ -23,2 +23,4 @@ "use strict"; | ||
const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching"); | ||
const pool_1 = require("./utils/async/pool"); | ||
const os_1 = __importDefault(require("os")); | ||
class ForkTsCheckerWebpackPlugin { | ||
@@ -64,2 +66,9 @@ constructor(options = {}) { | ||
exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin; | ||
ForkTsCheckerWebpackPlugin.version = '6.0.8'; // will be replaced by the @semantic-release/exec | ||
/** | ||
* Current version of the plugin | ||
*/ | ||
ForkTsCheckerWebpackPlugin.version = '6.1.0'; // will be replaced by the @semantic-release/exec | ||
/** | ||
* Default pool for the plugin concurrency limit | ||
*/ | ||
ForkTsCheckerWebpackPlugin.pool = pool_1.createPool(Math.max(1, os_1.default.cpus().length)); |
@@ -18,2 +18,3 @@ "use strict"; | ||
const interceptDoneToGetWebpackDevServerTap_1 = require("./interceptDoneToGetWebpackDevServerTap"); | ||
const ForkTsCheckerWebpackPlugin_1 = require("../ForkTsCheckerWebpackPlugin"); | ||
function tapStartToConnectAndRunReporter(compiler, reporter, configuration, state) { | ||
@@ -71,3 +72,3 @@ const hooks = pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler); | ||
const previousReportPromise = state.reportPromise; | ||
state.reportPromise = new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { | ||
state.reportPromise = ForkTsCheckerWebpackPlugin_1.ForkTsCheckerWebpackPlugin.pool.submit((done) => new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { | ||
change = yield hooks.start.promise(change, compilation); | ||
@@ -88,3 +89,3 @@ try { | ||
// get issues after dependencies are resolved as it can be blocking | ||
report.getIssues().then(resolveIssues).catch(rejectIssues); | ||
report.getIssues().then(resolveIssues).catch(rejectIssues).finally(done); | ||
}); | ||
@@ -102,6 +103,7 @@ } | ||
resolveIssues(undefined); | ||
done(); | ||
} | ||
})); | ||
}))); | ||
})); | ||
} | ||
exports.tapStartToConnectAndRunReporter = tapStartToConnectAndRunReporter; |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "6.0.8", | ||
"version": "6.1.0", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
258798
224
4763