diff --git a/site/scripts/get-cypress-packages.js b/site/scripts/get-cypress-packages.js new file mode 100644 index 000000000..549ceb897 --- /dev/null +++ b/site/scripts/get-cypress-packages.js @@ -0,0 +1,12 @@ +import { readFileSync } from 'fs' + +const packages = JSON.parse( + readFileSync(new URL('../package.json', import.meta.url).pathname) +) + +console.log('cypress@' + packages.devDependencies.cypress) +for (const key of Object.keys(packages.devDependencies).filter( + (k) => k !== 'cypress' && k.startsWith('cypress') +)) { + console.log(key + '@' + packages.devDependencies[key]) +}