mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-02 04:29:55 -06:00
Co-authored-by: Jessica Sachs <jess@jessicasachs.io> Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
26 lines
595 B
JavaScript
26 lines
595 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',
|
|
'react18',
|
|
'vue',
|
|
'vue2',
|
|
'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)
|
|
})
|