diff --git a/integrationTests/integration-test.js b/integrationTests/integration-test.js index 6f3d40cc88..2f2c90e8fe 100644 --- a/integrationTests/integration-test.js +++ b/integrationTests/integration-test.js @@ -17,7 +17,7 @@ function exec(command, options = {}) { describe('Integration Tests', () => { const tmpDir = path.join(os.tmpdir(), 'graphql-js-integrationTmp'); - fs.rmdirSync(tmpDir, { recursive: true, force: true }); + fs.rmSync(tmpDir, { recursive: true, force: true }); fs.mkdirSync(tmpDir); const distDir = path.resolve('./npmDist'); diff --git a/resources/build-npm.js b/resources/build-npm.js index 39b5738cb1..e0494eb487 100644 --- a/resources/build-npm.js +++ b/resources/build-npm.js @@ -9,7 +9,7 @@ const babel = require('@babel/core'); const { readdirRecursive, showDirStats } = require('./utils'); if (require.main === module) { - fs.rmdirSync('./npmDist', { recursive: true, force: true }); + fs.rmSync('./npmDist', { recursive: true, force: true }); fs.mkdirSync('./npmDist'); const srcFiles = readdirRecursive('./src', { ignoreDir: /^__.*__$/ });