@tsed/cli-plugin-eslint 6.0.0-beta.1 → 6.0.0-beta.2
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.
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { inject, Injectable, OnExec, OnPostInstall, PackageManagersModule, ProjectPackageJson, RootRendererService } from "@tsed/cli-core";
|
|
3
3
|
import { TEMPLATE_DIR } from "../utils/templateDir.js";
|
|
4
4
|
let EslintInitHook = class EslintInitHook {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.packageJson = inject(ProjectPackageJson);
|
|
7
|
+
this.packageManagers = inject(PackageManagersModule);
|
|
8
|
+
this.rootRenderer = inject(RootRendererService);
|
|
9
|
+
}
|
|
5
10
|
onExec(ctx) {
|
|
6
11
|
if (!ctx.eslint) {
|
|
7
12
|
return [];
|
|
@@ -102,18 +107,6 @@ let EslintInitHook = class EslintInitHook {
|
|
|
102
107
|
}
|
|
103
108
|
}
|
|
104
109
|
};
|
|
105
|
-
__decorate([
|
|
106
|
-
Inject(),
|
|
107
|
-
__metadata("design:type", ProjectPackageJson)
|
|
108
|
-
], EslintInitHook.prototype, "packageJson", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
Inject(),
|
|
111
|
-
__metadata("design:type", PackageManagersModule)
|
|
112
|
-
], EslintInitHook.prototype, "packageManagers", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
Inject(),
|
|
115
|
-
__metadata("design:type", RootRendererService)
|
|
116
|
-
], EslintInitHook.prototype, "rootRenderer", void 0);
|
|
117
110
|
__decorate([
|
|
118
111
|
OnExec("init"),
|
|
119
112
|
__metadata("design:type", Function),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli-plugin-eslint",
|
|
3
3
|
"description": "Ts.ED CLI plugin. Add EsLint support",
|
|
4
|
-
"version": "6.0.0-beta.
|
|
4
|
+
"version": "6.0.0-beta.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"build:ts": "tsc --build tsconfig.json"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tsed/cli": "6.0.0-beta.
|
|
23
|
-
"@tsed/cli-core": "6.0.0-beta.
|
|
24
|
-
"@tsed/typescript": "6.0.0-beta.
|
|
22
|
+
"@tsed/cli": "6.0.0-beta.2",
|
|
23
|
+
"@tsed/cli-core": "6.0.0-beta.2",
|
|
24
|
+
"@tsed/typescript": "6.0.0-beta.2",
|
|
25
25
|
"cross-env": "7.0.3",
|
|
26
26
|
"typescript": "5.6.2",
|
|
27
27
|
"vitest": "2.1.1"
|