mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-12 18:29:53 -05:00
chore: add linting to the scripts directory (#26197)
This commit is contained in:
@@ -132,12 +132,10 @@ const createServerEntryPointBundle = async (buildAppDir) => {
|
||||
],
|
||||
})
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`copying server entry point bundle from ${path.join(workingDir, 'index.js')} to ${path.join(buildAppDir, 'packages', 'server', 'index.js')}`)
|
||||
|
||||
await fs.copy(path.join(workingDir, 'index.js'), path.join(buildAppDir, 'packages', 'server', 'index.js'))
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`compiling server entry point bundle to ${path.join(buildAppDir, 'packages', 'server', 'index.jsc')}`)
|
||||
|
||||
// Use bytenode to compile the entry point bundle. This will save time on the v8 compile step and ensure the integrity of the entry point
|
||||
@@ -171,7 +169,6 @@ const buildEntryPointAndCleanup = async (buildAppDir) => {
|
||||
...serverEntryPointBundleDependencies,
|
||||
]
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`potentially removing ${potentiallyRemovedDependencies.length} dependencies`)
|
||||
|
||||
// 4. Remove all dependencies that are in the snapshot but not in the list of kept dependencies from the binary
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-console */
|
||||
// store the cwd
|
||||
const cwd = process.cwd()
|
||||
|
||||
|
||||
@@ -22,11 +22,8 @@ const rewritePackageNames = (fileStr, buildRoot, filePath, onFound) => {
|
||||
|
||||
const replaceString = `${match[1]}${replaceWith}${afterPkg}`
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log()
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('resolve:', chalk.grey(pkgPath), '\nfrom:', chalk.grey(filePath))
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(chalk.yellow(`@packages/${pkg}`), '->', chalk.green(replaceWith))
|
||||
|
||||
onFound && onFound(replaceString)
|
||||
|
||||
Reference in New Issue
Block a user