@markuplint/file-resolver 3.6.1 → 3.8.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/config-provider.d.ts +8 -8
- package/lib/types.d.ts +20 -18
- package/package.json +5 -5
package/lib/config-provider.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import type { ConfigSet } from './types';
|
|
|
3
3
|
import type { Config } from '@markuplint/ml-config';
|
|
4
4
|
import type { Nullable } from '@markuplint/shared';
|
|
5
5
|
export declare class ConfigProvider {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
#private;
|
|
7
|
+
resolve(targetFile: Readonly<MLFile>, names: readonly Nullable<string>[], cache?: boolean): Promise<ConfigSet>;
|
|
8
|
+
search(targetFile: Readonly<MLFile>): Promise<string | null>;
|
|
9
|
+
set(config: Config, key?: string): string;
|
|
10
|
+
private _load;
|
|
11
|
+
private _mergeConfigs;
|
|
12
|
+
private _pathResolve;
|
|
13
|
+
private _recursiveLoad;
|
|
14
14
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import type { Config } from '@markuplint/ml-config';
|
|
2
2
|
import type { Plugin } from '@markuplint/ml-core';
|
|
3
3
|
export interface ConfigSet {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
readonly config: Config;
|
|
5
|
+
readonly plugins: readonly Plugin[];
|
|
6
|
+
readonly files: ReadonlySet<string>;
|
|
7
|
+
readonly errs: readonly Readonly<Error>[];
|
|
8
8
|
}
|
|
9
|
-
export type Target =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
export type Target =
|
|
10
|
+
| string
|
|
11
|
+
| {
|
|
12
|
+
/**
|
|
13
|
+
* Target source code of evaluation
|
|
14
|
+
*/
|
|
15
|
+
readonly sourceCode: string;
|
|
16
|
+
/**
|
|
17
|
+
* File names when `sourceCodes`
|
|
18
|
+
*/
|
|
19
|
+
readonly name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Workspace path when `sourceCodes`
|
|
22
|
+
*/
|
|
23
|
+
readonly workspace?: string;
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/file-resolver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "The file resolver of markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@markuplint/html-parser": "3.6.1",
|
|
28
28
|
"@markuplint/ml-ast": "3.1.0",
|
|
29
|
-
"@markuplint/ml-config": "3.
|
|
30
|
-
"@markuplint/ml-core": "3.
|
|
31
|
-
"@markuplint/ml-spec": "3.
|
|
29
|
+
"@markuplint/ml-config": "3.7.0",
|
|
30
|
+
"@markuplint/ml-core": "3.8.0",
|
|
31
|
+
"@markuplint/ml-spec": "3.7.0",
|
|
32
32
|
"@markuplint/shared": "3.5.0",
|
|
33
33
|
"cosmiconfig": "^8.0.0",
|
|
34
34
|
"glob": "^8.0.3",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"minimatch": "^5.1.1",
|
|
37
37
|
"tslib": "^2.4.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "42b97b47d22b37437024e693a72a458e2963e261"
|
|
40
40
|
}
|