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:
Lachlan Miller
2022-07-28 11:47:37 +10:00
committed by GitHub
parent 72078ef3d2
commit a710aaf154
3 changed files with 11 additions and 3 deletions

View File

@@ -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 = []