ts-checker-rspack-plugin 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/formatter/basic-formatter.d.ts +1 -1
- package/lib/formatter/code-frame-formatter.d.ts +2 -2
- package/lib/formatter/formatter-config.d.ts +2 -2
- package/lib/formatter/formatter-options.d.ts +3 -3
- package/lib/formatter/formatter.d.ts +1 -1
- package/lib/formatter/index.d.ts +6 -6
- package/lib/formatter/rspack-formatter.d.ts +1 -1
- package/lib/formatter/stats-formatter.d.ts +1 -1
- package/lib/getDependenciesWorker.js +4 -4
- package/lib/getIssuesWorker.js +4 -4
- package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +2 -2
- package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +2 -2
- package/lib/hooks/tap-after-compile-to-get-issues.d.ts +2 -2
- package/lib/hooks/tap-after-environment-to-patch-watching.d.ts +1 -1
- package/lib/hooks/tap-done-to-async-get-issues.d.ts +2 -2
- package/lib/hooks/tap-error-to-log-message.d.ts +1 -1
- package/lib/hooks/tap-start-to-run-type-script-go.d.ts +2 -2
- package/lib/hooks/tap-start-to-run-workers.d.ts +5 -5
- package/lib/hooks/tap-stop-to-terminate-workers.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +158 -91
- package/lib/issue/index.d.ts +3 -3
- package/lib/issue/issue-config.d.ts +3 -3
- package/lib/issue/issue-location.d.ts +1 -1
- package/lib/issue/issue-match.d.ts +2 -2
- package/lib/issue/issue-options.d.ts +3 -3
- package/lib/issue/issue-predicate.d.ts +1 -1
- package/lib/issue/issue-rspack-error.d.ts +2 -2
- package/lib/issue/issue.d.ts +2 -2
- package/lib/plugin-config.d.ts +5 -5
- package/lib/plugin-hooks.d.ts +10 -6
- package/lib/plugin-options.d.ts +4 -4
- package/lib/plugin-pools.d.ts +1 -1
- package/lib/plugin-state.d.ts +3 -3
- package/lib/plugin.d.ts +8 -6
- package/lib/rpc/index.d.ts +6 -6
- package/lib/rpc/rpc-worker.d.ts +1 -1
- package/lib/rpc/wrap-rpc.d.ts +1 -1
- package/lib/typescript/type-script-go-package.d.ts +2 -2
- package/lib/typescript/type-script-go-runner.d.ts +7 -6
- package/lib/typescript/type-script-support.d.ts +1 -1
- package/lib/typescript/type-script-worker-config.d.ts +5 -5
- package/lib/typescript/type-script-worker-options.d.ts +2 -2
- package/lib/typescript/worker/get-dependencies-worker.d.ts +2 -2
- package/lib/typescript/worker/get-issues-worker.d.ts +3 -3
- package/lib/typescript/worker/lib/artifacts.d.ts +1 -1
- package/lib/typescript/worker/lib/config.d.ts +3 -3
- package/lib/typescript/worker/lib/dependencies.d.ts +1 -1
- package/lib/typescript/worker/lib/diagnostics.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +1 -1
- package/lib/typescript/worker/lib/system.d.ts +1 -1
- package/lib/typescript/worker/lib/worker-config.d.ts +1 -1
- package/lib/watch/inclusive-node-watch-file-system.d.ts +4 -4
- package/package.json +18 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Formatter } from './formatter';
|
|
2
|
-
import type { BabelCodeFrameOptions } from './types/babel__code-frame';
|
|
1
|
+
import type { Formatter } from './formatter.js';
|
|
2
|
+
import type { BabelCodeFrameOptions } from './types/babel__code-frame.js';
|
|
3
3
|
declare function createCodeFrameFormatter(options?: BabelCodeFrameOptions): Formatter;
|
|
4
4
|
export { createCodeFrameFormatter };
|
|
5
5
|
export type { BabelCodeFrameOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Formatter, FormatterPathType } from './formatter';
|
|
2
|
-
import type { FormatterOptions } from './formatter-options';
|
|
1
|
+
import type { Formatter, FormatterPathType } from './formatter.js';
|
|
2
|
+
import type { FormatterOptions } from './formatter-options.js';
|
|
3
3
|
type FormatterConfig = {
|
|
4
4
|
format: Formatter;
|
|
5
5
|
pathType: FormatterPathType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Formatter, FormatterPathType } from './formatter';
|
|
2
|
-
import type { BabelCodeFrameOptions } from './types/babel__code-frame';
|
|
1
|
+
import type { Formatter, FormatterPathType } from './formatter.js';
|
|
2
|
+
import type { BabelCodeFrameOptions } from './types/babel__code-frame.js';
|
|
3
3
|
type FormatterType = 'basic' | 'codeframe';
|
|
4
4
|
type BasicFormatterOptions = {
|
|
5
5
|
type: 'basic';
|
|
@@ -11,4 +11,4 @@ type CodeframeFormatterOptions = {
|
|
|
11
11
|
options?: BabelCodeFrameOptions;
|
|
12
12
|
};
|
|
13
13
|
type FormatterOptions = undefined | FormatterType | BasicFormatterOptions | CodeframeFormatterOptions | Formatter;
|
|
14
|
-
export type { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions
|
|
14
|
+
export type { FormatterOptions, FormatterType, BasicFormatterOptions, CodeframeFormatterOptions };
|
package/lib/formatter/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './formatter';
|
|
2
|
-
export * from './basic-formatter';
|
|
3
|
-
export * from './code-frame-formatter';
|
|
4
|
-
export * from './rspack-formatter';
|
|
5
|
-
export * from './formatter-options';
|
|
6
|
-
export * from './formatter-config';
|
|
1
|
+
export * from './formatter.js';
|
|
2
|
+
export * from './basic-formatter.js';
|
|
3
|
+
export * from './code-frame-formatter.js';
|
|
4
|
+
export * from './rspack-formatter.js';
|
|
5
|
+
export * from './formatter-options.js';
|
|
6
|
+
export * from './formatter-config.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Formatter, FormatterPathType } from './formatter';
|
|
1
|
+
import type { Formatter, FormatterPathType } from './formatter.js';
|
|
2
2
|
declare function createRspackFormatter(formatter: Formatter, pathType: FormatterPathType): Formatter;
|
|
3
3
|
export { createRspackFormatter };
|
|
@@ -362,8 +362,8 @@ function passive_file_system_readFile(path, encoding) {
|
|
|
362
362
|
const fsStats = realFileSystem.readStats(path);
|
|
363
363
|
const memStats = memFileSystem.readStats(path);
|
|
364
364
|
if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? realFileSystem.readFile(path, encoding) : memFileSystem.readFile(path, encoding);
|
|
365
|
-
if (fsStats) return realFileSystem.readFile(path, encoding);
|
|
366
|
-
if (memStats) return memFileSystem.readFile(path, encoding);
|
|
365
|
+
else if (fsStats) return realFileSystem.readFile(path, encoding);
|
|
366
|
+
else if (memStats) return memFileSystem.readFile(path, encoding);
|
|
367
367
|
}
|
|
368
368
|
function passive_file_system_readDir(path) {
|
|
369
369
|
const fsDirents = realFileSystem.readDir(path);
|
|
@@ -374,8 +374,8 @@ function passive_file_system_readStats(path) {
|
|
|
374
374
|
const fsStats = realFileSystem.readStats(path);
|
|
375
375
|
const memStats = memFileSystem.readStats(path);
|
|
376
376
|
if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? fsStats : memStats;
|
|
377
|
-
if (fsStats) return fsStats;
|
|
378
|
-
if (memStats) return memStats;
|
|
377
|
+
else if (fsStats) return fsStats;
|
|
378
|
+
else if (memStats) return memStats;
|
|
379
379
|
}
|
|
380
380
|
const mode = worker_config_config.mode;
|
|
381
381
|
let artifacts = {
|
package/lib/getIssuesWorker.js
CHANGED
|
@@ -477,8 +477,8 @@ function passive_file_system_readFile(path, encoding) {
|
|
|
477
477
|
const fsStats = realFileSystem.readStats(path);
|
|
478
478
|
const memStats = memFileSystem.readStats(path);
|
|
479
479
|
if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? realFileSystem.readFile(path, encoding) : memFileSystem.readFile(path, encoding);
|
|
480
|
-
if (fsStats) return realFileSystem.readFile(path, encoding);
|
|
481
|
-
if (memStats) return memFileSystem.readFile(path, encoding);
|
|
480
|
+
else if (fsStats) return realFileSystem.readFile(path, encoding);
|
|
481
|
+
else if (memStats) return memFileSystem.readFile(path, encoding);
|
|
482
482
|
}
|
|
483
483
|
function passive_file_system_readDir(path) {
|
|
484
484
|
const fsDirents = realFileSystem.readDir(path);
|
|
@@ -489,8 +489,8 @@ function passive_file_system_readStats(path) {
|
|
|
489
489
|
const fsStats = realFileSystem.readStats(path);
|
|
490
490
|
const memStats = memFileSystem.readStats(path);
|
|
491
491
|
if (fsStats && memStats) return fsStats.mtimeMs > memStats.mtimeMs ? fsStats : memStats;
|
|
492
|
-
if (fsStats) return fsStats;
|
|
493
|
-
if (memStats) return memStats;
|
|
492
|
+
else if (fsStats) return fsStats;
|
|
493
|
+
else if (memStats) return memStats;
|
|
494
494
|
}
|
|
495
495
|
const mode = worker_config_config.mode;
|
|
496
496
|
let artifacts = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
4
|
declare function interceptDoneToGetDevServerTap(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { interceptDoneToGetDevServerTap };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
4
|
declare function tapAfterCompileToAddDependencies(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { tapAfterCompileToAddDependencies };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
4
|
declare function tapAfterCompileToGetIssues(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { tapAfterCompileToGetIssues };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
3
3
|
declare function tapAfterEnvironmentToPatchWatching(compiler: rspack.Compiler, state: TsCheckerRspackPluginState): void;
|
|
4
4
|
export { tapAfterEnvironmentToPatchWatching };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
4
|
declare function tapDoneToAsyncGetIssues(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { tapDoneToAsyncGetIssues };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
3
|
declare function tapErrorToLogMessage(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig): void;
|
|
4
4
|
export { tapErrorToLogMessage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
4
|
declare function tapStartToRunTypeScriptGo(compiler: rspack.Compiler, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { tapStartToRunTypeScriptGo };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginConfig } from '../plugin-config';
|
|
3
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
4
|
-
import type { RpcWorker } from '../rpc';
|
|
5
|
-
import type { GetDependenciesWorker } from '../typescript/worker/get-dependencies-worker';
|
|
6
|
-
import type { GetIssuesWorker } from '../typescript/worker/get-issues-worker';
|
|
2
|
+
import type { TsCheckerRspackPluginConfig } from '../plugin-config.js';
|
|
3
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
4
|
+
import type { RpcWorker } from '../rpc/index.js';
|
|
5
|
+
import type { GetDependenciesWorker } from '../typescript/worker/get-dependencies-worker.js';
|
|
6
|
+
import type { GetIssuesWorker } from '../typescript/worker/get-issues-worker.js';
|
|
7
7
|
declare function tapStartToRunWorkers(compiler: rspack.Compiler, getIssuesWorker: RpcWorker<GetIssuesWorker>, getDependenciesWorker: RpcWorker<GetDependenciesWorker>, config: TsCheckerRspackPluginConfig, state: TsCheckerRspackPluginState): void;
|
|
8
8
|
export { tapStartToRunWorkers };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
3
|
-
import type { RpcWorker } from '../rpc';
|
|
2
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
3
|
+
import type { RpcWorker } from '../rpc/index.js';
|
|
4
4
|
declare function tapStopToTerminateWorkers(compiler: rspack.Compiler, getIssuesWorker: RpcWorker, getDependenciesWorker: RpcWorker, state: TsCheckerRspackPluginState): void;
|
|
5
5
|
export { tapStopToTerminateWorkers };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TsCheckerRspackPlugin } from './plugin';
|
|
1
|
+
import { TsCheckerRspackPlugin } from './plugin.js';
|
|
2
2
|
export { TsCheckerRspackPlugin };
|
package/lib/index.js
CHANGED
|
@@ -279,7 +279,7 @@ var __webpack_modules__ = {
|
|
|
279
279
|
const hasMarker = markerLines[number];
|
|
280
280
|
const lastMarkerLine = !markerLines[number + 1];
|
|
281
281
|
if (!hasMarker) return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
282
|
-
{
|
|
282
|
+
else {
|
|
283
283
|
let markerLine = "";
|
|
284
284
|
if (Array.isArray(hasMarker)) {
|
|
285
285
|
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
@@ -303,7 +303,7 @@ var __webpack_modules__ = {
|
|
|
303
303
|
}).join("\n");
|
|
304
304
|
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
305
305
|
if (shouldHighlight) return defs.reset(frame);
|
|
306
|
-
return frame;
|
|
306
|
+
else return frame;
|
|
307
307
|
}
|
|
308
308
|
exports1.gl = codeFrameColumns;
|
|
309
309
|
},
|
|
@@ -1625,6 +1625,7 @@ var __webpack_exports__ = {};
|
|
|
1625
1625
|
const commaPattern = /\\,/g;
|
|
1626
1626
|
const periodPattern = /\\\./g;
|
|
1627
1627
|
const EXPANSION_MAX = 100000;
|
|
1628
|
+
const EXPANSION_MAX_LENGTH = 4000000;
|
|
1628
1629
|
function numeric(str) {
|
|
1629
1630
|
return isNaN(str) ? str.charCodeAt(0) : parseInt(str, 10);
|
|
1630
1631
|
}
|
|
@@ -1654,9 +1655,9 @@ var __webpack_exports__ = {};
|
|
|
1654
1655
|
}
|
|
1655
1656
|
function expand(str, options = {}) {
|
|
1656
1657
|
if (!str) return [];
|
|
1657
|
-
const { max = EXPANSION_MAX } = options;
|
|
1658
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
|
|
1658
1659
|
if ('{}' === str.slice(0, 2)) str = '\\{\\}' + str.slice(2);
|
|
1659
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
1660
|
+
return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
|
|
1660
1661
|
}
|
|
1661
1662
|
function embrace(str) {
|
|
1662
1663
|
return '{' + str + '}';
|
|
@@ -1670,21 +1671,78 @@ var __webpack_exports__ = {};
|
|
|
1670
1671
|
function gte(i, y) {
|
|
1671
1672
|
return i >= y;
|
|
1672
1673
|
}
|
|
1673
|
-
function
|
|
1674
|
-
const
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1674
|
+
function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
1675
|
+
const out = [];
|
|
1676
|
+
let length = 0;
|
|
1677
|
+
for(let a = 0; a < acc.length; a++)for(let v = 0; v < values.length; v++){
|
|
1678
|
+
if (out.length >= max) return out;
|
|
1679
|
+
const expansion = acc[a] + pre + values[v];
|
|
1680
|
+
if (!dropEmpties || expansion) {
|
|
1681
|
+
if (length + expansion.length > maxLength) return out;
|
|
1682
|
+
out.push(expansion);
|
|
1683
|
+
length += expansion.length;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return out;
|
|
1687
|
+
}
|
|
1688
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
1689
|
+
const n = body.split(/\.\./);
|
|
1690
|
+
const N = [];
|
|
1691
|
+
if (void 0 === n[0] || void 0 === n[1]) return N;
|
|
1692
|
+
const x = numeric(n[0]);
|
|
1693
|
+
const y = numeric(n[1]);
|
|
1694
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
1695
|
+
let incr = 3 === n.length && void 0 !== n[2] ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
1696
|
+
let test = lte;
|
|
1697
|
+
const reverse = y < x;
|
|
1698
|
+
if (reverse) {
|
|
1699
|
+
incr *= -1;
|
|
1700
|
+
test = gte;
|
|
1701
|
+
}
|
|
1702
|
+
const pad = n.some(isPadded);
|
|
1703
|
+
let length = 0;
|
|
1704
|
+
for(let i = x; test(i, y) && N.length < max; i += incr){
|
|
1705
|
+
let c;
|
|
1706
|
+
if (isAlphaSequence) {
|
|
1707
|
+
c = String.fromCharCode(i);
|
|
1708
|
+
if ('\\' === c) c = '';
|
|
1709
|
+
} else {
|
|
1710
|
+
c = String(i);
|
|
1711
|
+
if (pad) {
|
|
1712
|
+
const need = width - c.length;
|
|
1713
|
+
if (need > 0) {
|
|
1714
|
+
const z = new Array(need + 1).join('0');
|
|
1715
|
+
c = i < 0 ? '-' + z + c.slice(1) : z + c;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
if (length + c.length > maxLength) break;
|
|
1720
|
+
N.push(c);
|
|
1721
|
+
length += c.length;
|
|
1722
|
+
}
|
|
1723
|
+
return N;
|
|
1724
|
+
}
|
|
1725
|
+
function expand_(str, max, maxLength, isTop) {
|
|
1726
|
+
let acc = [
|
|
1681
1727
|
''
|
|
1682
1728
|
];
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1729
|
+
let dropEmpties = false;
|
|
1730
|
+
let firstGroup = true;
|
|
1731
|
+
for(;;){
|
|
1732
|
+
const m = balanced('{', '}', str);
|
|
1733
|
+
if (!m) return combine(acc, str, [
|
|
1734
|
+
''
|
|
1735
|
+
], max, maxLength, dropEmpties);
|
|
1736
|
+
const pre = m.pre;
|
|
1737
|
+
if (/\$$/.test(pre)) {
|
|
1738
|
+
acc = combine(acc, pre + '{' + m.body + '}', [
|
|
1739
|
+
''
|
|
1740
|
+
], max, maxLength, dropEmpties && !m.post.length);
|
|
1741
|
+
firstGroup = false;
|
|
1742
|
+
if (!m.post.length) break;
|
|
1743
|
+
str = m.post;
|
|
1744
|
+
continue;
|
|
1745
|
+
}
|
|
1688
1746
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
1689
1747
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
1690
1748
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
@@ -1692,62 +1750,53 @@ var __webpack_exports__ = {};
|
|
|
1692
1750
|
if (!isSequence && !isOptions) {
|
|
1693
1751
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
1694
1752
|
str = m.pre + '{' + m.body + escClose + m.post;
|
|
1695
|
-
|
|
1753
|
+
isTop = true;
|
|
1754
|
+
continue;
|
|
1696
1755
|
}
|
|
1697
|
-
return [
|
|
1698
|
-
|
|
1699
|
-
];
|
|
1756
|
+
return combine(acc, pre + '{' + m.body + '}' + m.post, [
|
|
1757
|
+
''
|
|
1758
|
+
], max, maxLength, dropEmpties);
|
|
1700
1759
|
}
|
|
1701
|
-
|
|
1702
|
-
|
|
1760
|
+
if (firstGroup) {
|
|
1761
|
+
dropEmpties = isTop && !isSequence;
|
|
1762
|
+
firstGroup = false;
|
|
1763
|
+
}
|
|
1764
|
+
let values;
|
|
1765
|
+
if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
1703
1766
|
else {
|
|
1704
|
-
n = parseCommaParts(m.body);
|
|
1767
|
+
let n = parseCommaParts(m.body);
|
|
1705
1768
|
if (1 === n.length && void 0 !== n[0]) {
|
|
1706
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
1707
|
-
if (1 === n.length)
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
let incr = 3 === n.length && void 0 !== n[2] ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
1716
|
-
let test = lte;
|
|
1717
|
-
const reverse = y < x;
|
|
1718
|
-
if (reverse) {
|
|
1719
|
-
incr *= -1;
|
|
1720
|
-
test = gte;
|
|
1769
|
+
n = expand_(n[0], max, maxLength, false).map(embrace);
|
|
1770
|
+
if (1 === n.length) {
|
|
1771
|
+
acc = combine(acc, pre + n[0], [
|
|
1772
|
+
''
|
|
1773
|
+
], max, maxLength, dropEmpties && !m.post.length);
|
|
1774
|
+
if (!m.post.length) break;
|
|
1775
|
+
str = m.post;
|
|
1776
|
+
continue;
|
|
1777
|
+
}
|
|
1721
1778
|
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
const z = new Array(need + 1).join('0');
|
|
1735
|
-
c = i < 0 ? '-' + z + c.slice(1) : z + c;
|
|
1736
|
-
}
|
|
1779
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
1780
|
+
for(let d = 0; dropsEmpties && d < acc.length; d++)if (acc[d]) dropsEmpties = false;
|
|
1781
|
+
values = [];
|
|
1782
|
+
let valuesLength = 0;
|
|
1783
|
+
outer: for(let j = 0; j < n.length; j++){
|
|
1784
|
+
const expanded = expand_(n[j], max, maxLength, false);
|
|
1785
|
+
for(let k = 0; k < expanded.length; k++){
|
|
1786
|
+
const v = expanded[k];
|
|
1787
|
+
if (!dropsEmpties || v) {
|
|
1788
|
+
if (values.length >= max || valuesLength + v.length > maxLength) break outer;
|
|
1789
|
+
values.push(v);
|
|
1790
|
+
valuesLength += v.length;
|
|
1737
1791
|
}
|
|
1738
1792
|
}
|
|
1739
|
-
N.push(c);
|
|
1740
1793
|
}
|
|
1741
|
-
} else {
|
|
1742
|
-
N = [];
|
|
1743
|
-
for(let j = 0; j < n.length; j++)N.push.apply(N, expand_(n[j], max, false));
|
|
1744
|
-
}
|
|
1745
|
-
for(let j = 0; j < N.length; j++)for(let k = 0; k < post.length && expansions.length < max; k++){
|
|
1746
|
-
const expansion = pre + N[j] + post[k];
|
|
1747
|
-
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
1748
1794
|
}
|
|
1795
|
+
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|
|
1796
|
+
if (!m.post.length) break;
|
|
1797
|
+
str = m.post;
|
|
1749
1798
|
}
|
|
1750
|
-
return
|
|
1799
|
+
return acc;
|
|
1751
1800
|
}
|
|
1752
1801
|
const MAX_PATTERN_LENGTH = 65536;
|
|
1753
1802
|
const assertValidPattern = (pattern)=>{
|
|
@@ -2240,8 +2289,7 @@ var __webpack_exports__ = {};
|
|
|
2240
2289
|
} else if (']' === c && !(i === braceStart + 2 && braceNeg)) inBrace = false;
|
|
2241
2290
|
acc += c;
|
|
2242
2291
|
continue;
|
|
2243
|
-
}
|
|
2244
|
-
if ('[' === c) {
|
|
2292
|
+
} else if ('[' === c) {
|
|
2245
2293
|
inBrace = true;
|
|
2246
2294
|
braceStart = i;
|
|
2247
2295
|
braceNeg = false;
|
|
@@ -2279,8 +2327,7 @@ var __webpack_exports__ = {};
|
|
|
2279
2327
|
} else if (']' === c && !(i === braceStart + 2 && braceNeg)) inBrace = false;
|
|
2280
2328
|
acc += c;
|
|
2281
2329
|
continue;
|
|
2282
|
-
}
|
|
2283
|
-
if ('[' === c) {
|
|
2330
|
+
} else if ('[' === c) {
|
|
2284
2331
|
inBrace = true;
|
|
2285
2332
|
braceStart = i;
|
|
2286
2333
|
braceNeg = false;
|
|
@@ -2508,8 +2555,7 @@ var __webpack_exports__ = {};
|
|
|
2508
2555
|
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
2509
2556
|
hasMagic = true;
|
|
2510
2557
|
continue;
|
|
2511
|
-
}
|
|
2512
|
-
inStar = false;
|
|
2558
|
+
} else inStar = false;
|
|
2513
2559
|
if ('\\' === c) {
|
|
2514
2560
|
if (i === glob.length - 1) re += '\\\\';
|
|
2515
2561
|
else escaping = true;
|
|
@@ -2758,7 +2804,7 @@ var __webpack_exports__ = {};
|
|
|
2758
2804
|
...s.slice(0, 4),
|
|
2759
2805
|
...s.slice(4).map((ss)=>this.parse(ss))
|
|
2760
2806
|
];
|
|
2761
|
-
if (isDrive) return [
|
|
2807
|
+
else if (isDrive) return [
|
|
2762
2808
|
s[0],
|
|
2763
2809
|
...s.slice(1).map((ss)=>this.parse(ss))
|
|
2764
2810
|
];
|
|
@@ -3097,9 +3143,9 @@ var __webpack_exports__ = {};
|
|
|
3097
3143
|
if (!hit) return false;
|
|
3098
3144
|
}
|
|
3099
3145
|
if (fi === fl && pi === pl) return true;
|
|
3100
|
-
if (fi === fl) return partial;
|
|
3101
|
-
if (pi === pl) return fi === fl - 1 && '' === file[fi];
|
|
3102
|
-
throw new Error('wtf?');
|
|
3146
|
+
else if (fi === fl) return partial;
|
|
3147
|
+
else if (pi === pl) return fi === fl - 1 && '' === file[fi];
|
|
3148
|
+
else throw new Error('wtf?');
|
|
3103
3149
|
}
|
|
3104
3150
|
braceExpand() {
|
|
3105
3151
|
return braceExpand(this.pattern, this.options);
|
|
@@ -3180,11 +3226,11 @@ var __webpack_exports__ = {};
|
|
|
3180
3226
|
}
|
|
3181
3227
|
slashSplit(p) {
|
|
3182
3228
|
if (this.preserveMultipleSlashes) return p.split('/');
|
|
3183
|
-
if (this.isWindows && /^\/\/[^/]+/.test(p)) return [
|
|
3229
|
+
else if (this.isWindows && /^\/\/[^/]+/.test(p)) return [
|
|
3184
3230
|
'',
|
|
3185
3231
|
...p.split(/\/+/)
|
|
3186
3232
|
];
|
|
3187
|
-
return p.split(/\/+/);
|
|
3233
|
+
else return p.split(/\/+/);
|
|
3188
3234
|
}
|
|
3189
3235
|
match(f, partial = this.partial) {
|
|
3190
3236
|
this.debug('match', f, this.pattern);
|
|
@@ -3307,8 +3353,9 @@ var __webpack_exports__ = {};
|
|
|
3307
3353
|
});
|
|
3308
3354
|
const ignoredFunctions = ignoredPatterns.map((pattern)=>{
|
|
3309
3355
|
if ('string' == typeof pattern) return (path)=>minimatch(path, pattern);
|
|
3310
|
-
if (pattern instanceof RegExp) return (path)=>pattern.test(path);
|
|
3311
|
-
|
|
3356
|
+
else if (pattern instanceof RegExp) return (path)=>pattern.test(path);
|
|
3357
|
+
else if ('function' == typeof pattern) return pattern;
|
|
3358
|
+
else return ()=>false;
|
|
3312
3359
|
});
|
|
3313
3360
|
ignoredFunctions.push((path)=>filteredExcluded.some((excludedPath)=>isInsideAnotherPath(excludedPath, path)));
|
|
3314
3361
|
ignoredFunctions.push((path)=>BUILTIN_IGNORED_DIRS.some((ignoredDir)=>path.includes(`/${ignoredDir}/`) || path.includes(`\\${ignoredDir}\\`)));
|
|
@@ -3776,7 +3823,7 @@ var __webpack_exports__ = {};
|
|
|
3776
3823
|
}
|
|
3777
3824
|
function shouldRefreshTypeScriptGoDependencies(dependencies, { changedFiles = [], deletedFiles = [] }) {
|
|
3778
3825
|
if (!dependencies) return true;
|
|
3779
|
-
const dependencyKeys = dependencies.files.map(toComparisonPath);
|
|
3826
|
+
const dependencyKeys = dependencies.files.map((file)=>toComparisonPath(file));
|
|
3780
3827
|
return changedFiles.some((file)=>{
|
|
3781
3828
|
const key = toComparisonPath(file);
|
|
3782
3829
|
const extension = external_node_path_default().extname(file).toLowerCase();
|
|
@@ -4001,7 +4048,7 @@ var __webpack_exports__ = {};
|
|
|
4001
4048
|
const { debug } = getInfrastructureLogger(compiler);
|
|
4002
4049
|
compiler.hooks.afterCompile.tapPromise('TsCheckerRspackPlugin', async (compilation)=>{
|
|
4003
4050
|
if (compilation.compiler !== compiler) return;
|
|
4004
|
-
let issues
|
|
4051
|
+
let issues;
|
|
4005
4052
|
try {
|
|
4006
4053
|
issues = await state.issuesPromise;
|
|
4007
4054
|
} catch (error) {
|
|
@@ -4050,7 +4097,7 @@ var __webpack_exports__ = {};
|
|
|
4050
4097
|
`${external_picocolors_default().bold(color(severity))} in ` + formatter(issue),
|
|
4051
4098
|
''
|
|
4052
4099
|
].join(external_node_os_default().EOL);
|
|
4053
|
-
{
|
|
4100
|
+
else {
|
|
4054
4101
|
let location = external_picocolors_default().bold('absolute' === pathType ? forwardSlash(external_node_path_default().resolve(issue.file)) : relativeToContext(issue.file, process.cwd()));
|
|
4055
4102
|
if (issue.location) location += `:${external_picocolors_default().bold(external_picocolors_default().green(formatIssueLocation(issue.location)))}`;
|
|
4056
4103
|
return [
|
|
@@ -4288,6 +4335,7 @@ var __webpack_exports__ = {};
|
|
|
4288
4335
|
].join(external_node_os_default().EOL));
|
|
4289
4336
|
}
|
|
4290
4337
|
const hiddenTypeScriptGoErrors = Symbol('hiddenTypeScriptGoErrors');
|
|
4338
|
+
const STYLE_FILE = /\.(css|scss|sass|less|styl)$/i;
|
|
4291
4339
|
function getStatsFilterHook(hook) {
|
|
4292
4340
|
return hook;
|
|
4293
4341
|
}
|
|
@@ -4300,6 +4348,7 @@ var __webpack_exports__ = {};
|
|
|
4300
4348
|
let assertTypeScriptGoExecutablePromise;
|
|
4301
4349
|
let dependenciesPromise;
|
|
4302
4350
|
let dependenciesCacheGeneration = 0;
|
|
4351
|
+
let canReuseIssues = false;
|
|
4303
4352
|
const assertTypeScriptGoExecutableOnce = async ()=>{
|
|
4304
4353
|
try {
|
|
4305
4354
|
if (!assertTypeScriptGoExecutablePromise) assertTypeScriptGoExecutablePromise = assertTypeScriptGoExecutable(config.typescript);
|
|
@@ -4358,6 +4407,18 @@ var __webpack_exports__ = {};
|
|
|
4358
4407
|
return red(childErrorsMessage);
|
|
4359
4408
|
});
|
|
4360
4409
|
});
|
|
4410
|
+
let filesChange = state.watching ? consumeFilesChange(compiler) : {};
|
|
4411
|
+
const changedFiles = [
|
|
4412
|
+
...filesChange.changedFiles || [],
|
|
4413
|
+
...compiler.modifiedFiles || []
|
|
4414
|
+
];
|
|
4415
|
+
const dependencyPaths = new Set(state.lastDependencies?.files.map((file)=>toComparisonPath(file)));
|
|
4416
|
+
if (state.watching && canReuseIssues && state.lastDependencies && 0 === hooks.start.taps.length && !filesChange.deletedFiles?.length && !compiler.removedFiles?.size && changedFiles.length > 0 && changedFiles.every((file)=>STYLE_FILE.test(file) && !dependencyPaths.has(toComparisonPath(file)))) {
|
|
4417
|
+
debug('Reusing tsgo issues for style-only changes.');
|
|
4418
|
+
state.issuesPromise = state.issuesPromise.then((issues)=>issues);
|
|
4419
|
+
return;
|
|
4420
|
+
}
|
|
4421
|
+
canReuseIssues = false;
|
|
4361
4422
|
const iteration = ++state.iteration;
|
|
4362
4423
|
if (state.abortController) {
|
|
4363
4424
|
debug(`Aborting tsgo iteration ${iteration - 1}.`);
|
|
@@ -4365,15 +4426,11 @@ var __webpack_exports__ = {};
|
|
|
4365
4426
|
}
|
|
4366
4427
|
const abortController = new AbortController();
|
|
4367
4428
|
state.abortController = abortController;
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
` Changed files: ${JSON.stringify(filesChange.changedFiles)}`,
|
|
4374
|
-
` Deleted files: ${JSON.stringify(filesChange.deletedFiles)}`
|
|
4375
|
-
].join('\n'));
|
|
4376
|
-
} else log('Calling tsgo for single check.');
|
|
4429
|
+
state.watching ? log([
|
|
4430
|
+
'Calling tsgo for incremental check.',
|
|
4431
|
+
` Changed files: ${JSON.stringify(filesChange.changedFiles)}`,
|
|
4432
|
+
` Deleted files: ${JSON.stringify(filesChange.deletedFiles)}`
|
|
4433
|
+
].join('\n')) : log('Calling tsgo for single check.');
|
|
4377
4434
|
const cacheGeneration = ++dependenciesCacheGeneration;
|
|
4378
4435
|
const startPromise = hooks.start.promise(filesChange, compilation);
|
|
4379
4436
|
state.dependenciesPromise = startPromise.then((nextFilesChange)=>{
|
|
@@ -4386,7 +4443,10 @@ var __webpack_exports__ = {};
|
|
|
4386
4443
|
if (state.watching) {
|
|
4387
4444
|
dependenciesPromise = nextDependenciesPromise;
|
|
4388
4445
|
nextDependenciesPromise.catch(()=>{
|
|
4389
|
-
if (dependenciesPromise === nextDependenciesPromise)
|
|
4446
|
+
if (dependenciesPromise === nextDependenciesPromise) {
|
|
4447
|
+
dependenciesPromise = void 0;
|
|
4448
|
+
canReuseIssues = false;
|
|
4449
|
+
}
|
|
4390
4450
|
});
|
|
4391
4451
|
}
|
|
4392
4452
|
return nextDependenciesPromise;
|
|
@@ -4405,6 +4465,7 @@ var __webpack_exports__ = {};
|
|
|
4405
4465
|
].join('\n'));
|
|
4406
4466
|
}
|
|
4407
4467
|
state.aggregatedFilesChange = aggregatedFilesChange;
|
|
4468
|
+
canReuseIssues = true;
|
|
4408
4469
|
state.issuesPromise = (state.issuesPromise || Promise.resolve()).catch(()=>void 0).then(()=>{
|
|
4409
4470
|
if (abortController.signal.aborted) return;
|
|
4410
4471
|
debug(`Submitting tsgo to the pool, iteration ${iteration}.`);
|
|
@@ -4413,9 +4474,13 @@ var __webpack_exports__ = {};
|
|
|
4413
4474
|
debug(`Running tsgo, iteration ${iteration}.`);
|
|
4414
4475
|
const issues = await runTypeScriptGo(config.typescript, config.logger, config.issue.defaultSeverity, signal);
|
|
4415
4476
|
if (state.aggregatedFilesChange === aggregatedFilesChange) state.aggregatedFilesChange = void 0;
|
|
4416
|
-
if (state.abortController === abortController)
|
|
4477
|
+
if (state.abortController === abortController) {
|
|
4478
|
+
if (issues.some(isTypeScriptGoIssue)) canReuseIssues = false;
|
|
4479
|
+
state.abortController = void 0;
|
|
4480
|
+
}
|
|
4417
4481
|
return issues;
|
|
4418
4482
|
} catch (error) {
|
|
4483
|
+
if (state.abortController === abortController) canReuseIssues = false;
|
|
4419
4484
|
hooks.error.call(error, compilation);
|
|
4420
4485
|
return;
|
|
4421
4486
|
} finally{
|
|
@@ -4432,11 +4497,13 @@ var __webpack_exports__ = {};
|
|
|
4432
4497
|
}
|
|
4433
4498
|
};
|
|
4434
4499
|
compiler.hooks.watchClose.tap('TsCheckerRspackPlugin', ()=>{
|
|
4500
|
+
canReuseIssues = false;
|
|
4435
4501
|
dependenciesCacheGeneration++;
|
|
4436
4502
|
dependenciesPromise = void 0;
|
|
4437
4503
|
abortTypeScriptGo();
|
|
4438
4504
|
});
|
|
4439
4505
|
compiler.hooks.failed.tap('TsCheckerRspackPlugin', ()=>{
|
|
4506
|
+
canReuseIssues = false;
|
|
4440
4507
|
dependenciesCacheGeneration++;
|
|
4441
4508
|
dependenciesPromise = void 0;
|
|
4442
4509
|
if (!state.watching) abortTypeScriptGo();
|
package/lib/issue/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './issue';
|
|
2
|
-
export * from './issue-severity';
|
|
3
|
-
export * from './issue-location';
|
|
1
|
+
export * from './issue.js';
|
|
2
|
+
export * from './issue-severity.js';
|
|
3
|
+
export * from './issue-location.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { IssueOptions } from './issue-options';
|
|
3
|
-
import type { IssuePredicate } from './issue-predicate';
|
|
4
|
-
import type { IssueDefaultSeverity } from './issue-severity';
|
|
2
|
+
import type { IssueOptions } from './issue-options.js';
|
|
3
|
+
import type { IssuePredicate } from './issue-predicate.js';
|
|
4
|
+
import type { IssueDefaultSeverity } from './issue-severity.js';
|
|
5
5
|
interface IssueConfig {
|
|
6
6
|
predicate: IssuePredicate;
|
|
7
7
|
defaultSeverity: IssueDefaultSeverity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IssuePredicate } from './issue-predicate';
|
|
2
|
-
import type { Issue } from './index';
|
|
1
|
+
import type { IssuePredicate } from './issue-predicate.js';
|
|
2
|
+
import type { Issue } from './index.js';
|
|
3
3
|
type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>;
|
|
4
4
|
declare function createIssuePredicateFromIssueMatch(context: string, match: IssueMatch): IssuePredicate;
|
|
5
5
|
export { createIssuePredicateFromIssueMatch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IssueMatch } from './issue-match';
|
|
2
|
-
import type { IssuePredicate } from './issue-predicate';
|
|
3
|
-
import type { IssueDefaultSeverity } from './issue-severity';
|
|
1
|
+
import type { IssueMatch } from './issue-match.js';
|
|
2
|
+
import type { IssuePredicate } from './issue-predicate.js';
|
|
3
|
+
import type { IssueDefaultSeverity } from './issue-severity.js';
|
|
4
4
|
type IssuePredicateOption = IssuePredicate | IssueMatch | (IssuePredicate | IssueMatch)[];
|
|
5
5
|
interface IssueOptions {
|
|
6
6
|
include?: IssuePredicateOption;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Issue } from './index';
|
|
1
|
+
import type { Issue } from './index.js';
|
|
2
2
|
type IssuePredicate = (issue: Issue) => boolean;
|
|
3
3
|
declare function createTrivialIssuePredicate(result: boolean): IssuePredicate;
|
|
4
4
|
declare function composeIssuePredicates(predicates: IssuePredicate[]): IssuePredicate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FormatterPathType } from '../formatter';
|
|
2
|
-
import type { Issue } from './issue';
|
|
1
|
+
import type { FormatterPathType } from '../formatter/index.js';
|
|
2
|
+
import type { Issue } from './issue.js';
|
|
3
3
|
declare class IssueRspackError extends Error {
|
|
4
4
|
readonly issue: Issue;
|
|
5
5
|
readonly hideStack = true;
|
package/lib/issue/issue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IssueLocation } from './issue-location';
|
|
2
|
-
import type { IssueSeverity } from './issue-severity';
|
|
1
|
+
import type { IssueLocation } from './issue-location.js';
|
|
2
|
+
import type { IssueSeverity } from './issue-severity.js';
|
|
3
3
|
interface Issue {
|
|
4
4
|
severity: IssueSeverity;
|
|
5
5
|
code: string;
|
package/lib/plugin-config.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { FormatterConfig } from './formatter';
|
|
3
|
-
import type { IssueConfig } from './issue/issue-config';
|
|
4
|
-
import type { Logger } from './logger';
|
|
5
|
-
import type { TsCheckerRspackPluginOptions } from './plugin-options';
|
|
6
|
-
import type { TypeScriptWorkerConfig } from './typescript/type-script-worker-config';
|
|
2
|
+
import type { FormatterConfig } from './formatter/index.js';
|
|
3
|
+
import type { IssueConfig } from './issue/issue-config.js';
|
|
4
|
+
import type { Logger } from './logger.js';
|
|
5
|
+
import type { TsCheckerRspackPluginOptions } from './plugin-options.js';
|
|
6
|
+
import type { TypeScriptWorkerConfig } from './typescript/type-script-worker-config.js';
|
|
7
7
|
interface TsCheckerRspackPluginConfig {
|
|
8
8
|
async: boolean;
|
|
9
9
|
typescript: TypeScriptWorkerConfig;
|
package/lib/plugin-hooks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SyncHook, SyncWaterfallHook, AsyncSeriesWaterfallHook } from '@rspack/lite-tapable';
|
|
2
2
|
import type * as rspack from '@rspack/core';
|
|
3
|
-
import type { FilesChange } from './files-change';
|
|
4
|
-
import type { Issue } from './issue';
|
|
3
|
+
import type { FilesChange } from './files-change.js';
|
|
4
|
+
import type { Issue } from './issue/index.js';
|
|
5
5
|
declare function createPluginHooks(): {
|
|
6
|
-
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], {
|
|
6
|
+
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], FilesChange, {
|
|
7
7
|
_UnsetAdditionalOptions: true;
|
|
8
8
|
}>;
|
|
9
9
|
waiting: SyncHook<[rspack.Compilation], void, {
|
|
@@ -15,11 +15,13 @@ declare function createPluginHooks(): {
|
|
|
15
15
|
error: SyncHook<[unknown, rspack.Compilation], void, {
|
|
16
16
|
_UnsetAdditionalOptions: true;
|
|
17
17
|
}>;
|
|
18
|
-
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined],
|
|
18
|
+
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined], Issue[], {
|
|
19
|
+
_UnsetAdditionalOptions: true;
|
|
20
|
+
}>;
|
|
19
21
|
};
|
|
20
22
|
type TsCheckerRspackPluginHooks = ReturnType<typeof createPluginHooks>;
|
|
21
23
|
declare function getPluginHooks(compiler: rspack.Compiler | rspack.MultiCompiler): {
|
|
22
|
-
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], {
|
|
24
|
+
start: AsyncSeriesWaterfallHook<[FilesChange, rspack.Compilation], FilesChange, {
|
|
23
25
|
_UnsetAdditionalOptions: true;
|
|
24
26
|
}>;
|
|
25
27
|
waiting: SyncHook<[rspack.Compilation], void, {
|
|
@@ -31,7 +33,9 @@ declare function getPluginHooks(compiler: rspack.Compiler | rspack.MultiCompiler
|
|
|
31
33
|
error: SyncHook<[unknown, rspack.Compilation], void, {
|
|
32
34
|
_UnsetAdditionalOptions: true;
|
|
33
35
|
}>;
|
|
34
|
-
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined],
|
|
36
|
+
issues: SyncWaterfallHook<[Issue[], rspack.Compilation | undefined], Issue[], {
|
|
37
|
+
_UnsetAdditionalOptions: true;
|
|
38
|
+
}>;
|
|
35
39
|
};
|
|
36
40
|
export { getPluginHooks };
|
|
37
41
|
export type { TsCheckerRspackPluginHooks };
|
package/lib/plugin-options.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { FormatterOptions } from './formatter';
|
|
2
|
-
import type { IssueOptions } from './issue/issue-options';
|
|
3
|
-
import type { Logger } from './logger';
|
|
4
|
-
import type { TypeScriptWorkerOptions } from './typescript/type-script-worker-options';
|
|
1
|
+
import type { FormatterOptions } from './formatter/index.js';
|
|
2
|
+
import type { IssueOptions } from './issue/issue-options.js';
|
|
3
|
+
import type { Logger } from './logger.js';
|
|
4
|
+
import type { TypeScriptWorkerOptions } from './typescript/type-script-worker-options.js';
|
|
5
5
|
interface TsCheckerRspackPluginOptions {
|
|
6
6
|
async?: boolean;
|
|
7
7
|
typescript?: TypeScriptWorkerOptions;
|
package/lib/plugin-pools.d.ts
CHANGED
package/lib/plugin-state.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilesChange } from './files-change';
|
|
2
|
-
import type { FilesMatch } from './files-match';
|
|
3
|
-
import type { Issue } from './issue';
|
|
1
|
+
import type { FilesChange } from './files-change.js';
|
|
2
|
+
import type { FilesMatch } from './files-match.js';
|
|
3
|
+
import type { Issue } from './issue/index.js';
|
|
4
4
|
interface TsCheckerRspackPluginState {
|
|
5
5
|
issuesPromise: Promise<Issue[] | undefined>;
|
|
6
6
|
dependenciesPromise: Promise<FilesMatch | undefined>;
|
package/lib/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginOptions } from './plugin-options';
|
|
2
|
+
import type { TsCheckerRspackPluginOptions } from './plugin-options.js';
|
|
3
3
|
declare class TsCheckerRspackPlugin {
|
|
4
4
|
/**
|
|
5
5
|
* Current version of the plugin
|
|
@@ -8,16 +8,16 @@ declare class TsCheckerRspackPlugin {
|
|
|
8
8
|
/**
|
|
9
9
|
* Default pools for the plugin concurrency limit
|
|
10
10
|
*/
|
|
11
|
-
static readonly issuesPool: import("./utils/async/pool").Pool;
|
|
12
|
-
static readonly dependenciesPool: import("./utils/async/pool").Pool;
|
|
11
|
+
static readonly issuesPool: import("./utils/async/pool.js").Pool;
|
|
12
|
+
static readonly dependenciesPool: import("./utils/async/pool.js").Pool;
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use TsCheckerRspackPlugin.issuesPool instead
|
|
15
15
|
*/
|
|
16
|
-
static readonly pool: import("./utils/async/pool").Pool;
|
|
16
|
+
static readonly pool: import("./utils/async/pool.js").Pool;
|
|
17
17
|
private readonly options;
|
|
18
18
|
constructor(options?: TsCheckerRspackPluginOptions);
|
|
19
19
|
static getCompilerHooks(compiler: rspack.Compiler): {
|
|
20
|
-
start: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], {
|
|
20
|
+
start: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).AsyncSeriesWaterfallHook<[import("./files-change").FilesChange, rspack.Compilation], import("./files-change").FilesChange, {
|
|
21
21
|
_UnsetAdditionalOptions: true;
|
|
22
22
|
}>;
|
|
23
23
|
waiting: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[rspack.Compilation], void, {
|
|
@@ -29,7 +29,9 @@ declare class TsCheckerRspackPlugin {
|
|
|
29
29
|
error: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncHook<[unknown, rspack.Compilation], void, {
|
|
30
30
|
_UnsetAdditionalOptions: true;
|
|
31
31
|
}>;
|
|
32
|
-
issues: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncWaterfallHook<[import("./issue").Issue[], rspack.Compilation | undefined],
|
|
32
|
+
issues: import("@rspack/lite-tapable", { with: { "resolution-mode": "import" } }).SyncWaterfallHook<[import("./issue/index.js").Issue[], rspack.Compilation | undefined], import("./issue").Issue[], {
|
|
33
|
+
_UnsetAdditionalOptions: true;
|
|
34
|
+
}>;
|
|
33
35
|
};
|
|
34
36
|
apply(compiler: rspack.Compiler): void;
|
|
35
37
|
}
|
package/lib/rpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { exposeRpc } from './expose-rpc';
|
|
2
|
-
export { wrapRpc } from './wrap-rpc';
|
|
3
|
-
export { createRpcWorker, getRpcWorkerData } from './rpc-worker';
|
|
4
|
-
export type { RpcWorker } from './rpc-worker';
|
|
5
|
-
export { RpcExitError } from './rpc-error';
|
|
6
|
-
export type { RpcRemoteMethod } from './types';
|
|
1
|
+
export { exposeRpc } from './expose-rpc.js';
|
|
2
|
+
export { wrapRpc } from './wrap-rpc.js';
|
|
3
|
+
export { createRpcWorker, getRpcWorkerData } from './rpc-worker.js';
|
|
4
|
+
export type { RpcWorker } from './rpc-worker.js';
|
|
5
|
+
export { RpcExitError } from './rpc-error.js';
|
|
6
|
+
export type { RpcRemoteMethod } from './types.js';
|
package/lib/rpc/rpc-worker.d.ts
CHANGED
package/lib/rpc/wrap-rpc.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChildProcess } from 'node:child_process';
|
|
2
|
-
import type { RpcRemoteMethod } from './types';
|
|
2
|
+
import type { RpcRemoteMethod } from './types.js';
|
|
3
3
|
export declare function wrapRpc<T extends (...args: any[]) => any>(childProcess: ChildProcess): RpcRemoteMethod<T>;
|
|
@@ -11,5 +11,5 @@ type ResolvedTypeScriptGoPackage = {
|
|
|
11
11
|
declare function readTsgoPackageJson(packageJsonPath: string): TypeScriptGoPackageJson;
|
|
12
12
|
declare function getTsgoPackage(packageJson: TypeScriptGoPackageJson): TypeScriptGoPackage | undefined;
|
|
13
13
|
declare function resolveTypeScriptGoPackage(packageJsonPath: string): ResolvedTypeScriptGoPackage | undefined;
|
|
14
|
-
export { getTsgoPackage, readTsgoPackageJson, resolveTypeScriptGoPackage
|
|
15
|
-
export type { ResolvedTypeScriptGoPackage, TypeScriptGoPackage, TypeScriptGoPackageJson
|
|
14
|
+
export { getTsgoPackage, readTsgoPackageJson, resolveTypeScriptGoPackage };
|
|
15
|
+
export type { ResolvedTypeScriptGoPackage, TypeScriptGoPackage, TypeScriptGoPackageJson };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { FilesChange } from '../files-change';
|
|
2
|
-
import type { FilesMatch } from '../files-match';
|
|
3
|
-
import type { Issue, IssueDefaultSeverity } from '../issue';
|
|
4
|
-
import type { Logger } from '../logger';
|
|
5
|
-
import type { TypeScriptWorkerConfig } from './type-script-worker-config';
|
|
1
|
+
import type { FilesChange } from '../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../files-match.js';
|
|
3
|
+
import type { Issue, IssueDefaultSeverity } from '../issue/index.js';
|
|
4
|
+
import type { Logger } from '../logger.js';
|
|
5
|
+
import type { TypeScriptWorkerConfig } from './type-script-worker-config.js';
|
|
6
6
|
type TypeScriptGoExecutable = {
|
|
7
7
|
command: string;
|
|
8
8
|
args: string[];
|
|
@@ -10,6 +10,7 @@ type TypeScriptGoExecutable = {
|
|
|
10
10
|
declare function resolveTypeScriptGoPackageJsonPath(config: TypeScriptWorkerConfig): string;
|
|
11
11
|
declare function resolveTypeScriptGoBinPath(config: TypeScriptWorkerConfig): Promise<string>;
|
|
12
12
|
declare function resolveTypeScriptGoExecutable(config: TypeScriptWorkerConfig): Promise<TypeScriptGoExecutable>;
|
|
13
|
+
declare function toComparisonPath(file: string): string;
|
|
13
14
|
declare function shouldRefreshTypeScriptGoDependencies(dependencies: FilesMatch | undefined, { changedFiles, deletedFiles }: FilesChange): boolean;
|
|
14
15
|
declare function createTypeScriptGoArgs(config: TypeScriptWorkerConfig): string[];
|
|
15
16
|
declare function getTypeScriptGoErrorCount(output: string): number | undefined;
|
|
@@ -19,4 +20,4 @@ declare function isTypeScriptGoIssue(issue: Issue): boolean;
|
|
|
19
20
|
declare function isTypeScriptGoStatsError(error: unknown): boolean;
|
|
20
21
|
declare function runTypeScriptGo(config: TypeScriptWorkerConfig, logger: Pick<Logger, 'error'>, defaultSeverity?: IssueDefaultSeverity, signal?: AbortSignal): Promise<Issue[]>;
|
|
21
22
|
declare function getTypeScriptGoDependencies(config: TypeScriptWorkerConfig): Promise<FilesMatch>;
|
|
22
|
-
export { createTypeScriptGoArgs, createTypeScriptGoExitIssues, getTypeScriptGoDependencies, getTypeScriptGoErrorCount, isTypeScriptGoIssue, isTypeScriptGoStatsError, parseTypeScriptGoIssues, resolveTypeScriptGoExecutable, resolveTypeScriptGoBinPath, resolveTypeScriptGoPackageJsonPath, runTypeScriptGo, shouldRefreshTypeScriptGoDependencies, };
|
|
23
|
+
export { createTypeScriptGoArgs, createTypeScriptGoExitIssues, getTypeScriptGoDependencies, getTypeScriptGoErrorCount, isTypeScriptGoIssue, isTypeScriptGoStatsError, parseTypeScriptGoIssues, resolveTypeScriptGoExecutable, resolveTypeScriptGoBinPath, resolveTypeScriptGoPackageJsonPath, runTypeScriptGo, shouldRefreshTypeScriptGoDependencies, toComparisonPath, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypeScriptWorkerConfig } from './type-script-worker-config';
|
|
1
|
+
import type { TypeScriptWorkerConfig } from './type-script-worker-config.js';
|
|
2
2
|
declare function assertTypeScriptGoExecutable(config: TypeScriptWorkerConfig): Promise<void>;
|
|
3
3
|
declare function assertTypeScriptSupport(config: TypeScriptWorkerConfig): void;
|
|
4
4
|
export { assertTypeScriptGoExecutable, assertTypeScriptSupport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as rspack from '@rspack/core';
|
|
2
|
-
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
3
|
-
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
4
|
-
import { type TypeScriptGoPackage } from './type-script-go-package';
|
|
5
|
-
import type { TypeScriptWorkerOptions } from './type-script-worker-options';
|
|
2
|
+
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite.js';
|
|
3
|
+
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options.js';
|
|
4
|
+
import { type TypeScriptGoPackage } from './type-script-go-package.js';
|
|
5
|
+
import type { TypeScriptWorkerOptions } from './type-script-worker-options.js';
|
|
6
6
|
interface TypeScriptWorkerConfig {
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
memoryLimit: number;
|
|
@@ -19,5 +19,5 @@ interface TypeScriptWorkerConfig {
|
|
|
19
19
|
tsgoPackage?: TypeScriptGoPackage;
|
|
20
20
|
}
|
|
21
21
|
declare function createTypeScriptWorkerConfig(compiler: rspack.Compiler, options: TypeScriptWorkerOptions | undefined): TypeScriptWorkerConfig;
|
|
22
|
-
export { createTypeScriptWorkerConfig
|
|
22
|
+
export { createTypeScriptWorkerConfig };
|
|
23
23
|
export type { TypeScriptWorkerConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite';
|
|
2
|
-
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options';
|
|
1
|
+
import type { TypeScriptConfigOverwrite } from './type-script-config-overwrite.js';
|
|
2
|
+
import type { TypeScriptDiagnosticsOptions } from './type-script-diagnostics-options.js';
|
|
3
3
|
type TypeScriptWorkerOptions = {
|
|
4
4
|
memoryLimit?: number;
|
|
5
5
|
configFile?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FilesChange } from '../../files-change';
|
|
2
|
-
import type { FilesMatch } from '../../files-match';
|
|
1
|
+
import type { FilesChange } from '../../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../../files-match.js';
|
|
3
3
|
declare const getDependenciesWorker: (change: FilesChange) => FilesMatch;
|
|
4
4
|
export type GetDependenciesWorker = typeof getDependenciesWorker;
|
|
5
5
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FilesChange } from '../../files-change';
|
|
2
|
-
import type { FilesMatch } from '../../files-match';
|
|
3
|
-
import type { Issue, IssueDefaultSeverity } from '../../issue';
|
|
1
|
+
import type { FilesChange } from '../../files-change.js';
|
|
2
|
+
import type { FilesMatch } from '../../files-match.js';
|
|
3
|
+
import type { Issue, IssueDefaultSeverity } from '../../issue/index.js';
|
|
4
4
|
interface GetIssuesWorkerResult {
|
|
5
5
|
issues: Issue[];
|
|
6
6
|
dependencies?: FilesMatch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilesMatch } from '../../../files-match';
|
|
1
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
2
2
|
export declare function getArtifacts(force?: boolean): FilesMatch;
|
|
3
3
|
export declare function invalidateArtifacts(): void;
|
|
4
4
|
export declare function registerArtifacts(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { FilesChange } from '../../../files-change';
|
|
3
|
-
import type { FilesMatch } from '../../../files-match';
|
|
4
|
-
import type { Issue, IssueDefaultSeverity } from '../../../issue';
|
|
2
|
+
import type { FilesChange } from '../../../files-change.js';
|
|
3
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
4
|
+
import type { Issue, IssueDefaultSeverity } from '../../../issue/index.js';
|
|
5
5
|
export declare function parseConfig(configFileName: string, configFileContext: string): ts.ParsedCommandLine;
|
|
6
6
|
export declare function getParseConfigIssues(defaultSeverity: IssueDefaultSeverity): Issue[];
|
|
7
7
|
export declare function getParsedConfig(force?: boolean): ts.ParsedCommandLine;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { Issue, IssueDefaultSeverity } from '../../../issue';
|
|
2
|
+
import type { Issue, IssueDefaultSeverity } from '../../../issue/index.js';
|
|
3
3
|
export declare function updateDiagnostics(configFile: string, diagnostics: ts.Diagnostic[]): void;
|
|
4
4
|
export declare function getIssues(defaultSeverity: IssueDefaultSeverity): Issue[];
|
|
5
5
|
export declare function invalidateDiagnostics(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
import type { FilesMatch } from '../../../files-match';
|
|
2
|
+
import type { FilesMatch } from '../../../files-match.js';
|
|
3
3
|
export interface ControlledTypeScriptSystem extends ts.System {
|
|
4
4
|
invokeFileCreated(path: string): void;
|
|
5
5
|
invokeFileChanged(path: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TypeScriptWorkerConfig } from '../../type-script-worker-config';
|
|
1
|
+
import type { TypeScriptWorkerConfig } from '../../type-script-worker-config.js';
|
|
2
2
|
export declare const config: TypeScriptWorkerConfig;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Compiler } from '@rspack/core';
|
|
2
|
-
import type { TsCheckerRspackPluginState } from '../plugin-state';
|
|
3
|
-
import type { WatchFileSystem } from './watch-file-system';
|
|
4
|
-
export declare function createIsIgnored(ignored: string | RegExp | (string | RegExp)[] | undefined, excluded: string[]): (path: string) => boolean;
|
|
2
|
+
import type { TsCheckerRspackPluginState } from '../plugin-state.js';
|
|
3
|
+
import type { WatchFileSystem } from './watch-file-system.js';
|
|
4
|
+
export declare function createIsIgnored(ignored: string | RegExp | (string | RegExp)[] | ((entry: string) => boolean) | undefined, excluded: string[]): (path: string) => boolean;
|
|
5
5
|
declare class InclusiveNodeWatchFileSystem implements WatchFileSystem {
|
|
6
6
|
private watchFileSystem;
|
|
7
7
|
private compiler;
|
|
8
8
|
private pluginState;
|
|
9
|
-
get watcher(): import("./watch-file-system").Watchpack | undefined;
|
|
9
|
+
get watcher(): import("./watch-file-system.js").Watchpack | undefined;
|
|
10
10
|
private readonly dirsWatchers;
|
|
11
11
|
private paused;
|
|
12
12
|
private deletedFiles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -23,27 +23,23 @@
|
|
|
23
23
|
"lib"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rspack/lite-tapable": "^1.
|
|
27
|
-
"chokidar": "^
|
|
28
|
-
"memfs": "^4.
|
|
26
|
+
"@rspack/lite-tapable": "^1.3.0",
|
|
27
|
+
"chokidar": "^4.0.3",
|
|
28
|
+
"memfs": "^4.79.0",
|
|
29
29
|
"picocolors": "^1.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/code-frame": "^7.29.7",
|
|
33
|
-
"@
|
|
34
|
-
"@rslint/core": "^0.7.0",
|
|
35
|
-
"@rspack/core": "^2.1.4",
|
|
33
|
+
"@rspack/core": "^2.2.8",
|
|
36
34
|
"@rstackjs/test-utils": "^0.2.0",
|
|
37
|
-
"@rstest/core": "^0.11.2",
|
|
38
35
|
"@types/babel__code-frame": "^7.27.0",
|
|
39
36
|
"@types/is-glob": "^4.0.4",
|
|
40
|
-
"@types/node": "^24.
|
|
37
|
+
"@types/node": "^24.19.0",
|
|
41
38
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
42
39
|
"cross-env": "^10.1.0",
|
|
43
|
-
"husky": "^9.1.7",
|
|
44
40
|
"is-glob": "^4.0.3",
|
|
45
|
-
"minimatch": "^10.2.
|
|
46
|
-
"
|
|
41
|
+
"minimatch": "^10.2.6",
|
|
42
|
+
"rstack": "^0.8.0",
|
|
47
43
|
"strip-ansi": "^7.2.0",
|
|
48
44
|
"typescript": "^6.0.3"
|
|
49
45
|
},
|
|
@@ -65,15 +61,17 @@
|
|
|
65
61
|
"registry": "https://registry.npmjs.org/"
|
|
66
62
|
},
|
|
67
63
|
"scripts": {
|
|
68
|
-
"build": "
|
|
69
|
-
"bump": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
64
|
+
"build": "rs lib",
|
|
65
|
+
"bump": "pnpm version -m \"release: v%s\"",
|
|
66
|
+
"check": "rs check",
|
|
67
|
+
"dev": "rs lib -w",
|
|
68
|
+
"format": "rs fmt",
|
|
69
|
+
"lint": "rs lint",
|
|
70
|
+
"lint:write": "rs lint --fix",
|
|
73
71
|
"precommit": "pnpm build && pnpm test:unit",
|
|
74
|
-
"test": "pnpm build &&
|
|
75
|
-
"test:e2e": "
|
|
72
|
+
"test": "pnpm build && rs test",
|
|
73
|
+
"test:e2e": "rs test --project e2e",
|
|
76
74
|
"test:e2e:setup": "cd test/e2e && pnpm run setup",
|
|
77
|
-
"test:unit": "
|
|
75
|
+
"test:unit": "rs test --project unit"
|
|
78
76
|
}
|
|
79
77
|
}
|