Skip to content

Commit eaa2330

Browse files
committed
fix(lint): resolve import and tsconfig issues causing CI failures
- Fix scripts/update.mjs to use local parseArgs utility instead of package import - Add vitest.config.ts to tsconfig.test.json include array to satisfy ESLint TypeScript parser The update script was incorrectly importing from @socketsecurity/lib/argv/parse which doesn't exist until after the package is built. Changed to use the local scripts/utils/parse-args.mjs utility instead. The ESLint TypeScript parser requires all linted TypeScript files to be included in a tsconfig project. Added vitest.config.ts to the test config's include array.
1 parent 46d5af2 commit eaa2330

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

scripts/update.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ import { existsSync } from 'node:fs'
88
import path from 'node:path'
99
import { fileURLToPath } from 'node:url'
1010

11-
import { parseArgs } from '@socketsecurity/lib/argv/parse'
12-
1311
import { log, printFooter, printHeader } from './utils/cli-helpers.mjs'
12+
import { parseArgs } from './utils/parse-args.mjs'
1413

1514
const __dirname = path.dirname(fileURLToPath(import.meta.url))
1615
const rootPath = path.join(__dirname, '..')

tsconfig.test.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"rootDir": ".",
55
"types": ["node", "vitest"]
66
},
7-
"include": ["test/**/*.ts", "test/**/*.mts", "src/**/*.ts"],
7+
"include": [
8+
"test/**/*.ts",
9+
"test/**/*.mts",
10+
"src/**/*.ts",
11+
"vitest.config.ts"
12+
],
813
"exclude": ["node_modules", "dist/**/*"]
914
}

0 commit comments

Comments
 (0)