Skip to content

Commit

Permalink
Fix webpack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Nov 20, 2021
1 parent 00d15bd commit a2c3255
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"main": "index.js",
"scripts": {
"clean": "node ./scripts/clean.js",
"prebuild": "yarn postinstall && node ./scripts/start-build.js",
"build": "node ./scripts/build.js",
"dtslint": "dtslint types",
Expand Down
8 changes: 8 additions & 0 deletions cli/scripts/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const shelljs = require('shelljs')
const { includeTypes } = require('./utils')

shelljs.rm('-rf', 'build')

includeTypes.map((m) => {
shelljs.rm('-rf', `types/${m}`)
})
4 changes: 3 additions & 1 deletion cli/scripts/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ filesToUncomment.forEach((file) => {
const filePath = join(__dirname, '../types', file)
const str = fs.readFileSync(filePath).toString()

const result = str.split('\n').map((line) => line.substring(3)).join('\n')
const result = str.split('\n').map((line) => {
return line.startsWith('// ') ? line.substring(3) : line
}).join('\n')

fs.writeFileSync(filePath, result)
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"effective:circle:config": "circleci config process circle.yml | sed /^#/d",
"ensure-deps": "./scripts/ensure-dependencies.sh",
"get-next-version": "node scripts/get-next-version.js",
"postinstall": "yarn-deduplicate --strategy=highest && patch-package && ./scripts/run-if-not-ci.sh yarn build",
"postinstall": "patch-package && ./scripts/run-if-not-ci.sh yarn-deduplicate --strategy=highest && ./scripts/run-if-not-ci.sh yarn build",
"jscodeshift": "jscodeshift -t ./node_modules/js-codemod/transforms/arrow-function-arguments.js",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json .",
"lint-changed": "lint-changed",
Expand Down

1 comment on commit a2c3255

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on a2c3255 Nov 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/9.0.1/circle-tgriesser/build/root-yarn-install-a2c32556502ef272f3c7a8a78ba2347297662858/cypress.tgz

Please sign in to comment.