Skip to content

Commit

Permalink
Reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 18, 2023
1 parent 0b095cc commit af6a666
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/size-limit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"ci-job-number": "^1.2.2",
"globby": "^11.1.0",
"lilconfig": "^2.0.6",
"mkdirp": "^1.0.4",
"nanospinner": "^1.1.0",
"picocolors": "^1.0.0"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/size-limit/process-import.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
let { writeFile } = require('fs').promises
let { writeFile, mkdir } = require('fs').promises
let { join } = require('path')
let mkdirp = require('mkdirp')

module.exports = async function processImport(check, output) {
if (!check.import) {
Expand All @@ -20,7 +19,7 @@ module.exports = async function processImport(check, output) {
loader +=
`import ${imports} from ${JSON.stringify(i)}\n` + `console.log(${list})\n`
}
await mkdirp(output)
await mkdir(output, { recursive: true })
let entry = join(output, 'index.js')
await writeFile(entry, loader)
check.files = entry
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

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

0 comments on commit af6a666

Please sign in to comment.