@@ -253,9 +253,9 @@ async function createWorkspace({
253253 'npm run compile && compass-scripts check-exports-exist' ,
254254 } ) ,
255255 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' ,
259259 eslint : 'eslint-compass' ,
260260 prettier : 'prettier-compass' ,
261261 lint : 'npm run eslint . && npm run prettier -- --check .' ,
@@ -342,19 +342,19 @@ async function createWorkspace({
342342 outDir : 'dist' ,
343343 allowJs : allowJs === true ? true : undefined ,
344344 } ,
345- include : [ 'src/ **/*' ] ,
346- exclude : [ './src/**/*.spec.* ' ] ,
345+ include : [ '**/*' ] ,
346+ exclude : [ 'node_modules' , 'dist '] ,
347347 } ,
348348 null ,
349349 2
350350 ) ;
351351
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 (
354354 {
355355 extends : './tsconfig.json' ,
356- include : [ '**/*' ] ,
357- exclude : [ 'node_modules' , 'dist '] ,
356+ include : [ 'src/ **/*' ] ,
357+ exclude : [ './src/**/*.spec.* ' ] ,
358358 } ,
359359 null ,
360360 2
@@ -367,7 +367,7 @@ module.exports = {
367367 extends: ['@mongodb-js/eslint-config-compass${ isPlugin ? '/plugin' : '' } '],
368368 parserOptions: {
369369 tsconfigRootDir: __dirname,
370- project: ['./tsconfig-lint .json'],
370+ project: ['./tsconfig.json'],
371371 },
372372};` ;
373373
@@ -425,7 +425,7 @@ describe('Compass Plugin', function() {
425425 await fs . writeFile ( packageJsonPath , packageJsonContent ) ;
426426 await fs . writeFile ( depcheckrcPath , depcheckrcContent ) ;
427427 await fs . writeFile ( tsconfigPath , tsconfigContent ) ;
428- await fs . writeFile ( tsconfigLintPath , tsconfigLintContent ) ;
428+ await fs . writeFile ( tsconfigBuildPath , tsconfigBuildContent ) ;
429429 await fs . writeFile ( eslintrcPath , eslintrcContent ) ;
430430 await fs . writeFile ( eslintIgnorePath , eslintIgnoreContent ) ;
431431 await fs . writeFile ( mocharcPath , mocharcContent ) ;
0 commit comments