Skip to content

Commit

Permalink
chore(browserify): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 2, 2023
1 parent d7015be commit 0f1aa6c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/browserify/test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,6 @@ module.exports = {
createBrowserifyScenarioFromScaffold,
}

async function copyFolder(from, to, opts = {skip: []}) {
await fs.mkdir(to, { recursive: true })
const elements = await fs.readdir(from)
for (const element of elements) {
if (opts.skip.includes(element)) {
continue
}
const f = path.join(from, element), t = path.join(to, element)
const stat = await fs.lstat(f)
if (stat.isFile()) {
await fs.copyFile(f, t)
} else {
await copyFolder(f, t, opts)
}
}
}

function overrideDepsWithLocalPackages({projectDir, globalDir}) {
for (const [dirName, name] of Object.entries(localLavaMoatDeps)) {
const src = path.resolve(__dirname, '..', '..', dirName)
Expand Down Expand Up @@ -191,10 +174,6 @@ async function prepareBrowserifyScenarioOnDisk ({ scenario }) {
// we copy files first so that we dont attempt to install the immaginary deps
const { policyDir } = await prepareScenarioOnDisk({ scenario, projectDir, policyName: 'browserify' })
// copy browserify build runner
const paths = {
normal: `${__dirname}/fixtures/runBrowserify.js`,
factor: `${__dirname}/fixtures/runBrowserifyBundleFactor.js`,
}
await fs.copyFile(runBrowserifyPath, path.join(projectDir, 'runBrowserify.js'))
return { projectDir, policyDir }
}
Expand Down

0 comments on commit 0f1aa6c

Please sign in to comment.