Skip to content

Commit 6197b8a

Browse files
committed
fix: project build
1 parent b208bac commit 6197b8a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cli/src/find-smells.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import fs, { readdir } from 'node:fs/promises';
3-
import { SmellDetector, SupportedLanguages } from 'smelly-detector';
3+
import { Smell, SmellDetector, SupportedLanguages } from 'smelly-detector';
44
import { SmellsAggreagtor, SmellsList } from 'smelly-detector/src/reporters/Html';
55
import { join } from 'node:path';
66

@@ -60,7 +60,7 @@ async function execute() {
6060
const result = smellDetector.findAll();
6161

6262
if (result.length) {
63-
result.forEach((e) => {
63+
result.forEach((e: Smell) => {
6464
output.push({ ...e, file });
6565
});
6666
}

detector/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "smelly-detector",
33
"version": "0.0.1",
44
"description": "Find out the smells in your tests, suggestions for correction and the theory behind them",
5-
"main": "build/src/index.js",
5+
"main": "./build/src/index.js",
66
"types": "./types/src/index.d.ts",
77
"dependencies": {
88
"commander": "^12.1.0",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "",
1818
"license": "ISC",
1919
"workspaces": [
20+
"detector",
2021
"cli",
21-
"vscode",
22-
"detector"
22+
"vscode"
2323
]
2424
}

vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function generateHighlighting(context: vscode.ExtensionContext) {
148148

149149
const language = editor.document.languageId as SupportedLanguages;
150150

151-
const matches = supportedLanguages.filter(item => language.includes(item));
151+
const matches = supportedLanguages.filter((item: SupportedLanguages) => language.includes(item));
152152

153153
if (matches.length === 0) {
154154
logger.debug(`language not supported: ${language}`);

0 commit comments

Comments
 (0)