Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
refactor: remove mkdirp dependency in favor of native node function
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter committed Jan 27, 2020
1 parent e210e40 commit 98dcad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"is-plain-obj": "^2.0.0",
"lerna": "^3.17.0",
"lint-staged": "^10.0.0",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"prettier": "1.18.2",
"puppeteer": "^2.0.0",
Expand Down Expand Up @@ -151,4 +150,4 @@
"pre-commit": "lint-staged"
}
}
}
}
5 changes: 2 additions & 3 deletions tests/helpers/prepare.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { join } = require('path');
const { writeFileSync } = require('fs');
const { writeFileSync, mkdirSync } = require('fs');

const { sync: mkdirp } = require('mkdirp');
const supertest = require('supertest');

const run = require('./run');
Expand All @@ -11,7 +10,7 @@ const { normalizeResponse, normalizeArgTypes } = require('./normalize');
const prepareDir = (rootDir) => {
const distDir = join(rootDir, 'dist');
const indexFile = join(distDir, 'index.html');
mkdirp(distDir);
mkdirSync(distDir, { recursive: true });
writeFileSync(indexFile, '<h3>meep</h3>');
};

Expand Down

0 comments on commit 98dcad5

Please sign in to comment.