Skip to content

Commit

Permalink
chore: fix build with respect to @types/mocha (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Oct 8, 2023
1 parent 4b6f833 commit edffc52
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 14 deletions.
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2580,7 +2580,6 @@
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@types/jest": "^29.5.5",
"@types/jest-when": "^3.5.3",
"@types/node": "^18.18.3",
"@types/vscode": "1.80.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/_integrationTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/chai": "^4.3.6",
"@types/decompress": "^4.2.5",
"@types/glob": "^8.1.0",
"@types/mocha": "10.0.1",
"@types/mocha": "^10.0.2",
"@types/node": "^18.18.3",
"chai": "^4.3.10",
"cross-env": "^7.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/_server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"scripts": {
"build": "npm run build:esbuild && npm run build:api && npm run build:tsc && npm run build-schema",
"build-production": "npm run clean-build-production",
"build-schema": "node ./scripts/ts-json-schema-generator.cjs --markdown-description --no-top-ref --expose none --path src/config/cspellConfig/cspellConfig.mts --type SpellCheckerSettingsVSCode --validation-keywords markdownDescription --validation-keywords scope --validation-keywords patternErrorMessage --validation-keywords deprecationMessage --validation-keywords enumDescriptions --validation-keywords deprecated --validation-keywords order -o spell-checker-config.schema.json",
"build-schema-new": "ts-json-schema-generator/bin/ts-json-schema-generator --markdown-description --no-top-ref --expose none --path src/config/cspellConfig/cspellConfig.mts --type SpellCheckerSettingsVSCode --validation-keywords markdownDescription --validation-keywords scope --validation-keywords patternErrorMessage --validation-keywords deprecationMessage --validation-keywords enumDescriptions --validation-keywords deprecated --validation-keywords order -o spell-checker-config.schema.json",
"build-schema": "node ./scripts/ts-json-schema-generator.cjs --tsconfig=./tsconfig.schema.json --markdown-description --no-top-ref --expose none --path src/config/cspellConfig/cspellConfig.mts --type SpellCheckerSettingsVSCode --validation-keywords markdownDescription --validation-keywords scope --validation-keywords patternErrorMessage --validation-keywords deprecationMessage --validation-keywords enumDescriptions --validation-keywords deprecated --validation-keywords order -o spell-checker-config.schema.json",
"build-schema-new": "ts-json-schema-generator/bin/ts-json-schema-generator --tsconfig=./tsconfig.schema.json --markdown-description --no-top-ref --expose none --path src/config/cspellConfig/cspellConfig.mts --type SpellCheckerSettingsVSCode --validation-keywords markdownDescription --validation-keywords scope --validation-keywords patternErrorMessage --validation-keywords deprecationMessage --validation-keywords enumDescriptions --validation-keywords deprecated --validation-keywords order -o spell-checker-config.schema.json",
"build:production": "npm run build:esbuild -- --production && npm run build:api && npm run build-schema",
"build:esbuild": "node ./build.mjs",
"build:api": "npm run build:api.d.ts && npm run build:api.d.cts",
Expand Down
4 changes: 3 additions & 1 deletion packages/_server/tsconfig.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDeclarationOnly": true
"emitDeclarationOnly": true,
"skipLibCheck": true,
"types": ["node"]
},
"files": ["src/api.ts"]
}
3 changes: 2 additions & 1 deletion packages/_server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig.packages.base.json",
"compilerOptions": {
"moduleResolution": "Node16",
"outDir": "./dist"
"outDir": "./dist",
"types": ["node"]
},
"include": ["src"]
}
8 changes: 8 additions & 0 deletions packages/_server/tsconfig.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.packages.base.json",
"compilerOptions": {
"skipLibCheck": true,
"types": []
},
"include": ["src"]
}

0 comments on commit edffc52

Please sign in to comment.