@rsdoctor/core 0.2.2 → 0.2.3-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.
|
@@ -2,9 +2,9 @@ import type { RsdoctorWebpackSDK } from '@rsdoctor/sdk';
|
|
|
2
2
|
import type { Linter, Plugin } from '@rsdoctor/types';
|
|
3
3
|
import type { InternalPlugin, RsdoctorPluginInstance } from '../../types';
|
|
4
4
|
export declare abstract class InternalBasePlugin<T extends Plugin.BaseCompiler> implements InternalPlugin<T, Linter.ExtendRuleData[]> {
|
|
5
|
-
readonly scheduler: RsdoctorPluginInstance<
|
|
5
|
+
readonly scheduler: RsdoctorPluginInstance<T, Linter.ExtendRuleData[]>;
|
|
6
6
|
abstract name: string;
|
|
7
|
-
constructor(scheduler: RsdoctorPluginInstance<
|
|
7
|
+
constructor(scheduler: RsdoctorPluginInstance<T, Linter.ExtendRuleData[]>);
|
|
8
8
|
abstract apply(compiler: T): void;
|
|
9
9
|
get options(): import("@/types").RsdoctorPluginOptionsNormalized<Linter.ExtendRuleData<any, string>[]>;
|
|
10
10
|
get sdk(): RsdoctorWebpackSDK;
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import type { Linter as LinterType, Common, Plugin, SDK } from '@rsdoctor/types'
|
|
|
2
2
|
import type { RsdoctorSlaveSDK, RsdoctorWebpackSDK } from '@rsdoctor/sdk';
|
|
3
3
|
import { ChunkGraph, ModuleGraph } from '@rsdoctor/graph';
|
|
4
4
|
import { rules } from '../rules/rules';
|
|
5
|
-
|
|
6
|
-
type InternalRules = (typeof rules)[number] & RuleData[];
|
|
5
|
+
type InternalRules = Common.UnionToTuple<(typeof rules)[number]>;
|
|
7
6
|
export interface RsdoctorWebpackPluginOptions<Rules extends LinterType.ExtendRuleData[]> {
|
|
8
7
|
/** Checker configuration */
|
|
9
8
|
linter?: LinterType.Options<Rules, InternalRules>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"semver": "^7.5.4",
|
|
73
73
|
"source-map": "^0.7.4",
|
|
74
74
|
"webpack-bundle-analyzer": "^4.9.1",
|
|
75
|
-
"@rsdoctor/graph": "0.2.
|
|
76
|
-
"@rsdoctor/sdk": "0.2.
|
|
77
|
-
"@rsdoctor/utils": "0.2.
|
|
75
|
+
"@rsdoctor/graph": "0.2.3-beta.0",
|
|
76
|
+
"@rsdoctor/sdk": "0.2.3-beta.0",
|
|
77
|
+
"@rsdoctor/utils": "0.2.3-beta.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@rspack/core": "0.5.1",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"tslib": "2.4.1",
|
|
95
95
|
"typescript": "^5.2.2",
|
|
96
96
|
"webpack": "^5.89.0",
|
|
97
|
-
"@rsdoctor/types": "0.2.
|
|
97
|
+
"@rsdoctor/types": "0.2.3-beta.0",
|
|
98
98
|
"@scripts/test-helper": "0.1.1"
|
|
99
99
|
},
|
|
100
100
|
"publishConfig": {
|