mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-13 12:59:07 -05:00
chore: update docs for npm directory (#22916)
* chore: add docs to npm directory * Fix binary build failure caused by non-JSON file at `/npm` * chore: simplify docs * revert * fix build Co-authored-by: Mike Plummer <mikep@cypress.io>
This commit is contained in:
@@ -68,7 +68,7 @@ export async function copyAllToDist (distDir: string) {
|
||||
// but without all negated files ("!src/**/*.spec.js" for example)
|
||||
// and default included paths
|
||||
// and convert to relative paths
|
||||
const pkgFileMasks = [].concat(json.files || []).concat(json.main || [])
|
||||
const pkgFileMasks = [].concat(json?.files || []).concat(json?.main || [])
|
||||
|
||||
debug('for pkg %s have the following file masks %o', pkg, pkgFileMasks)
|
||||
let foundFileRelativeToPackageFolder = []
|
||||
|
||||
Reference in New Issue
Block a user