fix: lockfile and configs

This commit is contained in:
mingholy.lmh
2025-09-15 20:50:50 +08:00
parent 3f535195b3
commit dbdb4db4f0
7 changed files with 2476 additions and 1867 deletions

View File

@@ -121,10 +121,10 @@ export default tseslint.config(
{
allow: [
'react-dom/test-utils',
'memfs/lib/node/volume.js',
'memfs/lib/volume.js',
'yargs/**',
'msw/node',
'**/generated/**',
'**/generated/**'
],
},
],

4311
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,7 +12,7 @@ import { useGitBranchName } from './useGitBranchName.js';
import { fs, vol } from 'memfs'; // For mocking fs
import { EventEmitter } from 'node:events';
import { exec as mockExec, type ChildProcess } from 'node:child_process';
import type { FSWatcher } from 'memfs/lib/node/volume.js';
import type { FSWatcher } from 'memfs/lib/volume.js';
// Mock child_process
vi.mock('child_process');

View File

@@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"lib": ["DOM", "DOM.Iterable", "ES2023"],
"lib": ["DOM", "DOM.Iterable", "ES2021"],
"composite": true,
"types": ["node", "vitest/globals"]
},

View File

@@ -12,7 +12,6 @@
* type checking error in ../../node_modules/@types/request/index.d.ts.
*/
"skipLibCheck": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */

View File

@@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'clover'],
include: ['src/**/*.ts'],
exclude: ['src/**/*.test.ts', 'src/**/*.d.ts'],
},
},
});

View File

@@ -2,6 +2,12 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: ['packages/*', 'integration-tests', 'scripts'],
projects: [
'packages/cli',
'packages/core',
'packages/vscode-ide-companion',
'integration-tests',
'scripts',
],
},
});