ts-checker-rspack-plugin 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +216 -0
- package/lib/files-change.d.ts +17 -0
- package/lib/files-change.js +57 -0
- package/lib/files-match.d.ts +7 -0
- package/lib/files-match.js +2 -0
- package/lib/formatter/basic-formatter.d.ts +3 -0
- package/lib/formatter/basic-formatter.js +13 -0
- package/lib/formatter/code-frame-formatter.d.ts +4 -0
- package/lib/formatter/code-frame-formatter.js +29 -0
- package/lib/formatter/formatter-config.d.ts +8 -0
- package/lib/formatter/formatter-config.js +36 -0
- package/lib/formatter/formatter-options.d.ts +14 -0
- package/lib/formatter/formatter-options.js +2 -0
- package/lib/formatter/formatter.d.ts +4 -0
- package/lib/formatter/formatter.js +2 -0
- package/lib/formatter/index.d.ts +6 -0
- package/lib/formatter/index.js +18 -0
- package/lib/formatter/stats-formatter.d.ts +3 -0
- package/lib/formatter/stats-formatter.js +28 -0
- package/lib/formatter/types/babel__code-frame.d.ts +21 -0
- package/lib/formatter/types/babel__code-frame.js +7 -0
- package/lib/formatter/webpack-formatter.d.ts +3 -0
- package/lib/formatter/webpack-formatter.js +32 -0
- package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +5 -0
- package/lib/hooks/intercept-done-to-get-dev-server-tap.js +18 -0
- package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +5 -0
- package/lib/hooks/tap-after-compile-to-add-dependencies.js +31 -0
- package/lib/hooks/tap-after-compile-to-get-issues.d.ts +5 -0
- package/lib/hooks/tap-after-compile-to-get-issues.js +52 -0
- package/lib/hooks/tap-after-environment-to-patch-watching.d.ts +4 -0
- package/lib/hooks/tap-after-environment-to-patch-watching.js +22 -0
- package/lib/hooks/tap-done-to-async-get-issues.d.ts +5 -0
- package/lib/hooks/tap-done-to-async-get-issues.js +86 -0
- package/lib/hooks/tap-error-to-log-message.d.ts +4 -0
- package/lib/hooks/tap-error-to-log-message.js +32 -0
- package/lib/hooks/tap-start-to-run-workers.d.ts +8 -0
- package/lib/hooks/tap-start-to-run-workers.js +132 -0
- package/lib/hooks/tap-stop-to-terminate-workers.d.ts +5 -0
- package/lib/hooks/tap-stop-to-terminate-workers.js +26 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -0
- package/lib/infrastructure-logger.d.ts +9 -0
- package/lib/infrastructure-logger.js +14 -0
- package/lib/issue/index.d.ts +3 -0
- package/lib/issue/index.js +15 -0
- package/lib/issue/issue-config.d.ts +8 -0
- package/lib/issue/issue-config.js +29 -0
- package/lib/issue/issue-location.d.ts +8 -0
- package/lib/issue/issue-location.js +22 -0
- package/lib/issue/issue-match.d.ts +5 -0
- package/lib/issue/issue-match.js +20 -0
- package/lib/issue/issue-options.d.ts +8 -0
- package/lib/issue/issue-options.js +2 -0
- package/lib/issue/issue-position.d.ts +6 -0
- package/lib/issue/issue-position.js +16 -0
- package/lib/issue/issue-predicate.d.ts +5 -0
- package/lib/issue/issue-predicate.js +11 -0
- package/lib/issue/issue-severity.d.ts +4 -0
- package/lib/issue/issue-severity.js +12 -0
- package/lib/issue/issue-webpack-error.d.ts +10 -0
- package/lib/issue/issue-webpack-error.js +51 -0
- package/lib/issue/issue.d.ts +12 -0
- package/lib/issue/issue.js +41 -0
- package/lib/logger.d.ts +5 -0
- package/lib/logger.js +2 -0
- package/lib/plugin-config.d.ts +16 -0
- package/lib/plugin-config.js +26 -0
- package/lib/plugin-hooks.d.ts +20 -0
- package/lib/plugin-hooks.js +45 -0
- package/lib/plugin-options.d.ts +13 -0
- package/lib/plugin-options.js +2 -0
- package/lib/plugin-options.json +197 -0
- package/lib/plugin-pools.d.ts +4 -0
- package/lib/plugin-pools.js +28 -0
- package/lib/plugin-state.d.ts +18 -0
- package/lib/plugin-state.js +17 -0
- package/lib/plugin.d.ts +29 -0
- package/lib/plugin.js +79 -0
- package/lib/rpc/expose-rpc.d.ts +1 -0
- package/lib/rpc/expose-rpc.js +78 -0
- package/lib/rpc/index.d.ts +5 -0
- package/lib/rpc/index.js +12 -0
- package/lib/rpc/rpc-error.d.ts +6 -0
- package/lib/rpc/rpc-error.js +12 -0
- package/lib/rpc/rpc-worker.d.ts +13 -0
- package/lib/rpc/rpc-worker.js +79 -0
- package/lib/rpc/types.d.ts +19 -0
- package/lib/rpc/types.js +2 -0
- package/lib/rpc/wrap-rpc.d.ts +4 -0
- package/lib/rpc/wrap-rpc.js +79 -0
- package/lib/typescript/type-script-config-overwrite.d.ts +12 -0
- package/lib/typescript/type-script-config-overwrite.js +2 -0
- package/lib/typescript/type-script-diagnostics-options.d.ts +7 -0
- package/lib/typescript/type-script-diagnostics-options.js +2 -0
- package/lib/typescript/type-script-support.d.ts +3 -0
- package/lib/typescript/type-script-support.js +63 -0
- package/lib/typescript/type-script-worker-config.d.ts +18 -0
- package/lib/typescript/type-script-worker-config.js +18 -0
- package/lib/typescript/type-script-worker-options.d.ts +14 -0
- package/lib/typescript/type-script-worker-options.js +2 -0
- package/lib/typescript/worker/get-dependencies-worker.d.ts +5 -0
- package/lib/typescript/worker/get-dependencies-worker.js +15 -0
- package/lib/typescript/worker/get-issues-worker.d.ts +5 -0
- package/lib/typescript/worker/get-issues-worker.js +80 -0
- package/lib/typescript/worker/lib/artifacts.d.ts +4 -0
- package/lib/typescript/worker/lib/artifacts.js +90 -0
- package/lib/typescript/worker/lib/config.d.ts +15 -0
- package/lib/typescript/worker/lib/config.js +131 -0
- package/lib/typescript/worker/lib/dependencies.d.ts +3 -0
- package/lib/typescript/worker/lib/dependencies.js +81 -0
- package/lib/typescript/worker/lib/diagnostics.d.ts +7 -0
- package/lib/typescript/worker/lib/diagnostics.js +108 -0
- package/lib/typescript/worker/lib/emit.d.ts +2 -0
- package/lib/typescript/worker/lib/emit.js +13 -0
- package/lib/typescript/worker/lib/file-system/file-system.d.ts +18 -0
- package/lib/typescript/worker/lib/file-system/file-system.js +2 -0
- package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/mem-file-system.js +78 -0
- package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/passive-file-system.js +65 -0
- package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/real-file-system.js +187 -0
- package/lib/typescript/worker/lib/host/compiler-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/compiler-host.js +10 -0
- package/lib/typescript/worker/lib/host/watch-compiler-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/watch-compiler-host.js +20 -0
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +47 -0
- package/lib/typescript/worker/lib/performance.d.ts +3 -0
- package/lib/typescript/worker/lib/performance.js +32 -0
- package/lib/typescript/worker/lib/program/program.d.ts +2 -0
- package/lib/typescript/worker/lib/program/program.js +37 -0
- package/lib/typescript/worker/lib/program/solution-builder.d.ts +2 -0
- package/lib/typescript/worker/lib/program/solution-builder.js +39 -0
- package/lib/typescript/worker/lib/program/watch-program.d.ts +3 -0
- package/lib/typescript/worker/lib/program/watch-program.js +51 -0
- package/lib/typescript/worker/lib/system.d.ts +19 -0
- package/lib/typescript/worker/lib/system.js +232 -0
- package/lib/typescript/worker/lib/tracing.d.ts +4 -0
- package/lib/typescript/worker/lib/tracing.js +29 -0
- package/lib/typescript/worker/lib/tsbuildinfo.d.ts +4 -0
- package/lib/typescript/worker/lib/tsbuildinfo.js +92 -0
- package/lib/typescript/worker/lib/typescript.d.ts +2 -0
- package/lib/typescript/worker/lib/typescript.js +6 -0
- package/lib/typescript/worker/lib/worker-config.d.ts +2 -0
- package/lib/typescript/worker/lib/worker-config.js +5 -0
- package/lib/utils/async/abort-error.d.ts +6 -0
- package/lib/utils/async/abort-error.js +15 -0
- package/lib/utils/async/controlled-promise.d.ts +6 -0
- package/lib/utils/async/controlled-promise.js +17 -0
- package/lib/utils/async/is-pending.d.ts +2 -0
- package/lib/utils/async/is-pending.js +10 -0
- package/lib/utils/async/pool.d.ts +10 -0
- package/lib/utils/async/pool.js +47 -0
- package/lib/utils/async/wait.d.ts +2 -0
- package/lib/utils/async/wait.js +7 -0
- package/lib/utils/path/forward-slash.d.ts +6 -0
- package/lib/utils/path/forward-slash.js +15 -0
- package/lib/utils/path/is-inside-another-path.d.ts +2 -0
- package/lib/utils/path/is-inside-another-path.js +22 -0
- package/lib/utils/path/relative-to-context.d.ts +2 -0
- package/lib/utils/path/relative-to-context.js +16 -0
- package/lib/watch/inclusive-node-watch-file-system.d.ts +15 -0
- package/lib/watch/inclusive-node-watch-file-system.js +166 -0
- package/lib/watch/watch-file-system.d.ts +16 -0
- package/lib/watch/watch-file-system.js +2 -0
- package/package.json +88 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InclusiveNodeWatchFileSystem = void 0;
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const chokidar_1 = __importDefault(require("chokidar"));
|
|
9
|
+
const minimatch_1 = __importDefault(require("minimatch"));
|
|
10
|
+
const files_change_1 = require("../files-change");
|
|
11
|
+
const infrastructure_logger_1 = require("../infrastructure-logger");
|
|
12
|
+
const is_inside_another_path_1 = require("../utils/path/is-inside-another-path");
|
|
13
|
+
const BUILTIN_IGNORED_DIRS = ['.git'];
|
|
14
|
+
function createIsIgnored(ignored, excluded) {
|
|
15
|
+
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
16
|
+
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
17
|
+
// ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
|
|
18
|
+
if (typeof pattern === 'string') {
|
|
19
|
+
return (path) => (0, minimatch_1.default)(path, pattern);
|
|
20
|
+
}
|
|
21
|
+
else if (pattern instanceof RegExp) {
|
|
22
|
+
return (path) => pattern.test(path);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
// fallback to no-ignore function
|
|
26
|
+
return () => false;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
ignoredFunctions.push((path) => excluded.some((excludedPath) => (0, is_inside_another_path_1.isInsideAnotherPath)(excludedPath, path)));
|
|
30
|
+
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`) || path.includes(`\\${ignoredDir}\\`)));
|
|
31
|
+
return function isIgnored(path) {
|
|
32
|
+
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
class InclusiveNodeWatchFileSystem {
|
|
36
|
+
constructor(watchFileSystem, compiler, pluginState) {
|
|
37
|
+
this.watchFileSystem = watchFileSystem;
|
|
38
|
+
this.compiler = compiler;
|
|
39
|
+
this.pluginState = pluginState;
|
|
40
|
+
this.paused = true;
|
|
41
|
+
this.watch = (files, dirs, missing, startTime, options, callback, callbackUndelayed) => {
|
|
42
|
+
var _a, _b, _c, _d;
|
|
43
|
+
const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(this.compiler);
|
|
44
|
+
(0, files_change_1.clearFilesChange)(this.compiler);
|
|
45
|
+
const isIgnored = createIsIgnored(options === null || options === void 0 ? void 0 : options.ignored, ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.excluded) || []);
|
|
46
|
+
// use standard watch file system for files and missing
|
|
47
|
+
const standardWatcher = this.watchFileSystem.watch(files, dirs, missing, startTime, options, callback, callbackUndelayed);
|
|
48
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b.on('change', (file) => {
|
|
49
|
+
if (typeof file !== 'string') {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!isIgnored(file)) {
|
|
53
|
+
debug('Detected file change', file);
|
|
54
|
+
this.deletedFiles.delete(file);
|
|
55
|
+
(0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
debug("Detected file change but it's ignored", file);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
(_c = this.watcher) === null || _c === void 0 ? void 0 : _c.on('remove', (file) => {
|
|
62
|
+
if (typeof file !== 'string') {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (this.deletedFiles.has(file)) {
|
|
66
|
+
debug('Skipping duplicated remove event.');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (!isIgnored(file)) {
|
|
70
|
+
debug('Detected file remove', file);
|
|
71
|
+
this.deletedFiles.add(file);
|
|
72
|
+
(0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
debug("Detected file remove but it's ignored", file);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
// calculate what to change
|
|
79
|
+
const prevDirs = Array.from(this.dirsWatchers.keys());
|
|
80
|
+
const nextDirs = Array.from(((_d = this.pluginState.lastDependencies) === null || _d === void 0 ? void 0 : _d.dirs) || []);
|
|
81
|
+
const dirsToUnwatch = prevDirs.filter((prevDir) => !nextDirs.includes(prevDir));
|
|
82
|
+
const dirsToWatch = nextDirs.filter((nextDir) => !prevDirs.includes(nextDir) && !isIgnored(nextDir));
|
|
83
|
+
// update dirs watcher
|
|
84
|
+
dirsToUnwatch.forEach((dirToUnwatch) => {
|
|
85
|
+
var _a;
|
|
86
|
+
(_a = this.dirsWatchers.get(dirToUnwatch)) === null || _a === void 0 ? void 0 : _a.close();
|
|
87
|
+
this.dirsWatchers.delete(dirToUnwatch);
|
|
88
|
+
});
|
|
89
|
+
dirsToWatch.forEach((dirToWatch) => {
|
|
90
|
+
const interval = typeof (options === null || options === void 0 ? void 0 : options.poll) === 'number' ? options.poll : undefined;
|
|
91
|
+
const dirWatcher = chokidar_1.default.watch(dirToWatch, {
|
|
92
|
+
ignoreInitial: true,
|
|
93
|
+
ignorePermissionErrors: true,
|
|
94
|
+
ignored: (path) => isIgnored(path),
|
|
95
|
+
usePolling: (options === null || options === void 0 ? void 0 : options.poll) ? true : undefined,
|
|
96
|
+
interval: interval,
|
|
97
|
+
binaryInterval: interval,
|
|
98
|
+
alwaysStat: true,
|
|
99
|
+
atomic: true,
|
|
100
|
+
awaitWriteFinish: true,
|
|
101
|
+
});
|
|
102
|
+
dirWatcher.on('add', (file, stats) => {
|
|
103
|
+
var _a, _b;
|
|
104
|
+
if (this.paused) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const extension = (0, path_1.extname)(file);
|
|
108
|
+
const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
109
|
+
if (!supportedExtensions.includes(extension)) {
|
|
110
|
+
debug('Detected new file add but extension is not supported', file);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
debug('Detected new file add', file);
|
|
114
|
+
this.deletedFiles.delete(file);
|
|
115
|
+
(0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
|
|
116
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onChange(dirToWatch, (stats === null || stats === void 0 ? void 0 : stats.mtimeMs) || (stats === null || stats === void 0 ? void 0 : stats.ctimeMs) || 1, file, 'rename');
|
|
117
|
+
});
|
|
118
|
+
dirWatcher.on('unlink', (file) => {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
if (this.paused) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const extension = (0, path_1.extname)(file);
|
|
124
|
+
const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
125
|
+
if (!supportedExtensions.includes(extension)) {
|
|
126
|
+
debug('Detected new file remove but extension is not supported', file);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (this.deletedFiles.has(file)) {
|
|
130
|
+
debug('Skipping duplicated unlink event.');
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
debug('Detected new file remove', file);
|
|
134
|
+
this.deletedFiles.add(file);
|
|
135
|
+
(0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
|
|
136
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onRemove(dirToWatch, file, 'rename');
|
|
137
|
+
});
|
|
138
|
+
this.dirsWatchers.set(dirToWatch, dirWatcher);
|
|
139
|
+
});
|
|
140
|
+
this.paused = false;
|
|
141
|
+
return Object.assign(Object.assign({}, standardWatcher), { close: () => {
|
|
142
|
+
(0, files_change_1.clearFilesChange)(this.compiler);
|
|
143
|
+
if (standardWatcher) {
|
|
144
|
+
standardWatcher.close();
|
|
145
|
+
}
|
|
146
|
+
this.dirsWatchers.forEach((dirWatcher) => {
|
|
147
|
+
dirWatcher === null || dirWatcher === void 0 ? void 0 : dirWatcher.close();
|
|
148
|
+
});
|
|
149
|
+
this.dirsWatchers.clear();
|
|
150
|
+
this.paused = true;
|
|
151
|
+
}, pause: () => {
|
|
152
|
+
if (standardWatcher) {
|
|
153
|
+
standardWatcher.pause();
|
|
154
|
+
}
|
|
155
|
+
this.paused = true;
|
|
156
|
+
} });
|
|
157
|
+
};
|
|
158
|
+
this.dirsWatchers = new Map();
|
|
159
|
+
this.deletedFiles = new Set();
|
|
160
|
+
}
|
|
161
|
+
get watcher() {
|
|
162
|
+
var _a;
|
|
163
|
+
return this.watchFileSystem.watcher || ((_a = this.watchFileSystem.wfs) === null || _a === void 0 ? void 0 : _a.watcher);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.InclusiveNodeWatchFileSystem = InclusiveNodeWatchFileSystem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { EventEmitter } from 'events';
|
|
3
|
+
import type * as rspack from '@rspack/core';
|
|
4
|
+
interface Watchpack extends EventEmitter {
|
|
5
|
+
_onChange(item: string, mtime: number, file: string, type?: string): void;
|
|
6
|
+
_onRemove(item: string, file: string, type?: string): void;
|
|
7
|
+
}
|
|
8
|
+
declare type Watch = NonNullable<rspack.Compiler['watchFileSystem']>['watch'];
|
|
9
|
+
interface WatchFileSystem {
|
|
10
|
+
watcher?: Watchpack;
|
|
11
|
+
wfs?: {
|
|
12
|
+
watcher: Watchpack;
|
|
13
|
+
};
|
|
14
|
+
watch: Watch;
|
|
15
|
+
}
|
|
16
|
+
export { WatchFileSystem, Watchpack };
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ts-checker-rspack-plugin",
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
|
+
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rspack",
|
|
7
|
+
"plugin",
|
|
8
|
+
"typescript",
|
|
9
|
+
"typecheck"
|
|
10
|
+
],
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/rspack-contrib/ts-checker-rspack-plugin/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/rspack-contrib/ts-checker-rspack-plugin.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"files": [
|
|
20
|
+
"lib"
|
|
21
|
+
],
|
|
22
|
+
"main": "lib/index.js",
|
|
23
|
+
"types": "lib/index.d.ts",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "cross-env rimraf lib && cross-env tsc --version && cross-env tsc",
|
|
26
|
+
"lint": "echo lint",
|
|
27
|
+
"test": "yarn build && yarn test:unit && yarn test:e2e",
|
|
28
|
+
"test:unit": "cross-env jest --config=test/unit/jest.config.js",
|
|
29
|
+
"test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
|
|
30
|
+
"precommit": "yarn build && yarn test:unit",
|
|
31
|
+
"commit": "cross-env git-cz",
|
|
32
|
+
"prepare": "husky install"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/code-frame": "^7.16.7",
|
|
36
|
+
"chalk": "^4.1.2",
|
|
37
|
+
"chokidar": "^3.5.3",
|
|
38
|
+
"fs-extra": "^10.0.0",
|
|
39
|
+
"memfs": "^3.4.1",
|
|
40
|
+
"minimatch": "^3.0.4",
|
|
41
|
+
"node-abort-controller": "^3.0.1",
|
|
42
|
+
"schema-utils": "^3.1.1",
|
|
43
|
+
"semver": "^7.3.5",
|
|
44
|
+
"tapable": "^2.2.1"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@rspack/core": "^1.0.0",
|
|
48
|
+
"typescript": ">3.6.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@jest/console": "^27.0.0",
|
|
52
|
+
"@rspack/core": "^1.1.3",
|
|
53
|
+
"@types/babel__code-frame": "^7.0.3",
|
|
54
|
+
"@types/cross-spawn": "^6.0.2",
|
|
55
|
+
"@types/fs-extra": "^9.0.13",
|
|
56
|
+
"@types/jest": "^27.4.0",
|
|
57
|
+
"@types/json-schema": "^7.0.9",
|
|
58
|
+
"@types/minimatch": "^3.0.5",
|
|
59
|
+
"@types/mock-fs": "^4.13.1",
|
|
60
|
+
"@types/node": "^16.4.13",
|
|
61
|
+
"@types/rimraf": "^3.0.2",
|
|
62
|
+
"@types/semver": "^7.3.9",
|
|
63
|
+
"cross-env": "^7.0.3",
|
|
64
|
+
"git-cz": "^4.8.0",
|
|
65
|
+
"husky": "^7.0.4",
|
|
66
|
+
"jest": "^27.4.7",
|
|
67
|
+
"jest-circus": "^27.4.6",
|
|
68
|
+
"jest-environment-node": "^27.4.6",
|
|
69
|
+
"jest-runner": "^27.0.0",
|
|
70
|
+
"json-schema": "^0.4.0",
|
|
71
|
+
"karton": "^0.4.1",
|
|
72
|
+
"mock-fs": "^5.1.2",
|
|
73
|
+
"prettier": "^2.5.1",
|
|
74
|
+
"rimraf": "^3.0.2",
|
|
75
|
+
"strip-ansi": "^6.0.0",
|
|
76
|
+
"ts-jest": "^27.1.3",
|
|
77
|
+
"typescript": "^4.5.5"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=12.13.0",
|
|
81
|
+
"yarn": ">=1.0.0"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public",
|
|
85
|
+
"registry": "https://registry.npmjs.org/"
|
|
86
|
+
},
|
|
87
|
+
"packageManager": "yarn@1.22.19"
|
|
88
|
+
}
|