mirror of
https://github.com/cypress-io/cypress.git
synced 2025-12-30 11:09:49 -06:00
* breaking: remove support for react 16 and 17 for component testing and move cypress/react18 upstream into cypress/react [run ci] * update tests / suggestions from code review [run ci]
24 lines
572 B
JavaScript
24 lines
572 B
JavaScript
const shell = require('shelljs')
|
|
const { resolve } = require('path')
|
|
|
|
shell.set('-v') // verbose
|
|
shell.set('-e') // any error is fatal
|
|
|
|
// For each npm package that is re-published via cypress/*
|
|
// make sure that it is also copied into the build directory
|
|
const npmModulesToCopy = [
|
|
'mount-utils',
|
|
'react',
|
|
'vue',
|
|
'angular',
|
|
'svelte',
|
|
]
|
|
|
|
npmModulesToCopy.forEach((folder) => {
|
|
// cli/mount-utils => cli/build/mount-utils
|
|
const from = resolve(`${__dirname}/../${folder}`)
|
|
const to = resolve(`${__dirname}/../build/${folder}`)
|
|
|
|
shell.cp('-R', from, to)
|
|
})
|