Skip to content

Commit 8fe5971

Browse files
committed
chore(bin): update imports to use node: protocol and improve typings
Update native module imports to use the explicit `node:` protocol for clarity and compliance with current Node.js standards. chore(scripts): silence unused error variable warning Rename unused error variable to underscore-prefixed to avoid linter warnings while maintaining silent failure behavior on chmod errors. chore(tsconfig): exclude fixtures and test files from the build Exclude test and fixture files from TypeScript compilation to streamline type checking and improve build performance.
1 parent be4b924 commit 8fe5971

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

bin/lokalise-mcp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* globally, locally, or via npx.
88
*/
99

10-
import { spawn } from "child_process";
11-
import { fileURLToPath } from "url";
12-
import { dirname, join } from "path";
10+
import { spawn } from "node:child_process";
11+
import { fileURLToPath } from "node:url";
12+
import { dirname, join } from "node:path";
1313

1414
const __filename = fileURLToPath(import.meta.url);
1515
const __dirname = dirname(__filename);

scripts/ensure-executable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
if (fs.existsSync(binScript)) {
1616
try {
1717
fs.chmodSync(binScript, 0o755);
18-
} catch (err) {
18+
} catch (_err) {
1919
// Silently fail if chmod is not available (Windows, some containers)
2020
}
2121
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@
112112
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
113113
"skipLibCheck": true /* Skip type checking all .d.ts files. */
114114
},
115-
"include": ["src/**/*"]
115+
"include": ["src/**/*"],
116+
"exclude": ["**/__fixtures__/**/*", "**/*.test.ts"]
116117
}

0 commit comments

Comments
 (0)