MCPcopy Create free account
hub / github.com/adobe/react-spectrum / promiseFromChildProcess

Function promiseFromChildProcess

scripts/merge-spectrum-css.js:25–30  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

23let ignoreComponents = ['README.md']; // complicated
24
25function promiseFromChildProcess(child) {
26 return new Promise(function (resolve, reject) {
27 child.addListener('error', reject);
28 child.addListener('exit', resolve);
29 });
30}
31
32function getFilesizeInBytes(filename) {
33 const stats = fs.statSync(filename);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected