@typescript-eslint/project-service 8.52.1-alpha.0 → 8.52.1-alpha.10
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.
|
@@ -41,6 +41,12 @@ export interface CreateProjectServiceSettings {
|
|
|
41
41
|
* Root directory for the tsconfig.json file, if not the current directory.
|
|
42
42
|
*/
|
|
43
43
|
tsconfigRootDir?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Custom project service host.
|
|
46
|
+
*
|
|
47
|
+
* @default `ts.sys` with stub watchers
|
|
48
|
+
*/
|
|
49
|
+
host?: Partial<ts.server.ServerHost>;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* Creates a new Project Service instance, as well as metadata on its creation.
|
|
@@ -55,5 +61,5 @@ export interface CreateProjectServiceSettings {
|
|
|
55
61
|
* service.openClientFile('index.ts');
|
|
56
62
|
* ```
|
|
57
63
|
*/
|
|
58
|
-
export declare function createProjectService({ jsDocParsingMode, options: optionsRaw, tsconfigRootDir, }?: CreateProjectServiceSettings): ProjectServiceAndMetadata;
|
|
64
|
+
export declare function createProjectService({ host, jsDocParsingMode, options: optionsRaw, tsconfigRootDir, }?: CreateProjectServiceSettings): ProjectServiceAndMetadata;
|
|
59
65
|
export { type ProjectServiceOptions } from '@typescript-eslint/types';
|
|
@@ -31,7 +31,7 @@ const createStubFileWatcher = () => ({
|
|
|
31
31
|
* service.openClientFile('index.ts');
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
function createProjectService({ jsDocParsingMode, options: optionsRaw = {}, tsconfigRootDir, } = {}) {
|
|
34
|
+
function createProjectService({ host, jsDocParsingMode, options: optionsRaw = {}, tsconfigRootDir, } = {}) {
|
|
35
35
|
const options = {
|
|
36
36
|
defaultProject: 'tsconfig.json',
|
|
37
37
|
...optionsRaw,
|
|
@@ -62,6 +62,7 @@ function createProjectService({ jsDocParsingMode, options: optionsRaw = {}, tsco
|
|
|
62
62
|
module: undefined,
|
|
63
63
|
}),
|
|
64
64
|
}),
|
|
65
|
+
...host,
|
|
65
66
|
};
|
|
66
67
|
const logger = {
|
|
67
68
|
close: doNothing,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/project-service",
|
|
3
|
-
"version": "8.52.1-alpha.
|
|
3
|
+
"version": "8.52.1-alpha.10",
|
|
4
4
|
"description": "Standalone TypeScript project service wrapper for linting.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"typescript": ">=4.8.4 <6.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@typescript-eslint/tsconfig-utils": "^8.52.1-alpha.
|
|
53
|
-
"@typescript-eslint/types": "^8.52.1-alpha.
|
|
52
|
+
"@typescript-eslint/tsconfig-utils": "^8.52.1-alpha.10",
|
|
53
|
+
"@typescript-eslint/types": "^8.52.1-alpha.10",
|
|
54
54
|
"debug": "^4.4.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|