Skip to content

Commit bfdda54

Browse files
committed
Fix check-packages script
1 parent 7743a77 commit bfdda54

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "node --test --loader ts-node/esm tests/**/*.ts"
1111
},
1212
"dependencies": {
13-
"isomorphic-dompurify": "2.26.0",
1413
"highlight.js": "10.7.3",
14+
"isomorphic-dompurify": "2.26.0",
1515
"jsdom": "25.0.0",
1616
"marked": "14.1.2",
1717
"marked-highlight": "2.1.4",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"build": "npx lerna run build",
1616
"clean": "ts-node scripts/clean-all.ts",
17-
"check-packages": "ts-node scripts/check-packages.ts",
17+
"check-packages": "ts-node scripts/check-packages.mts",
1818
"generate-ca": "node certs/generate.mjs",
1919
"lint": "npx lerna run lint",
2020
"lintfix": "npx lerna run lintfix",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import fs from "fs";
22
import path from "path";
3+
import { fileURLToPath } from "url";
4+
import { dirname } from "path";
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
37

48
let numFoundErrors = 0;
59

0 commit comments

Comments
 (0)