@@ -253,9 +253,9 @@ async function createWorkspace({
253
253
'npm run compile && compass-scripts check-exports-exist' ,
254
254
} ) ,
255
255
compile : isPublic
256
- ? 'tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs'
257
- : 'tsc -p tsconfig.json' ,
258
- typecheck : 'tsc -p tsconfig-lint .json --noEmit' ,
256
+ ? 'tsc -p tsconfig-build .json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs'
257
+ : 'tsc -p tsconfig-build .json' ,
258
+ typecheck : 'tsc -p tsconfig.json --noEmit' ,
259
259
eslint : 'eslint-compass' ,
260
260
prettier : 'prettier-compass' ,
261
261
lint : 'npm run eslint . && npm run prettier -- --check .' ,
@@ -342,19 +342,19 @@ async function createWorkspace({
342
342
outDir : 'dist' ,
343
343
allowJs : allowJs === true ? true : undefined ,
344
344
} ,
345
- include : [ 'src/ **/*' ] ,
346
- exclude : [ './src/**/*.spec.* ' ] ,
345
+ include : [ '**/*' ] ,
346
+ exclude : [ 'node_modules' , 'dist '] ,
347
347
} ,
348
348
null ,
349
349
2
350
350
) ;
351
351
352
- const tsconfigLintPath = path . join ( packagePath , 'tsconfig-lint .json' ) ;
353
- const tsconfigLintContent = JSON . stringify (
352
+ const tsconfigBuildPath = path . join ( packagePath , 'tsconfig-build .json' ) ;
353
+ const tsconfigBuildContent = JSON . stringify (
354
354
{
355
355
extends : './tsconfig.json' ,
356
- include : [ '**/*' ] ,
357
- exclude : [ 'node_modules' , 'dist '] ,
356
+ include : [ 'src/ **/*' ] ,
357
+ exclude : [ './src/**/*.spec.* ' ] ,
358
358
} ,
359
359
null ,
360
360
2
@@ -367,7 +367,7 @@ module.exports = {
367
367
extends: ['@mongodb-js/eslint-config-compass${ isPlugin ? '/plugin' : '' } '],
368
368
parserOptions: {
369
369
tsconfigRootDir: __dirname,
370
- project: ['./tsconfig-lint .json'],
370
+ project: ['./tsconfig.json'],
371
371
},
372
372
};` ;
373
373
@@ -425,7 +425,7 @@ describe('Compass Plugin', function() {
425
425
await fs . writeFile ( packageJsonPath , packageJsonContent ) ;
426
426
await fs . writeFile ( depcheckrcPath , depcheckrcContent ) ;
427
427
await fs . writeFile ( tsconfigPath , tsconfigContent ) ;
428
- await fs . writeFile ( tsconfigLintPath , tsconfigLintContent ) ;
428
+ await fs . writeFile ( tsconfigBuildPath , tsconfigBuildContent ) ;
429
429
await fs . writeFile ( eslintrcPath , eslintrcContent ) ;
430
430
await fs . writeFile ( eslintIgnorePath , eslintIgnoreContent ) ;
431
431
await fs . writeFile ( mocharcPath , mocharcContent ) ;
0 commit comments