Yarn start is hanging

Summary: Fixed hanging on "yarn start"

Reviewed By: passy, cekkaewnumchai

Differential Revision: D20158451

fbshipit-source-id: 0aa834e33ce622cc264005d0648546608f208d07
This commit is contained in:
Anton Nikolaev
2020-02-28 04:06:25 -08:00
committed by Facebook Github Bot
parent 74e1376089
commit 58225fe113
7 changed files with 47 additions and 45 deletions

View File

@@ -111,7 +111,7 @@
"@types/socket.io": "^2.1.4", "@types/socket.io": "^2.1.4",
"@types/testing-library__react": "^9.1.2", "@types/testing-library__react": "^9.1.2",
"@types/tmp": "^0.1.0", "@types/tmp": "^0.1.0",
"@types/uuid": "^3.4.5", "@types/uuid": "^7.0.0",
"@types/ws": "^7.2.0", "@types/ws": "^7.2.0",
"@types/yazl": "^2.4.2", "@types/yazl": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/eslint-plugin": "^2.19.2",
@@ -215,7 +215,7 @@
"socket.io": "^2.0.4", "socket.io": "^2.0.4",
"string-natural-compare": "^3.0.0", "string-natural-compare": "^3.0.0",
"tmp": "0.0.33", "tmp": "0.0.33",
"uuid": "^7.0.0", "uuid": "^7.0.1",
"websocket": "^1.0.31", "websocket": "^1.0.31",
"which": "^2.0.1", "which": "^2.0.1",
"ws": "^7.2.0", "ws": "^7.2.0",

View File

@@ -14,7 +14,7 @@ import JSONStream from 'JSONStream';
import {Transform} from 'stream'; import {Transform} from 'stream';
import electron from 'electron'; import electron from 'electron';
import fs from 'fs'; import fs from 'fs';
import uuid from 'uuid/v1'; import {v1 as uuid} from 'uuid';
import path from 'path'; import path from 'path';
import {promisify} from 'util'; import {promisify} from 'util';
import {exec} from 'child_process'; import {exec} from 'child_process';

View File

@@ -8,7 +8,7 @@
*/ */
import {remote} from 'electron'; import {remote} from 'electron';
import uuidv1 from 'uuid/v1'; import {v1 as uuidv1} from 'uuid';
import {ReactElement} from 'react'; import {ReactElement} from 'react';
import CancellableExportStatus from '../chrome/CancellableExportStatus'; import CancellableExportStatus from '../chrome/CancellableExportStatus';
import {Actions} from './'; import {Actions} from './';

View File

@@ -24,7 +24,7 @@
"mkdirp": "^1.0.0", "mkdirp": "^1.0.0",
"p-map": "^3.0.0", "p-map": "^3.0.0",
"recursive-readdir": "2.2.2", "recursive-readdir": "2.2.2",
"uuid": "^7.0.0", "uuid": "^7.0.1",
"xdg-basedir": "^4.0.0", "xdg-basedir": "^4.0.0",
"yargs": "^15.0.1" "yargs": "^15.0.1"
}, },

View File

@@ -8,7 +8,7 @@
*/ */
import {Client} from 'fb-watchman'; import {Client} from 'fb-watchman';
import uuid from 'uuid'; import {v4 as uuid} from 'uuid';
import path from 'path'; import path from 'path';
export default class Watchman { export default class Watchman {
@@ -76,6 +76,7 @@ export default class Watchman {
return reject(error); return reject(error);
} }
try {
const {clock} = resp; const {clock} = resp;
const sub = { const sub = {
@@ -91,7 +92,7 @@ export default class Watchman {
: relativeDir, : relativeDir,
}; };
const id = uuid.v4(); const id = uuid();
this.client!.command(['subscribe', this.watch, id, sub], error => { this.client!.command(['subscribe', this.watch, id, sub], error => {
if (error) { if (error) {
@@ -105,6 +106,9 @@ export default class Watchman {
}); });
resolve(); resolve();
}); });
} catch (err) {
reject(err);
}
}); });
}); });
} }

View File

@@ -3557,10 +3557,10 @@ utils-merge@1.0.1:
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=
uuid@^7.0.0: uuid@^7.0.1:
version "7.0.0" version "7.0.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.0.tgz#1833d4b9ce50b732bfaa271f9cb74e974d303c79" resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.1.tgz#95ed6ff3d8c881cbf85f0f05cc3915ef994818ef"
integrity sha512-LNUrNsXdI/fUsypJbWM8Jt4DgQdFAZh41p9C7WE9Cn+CULOEkoG2lgQyH68v3wnIy5K3fN4jdSt270K6IFA3MQ== integrity sha512-yqjRXZzSJm9Dbl84H2VDHpM3zMjzSJQ+hn6C4zqd5ilW+7P4ZmLEEqwho9LjP+tGuZlF4xrHQXT0h9QZUS/pWA==
vlq@^1.0.0: vlq@^1.0.0:
version "1.0.1" version "1.0.1"

View File

@@ -1735,12 +1735,10 @@
resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.0.tgz#72eff71648a429c7d4acf94e03780e06671369bd" resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.0.tgz#72eff71648a429c7d4acf94e03780e06671369bd"
integrity sha512-awrJu8yML4E/xTwr2EMatC+HBnHGoDxc2+ImA9QyeUELI1S7dOCIZcyjki1rkwoA8P2D2NVgLAJLjnclkdLtAw== integrity sha512-awrJu8yML4E/xTwr2EMatC+HBnHGoDxc2+ImA9QyeUELI1S7dOCIZcyjki1rkwoA8P2D2NVgLAJLjnclkdLtAw==
"@types/uuid@^3.4.5": "@types/uuid@^7.0.0":
version "3.4.5" version "7.0.0"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.5.tgz#d4dc10785b497a1474eae0ba7f0cb09c0ddfd6eb" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-7.0.0.tgz#9f6993ccc8210efa90bda7e1afabbb06a9f860cd"
integrity sha512-MNL15wC3EKyw1VLF+RoVO4hJJdk9t/Hlv3rt1OL65Qvuadm4BYo6g9ZJQqoq7X8NBFSsQXgAujWciovh2lpVjA== integrity sha512-RiX1I0lK9WFLFqy2xOxke396f0wKIzk5sAll0tL4J4XDYJXURI7JOs96XQb3nP+2gEpQ/LutBb66jgiT5oQshQ==
dependencies:
"@types/node" "*"
"@types/which@^1.3.2": "@types/which@^1.3.2":
version "1.3.2" version "1.3.2"
@@ -9839,10 +9837,10 @@ uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==
uuid@^7.0.0: uuid@^7.0.1:
version "7.0.0" version "7.0.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.0.tgz#1833d4b9ce50b732bfaa271f9cb74e974d303c79" resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.1.tgz#95ed6ff3d8c881cbf85f0f05cc3915ef994818ef"
integrity sha512-LNUrNsXdI/fUsypJbWM8Jt4DgQdFAZh41p9C7WE9Cn+CULOEkoG2lgQyH68v3wnIy5K3fN4jdSt270K6IFA3MQ== integrity sha512-yqjRXZzSJm9Dbl84H2VDHpM3zMjzSJQ+hn6C4zqd5ilW+7P4ZmLEEqwho9LjP+tGuZlF4xrHQXT0h9QZUS/pWA==
v8-compile-cache@^2.0.3: v8-compile-cache@^2.0.3:
version "2.1.0" version "2.1.0"