mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
feat: Add vue2 package from npm/vue/v2 branch (#21026)
* Add vue2 package from npm/vue/v2 branch * Add vue2 as automatic export * remove npm/vue2/examples * remove cypress directory from vue2 * fix: ordering of build scripts * remove unneeded files from output, name module cypress-vue2 / CypressVue2 * fix types package resolution Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ const npmModulesToCopy = [
|
||||
'mount-utils',
|
||||
'react',
|
||||
'vue',
|
||||
'vue2',
|
||||
]
|
||||
|
||||
npmModulesToCopy.forEach((folder) => {
|
||||
|
||||
@@ -23,7 +23,7 @@ shell.set('-e') // any error is fatal
|
||||
fs.ensureDirSync(join(__dirname, '..', 'types'))
|
||||
|
||||
includeTypes.forEach((folder) => {
|
||||
const source = resolvePkg(`@types/${folder}`, { cwd: join(__dirname, '..', '..') })
|
||||
const source = resolvePkg(`@types/${folder}`, { cwd: __dirname })
|
||||
|
||||
fs.copySync(source, join(__dirname, '..', 'types', folder))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user