Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions scripts/create-workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ async function createWorkspace({
'npm run compile && compass-scripts check-exports-exist',
}),
compile: isPublic
? 'tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs'
: 'tsc -p tsconfig.json',
typecheck: 'tsc -p tsconfig-lint.json --noEmit',
? 'tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs'
: 'tsc -p tsconfig-build.json',
typecheck: 'tsc -p tsconfig.json --noEmit',
eslint: 'eslint-compass',
prettier: 'prettier-compass',
lint: 'npm run eslint . && npm run prettier -- --check .',
Expand Down Expand Up @@ -342,19 +342,19 @@ async function createWorkspace({
outDir: 'dist',
allowJs: allowJs === true ? true : undefined,
},
include: ['src/**/*'],
exclude: ['./src/**/*.spec.*'],
include: ['**/*'],
exclude: ['node_modules', 'dist'],
},
null,
2
);

const tsconfigLintPath = path.join(packagePath, 'tsconfig-lint.json');
const tsconfigLintContent = JSON.stringify(
const tsconfigBuildPath = path.join(packagePath, 'tsconfig-build.json');
const tsconfigBuildContent = JSON.stringify(
{
extends: './tsconfig.json',
include: ['**/*'],
exclude: ['node_modules', 'dist'],
include: ['src/**/*'],
exclude: ['./src/**/*.spec.*'],
},
null,
2
Expand All @@ -367,7 +367,7 @@ module.exports = {
extends: ['@mongodb-js/eslint-config-compass${isPlugin ? '/plugin' : ''}'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig-lint.json'],
project: ['./tsconfig.json'],
},
};`;

Expand Down Expand Up @@ -425,7 +425,7 @@ describe('Compass Plugin', function() {
await fs.writeFile(packageJsonPath, packageJsonContent);
await fs.writeFile(depcheckrcPath, depcheckrcContent);
await fs.writeFile(tsconfigPath, tsconfigContent);
await fs.writeFile(tsconfigLintPath, tsconfigLintContent);
await fs.writeFile(tsconfigBuildPath, tsconfigBuildContent);
await fs.writeFile(eslintrcPath, eslintrcContent);
await fs.writeFile(eslintIgnorePath, eslintIgnoreContent);
await fs.writeFile(mocharcPath, mocharcContent);
Expand Down
Loading