chore: add linting to the scripts directory (#26197)

This commit is contained in:
Ryan Manuel
2023-03-23 17:00:56 +00:00
committed by GitHub
parent 415b93465c
commit 0a4550ea0c
37 changed files with 6 additions and 59 deletions
-3
View File
@@ -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