Skip to content

Commit

Permalink
fix: no idea why circleci times out
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 8, 2020
1 parent a93c076 commit c281c23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ commands:
node scripts/use-react-dist-tag
# log a patch for maintainers who want to check out this change
git diff HEAD
exit 0
- restore_cache:
keys:
- v2-yarn-sha-{{ checksum "yarn.lock" }}
Expand Down Expand Up @@ -153,6 +154,7 @@ jobs:
node scripts/use-typescript-dist-tag
# log a patch for maintainers who want to check out this change
git diff HEAD
exit 0
- install_js
- run:
name: Tests TypeScript definitions
Expand Down
3 changes: 1 addition & 2 deletions scripts/use-react-dist-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
const childProcess = require('child_process');
const fs = require('fs');
const os = require('os');
const path = require('path');
const { promisify } = require('util');

Expand Down Expand Up @@ -49,7 +48,7 @@ async function main(distTag) {
packageJson.devDependencies['enzyme-adapter-react-16'] = 'npm:@eps1lon/enzyme-adapter-react-next';

// CircleCI seemingly times out if it has a newline diff at the end
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}${os.EOL}`);
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
}

main(process.env.REACT_DIST_TAG).catch((error) => {
Expand Down
4 changes: 1 addition & 3 deletions scripts/use-typescript-dist-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
const childProcess = require('child_process');
const fs = require('fs');
const os = require('os');
const path = require('path');
const { promisify } = require('util');

Expand Down Expand Up @@ -44,8 +43,7 @@ async function main(distTag) {
packageJson.devDependencies.typescript = version;
packageJson.resolutions['**/dtslint/typescript'] = version;

// CircleCI seemingly times out if it has a newline diff at the end
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}${os.EOL}`);
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
}

main(process.env.TYPESCRIPT_DIST_TAG).catch((error) => {
Expand Down

0 comments on commit c281c23

Please sign in to comment.