Skip to content

Commit c281c23

Browse files
committed
fix: no idea why circleci times out
1 parent a93c076 commit c281c23

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ commands:
3535
node scripts/use-react-dist-tag
3636
# log a patch for maintainers who want to check out this change
3737
git diff HEAD
38+
exit 0
3839
- restore_cache:
3940
keys:
4041
- v2-yarn-sha-{{ checksum "yarn.lock" }}
@@ -153,6 +154,7 @@ jobs:
153154
node scripts/use-typescript-dist-tag
154155
# log a patch for maintainers who want to check out this change
155156
git diff HEAD
157+
exit 0
156158
- install_js
157159
- run:
158160
name: Tests TypeScript definitions

scripts/use-react-dist-tag.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
const childProcess = require('child_process');
1111
const fs = require('fs');
12-
const os = require('os');
1312
const path = require('path');
1413
const { promisify } = require('util');
1514

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

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

5554
main(process.env.REACT_DIST_TAG).catch((error) => {

scripts/use-typescript-dist-tag.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
const childProcess = require('child_process');
1313
const fs = require('fs');
14-
const os = require('os');
1514
const path = require('path');
1615
const { promisify } = require('util');
1716

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

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

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

0 commit comments

Comments
 (0)