Skip to content

Commit 99e228d

Browse files
committed
chore(scripts): cleanup create-workspaces script
1 parent 9b03980 commit 99e228d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

scripts/create-workspace.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ async function createWorkspace({
256256
? 'tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs'
257257
: 'tsc -p tsconfig.json',
258258
typecheck: 'tsc -p tsconfig-lint.json --noEmit',
259-
eslint: 'eslint',
260-
prettier: 'prettier',
259+
eslint: 'eslint-compass',
260+
prettier: 'prettier-compass',
261261
lint: 'npm run eslint . && npm run prettier -- --check .',
262262
depcheck: 'compass-scripts check-peer-deps && depcheck',
263263
check: 'npm run typecheck && npm run lint && npm run depcheck',
@@ -284,10 +284,8 @@ async function createWorkspace({
284284
'@types/sinon-chai': '*',
285285
chai: '*',
286286
depcheck: '*',
287-
eslint: '*',
288287
mocha: '*',
289288
nyc: '*',
290-
prettier: '*',
291289
sinon: '*',
292290
'@mongodb-js/testing-library-compass': '*',
293291
...(isReact && {
@@ -334,14 +332,6 @@ async function createWorkspace({
334332
.join('\n');
335333
const depcheckrcContent = `ignores:\n${ignores}\nignore-patterns:\n - 'dist'\n`;
336334

337-
const prettierrcPath = path.join(packagePath, '.prettierrc.json');
338-
const prettierrcContent = JSON.stringify(
339-
'@mongodb-js/prettier-config-compass'
340-
);
341-
342-
const prettierIgnorePath = path.join(packagePath, '.prettierignore');
343-
const prettierIgnoreContent = '.nyc_output\ndist\ncoverage\n';
344-
345335
const tsconfigPath = path.join(packagePath, 'tsconfig.json');
346336
const tsconfigContent = JSON.stringify(
347337
{
@@ -434,8 +424,6 @@ describe('Compass Plugin', function() {
434424
await fs.mkdir(packagePath, { recursive: true });
435425
await fs.writeFile(packageJsonPath, packageJsonContent);
436426
await fs.writeFile(depcheckrcPath, depcheckrcContent);
437-
await fs.writeFile(prettierrcPath, prettierrcContent);
438-
await fs.writeFile(prettierIgnorePath, prettierIgnoreContent);
439427
await fs.writeFile(tsconfigPath, tsconfigContent);
440428
await fs.writeFile(tsconfigLintPath, tsconfigLintContent);
441429
await fs.writeFile(eslintrcPath, eslintrcContent);

0 commit comments

Comments
 (0)