mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 13:30:26 -05:00
upgrade jQuery types to 3.3.31 to pass TS 3.6.2 check (#5230)
This commit is contained in:
committed by
Brian Mann
parent
53506c698f
commit
b6996bd93c
+1
-1
@@ -63,7 +63,7 @@
|
||||
"@types/bluebird": "3.5.18",
|
||||
"@types/chai": "4.0.8",
|
||||
"@types/chai-jquery": "1.1.38",
|
||||
"@types/jquery": "3.3.6",
|
||||
"@types/jquery": "3.3.31",
|
||||
"@types/lodash": "4.14.122",
|
||||
"@types/minimatch": "3.0.3",
|
||||
"@types/mocha": "5.2.7",
|
||||
|
||||
@@ -20,6 +20,12 @@ includeTypes.forEach((folder) => {
|
||||
shell.cp('-R', source, 'types')
|
||||
})
|
||||
|
||||
// jQuery v3.3.x includes "dist" folder that just references back to itself
|
||||
// causing dtslint to think there are double definitions. Remove that folder.
|
||||
const typesJqueryDistFolder = join('types', 'jquery', 'dist')
|
||||
|
||||
shell.rm('-rf', typesJqueryDistFolder)
|
||||
|
||||
// fix paths to Chai, jQuery and other types to be relative
|
||||
shell.sed(
|
||||
'-i',
|
||||
|
||||
Reference in New Issue
Block a user