Skip to content

Commit

Permalink
Update rimraf and glob to latest major (#7500)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Apr 10, 2023
1 parent 4f850e4 commit 3307b72
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 52 deletions.
122 changes: 76 additions & 46 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"eslint": "8.38.0",
"eslint-plugin-import": "2.27.5",
"express": "4.18.2",
"glob": "9.3.5",
"glob": "10.0.0",
"graphql": "16.6.0",
"graphql-tag": "2.12.6",
"jest": "29.5.0",
Expand All @@ -97,7 +97,7 @@
"prettier": "2.8.7",
"qs-middleware": "1.0.3",
"requisition": "1.7.0",
"rimraf": "4.4.1",
"rimraf": "5.0.0",
"rollup": "3.20.2",
"supertest": "6.3.3",
"test-listen": "1.1.0",
Expand Down
7 changes: 3 additions & 4 deletions scripts/postcompile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@

import path from 'path';
import { writeFileSync } from 'fs';
import rimraf from 'rimraf';
import glob from 'glob';
import { rimraf } from 'rimraf';
import { glob } from 'glob';

/**
* @type Promise<void> | undefined
* @type Promise<boolean> | undefined
*/
let rimrafPromise;
// Remove CJS .d.ts files: we don't need two copies!
try {
const matches = await glob(`packages/*/dist/cjs/**/*.d.ts`);
console.log(matches);
rimrafPromise = rimraf(matches);
} catch (err) {
process.exit(1);
Expand Down

0 comments on commit 3307b72

Please sign in to comment.