From 462829bea1d903b0f1666d4ef2dd85e56636b725 Mon Sep 17 00:00:00 2001 From: Jessica Sachs Date: Fri, 30 Oct 2020 12:44:45 -0400 Subject: [PATCH] fix: adding build-prod tasks to all of the npm dependencies that need artifacts (#9046) --- .gitignore | 1 + npm/react/package.json | 3 ++- npm/vue/package.json | 3 ++- npm/webpack-preprocessor/package.json | 2 +- scripts/npm-release.js | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ea29a8ad6003..c6889fcd6245 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ cli/visual-snapshots # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff +.idea .idea/**/workspace.xml .idea/**/tasks.xml .idea/**/usage.statistics.xml diff --git a/npm/react/package.json b/npm/react/package.json index b13205605c35..1cdc3e6eabc5 100644 --- a/npm/react/package.json +++ b/npm/react/package.json @@ -5,6 +5,7 @@ "main": "dist", "scripts": { "build": "rimraf dist && yarn transpile && yarn transpile:bin && yarn build:dist-package", + "build-prod": "yarn build", "build:dist-package": "node scripts/prepareDistPackage.js && ncp ./plugins ./dist/plugins", "check:links": "find . -type f -name 'README.md' ! -path './node_modules/*' | xargs -L1 npx markdown-link-check --quiet", "cy:open": "node ../../scripts/cypress open", @@ -131,7 +132,7 @@ }, "homepage": "https://on.cypress.io/component-testing", "author": "Gleb Bahmutov ", - "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=JessicaSachs&labels=experiment%3A+component+testing,npm%3A%20%40cypress%2Freact&template=bug-report.md", + "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Freact&template=1-bug-report.md&title=", "keywords": [ "react", "cypress", diff --git a/npm/vue/package.json b/npm/vue/package.json index 36b2fc39b159..0b3967dfc14e 100644 --- a/npm/vue/package.json +++ b/npm/vue/package.json @@ -5,6 +5,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", + "build-prod": "yarn build", "build:watch": "tsc --watch", "cy:open": "node ../../scripts/cypress open", "cy:run": "node ../../scripts/cypress run", @@ -66,7 +67,7 @@ }, "homepage": "https://on.cypress.io/component-testing", "author": "Gleb Bahmutov ", - "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=JessicaSachs&labels=experiment%3A+component+testing,npm%3A%20%40cypress%2Fvue&template=bug-report.md", + "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=", "keywords": [ "cypress", "vue" diff --git a/npm/webpack-preprocessor/package.json b/npm/webpack-preprocessor/package.json index 98baabf86a16..e072bedff9a0 100644 --- a/npm/webpack-preprocessor/package.json +++ b/npm/webpack-preprocessor/package.json @@ -83,7 +83,7 @@ }, "homepage": "https://github.com/cypress-io/cypress/tree/master/npm/webpack-preprocessor#readme", "author": "Chris Breiding ", - "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A %40cypress%2Fwebpack-preprocessor&template=bug-report.md", + "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fwebpack-preprocessor&template=1-bug-report.md&title=", "keywords": [ "cypress", "cypress-plugin", diff --git a/scripts/npm-release.js b/scripts/npm-release.js index d18fbb898905..4442921e9262 100644 --- a/scripts/npm-release.js +++ b/scripts/npm-release.js @@ -148,7 +148,7 @@ const waitOnTests = async (names, packageInfo) => { console.log(`\nWaiting on the following CI jobs: ${jobs.join(', ')}`) return Promise.all(jobs.map((job) => { - waitForJobToPass(job) + return Promise.resolve(waitForJobToPass(job)) .timeout(minutes(60)) .then(() => { console.log(`${job} passed`)