@yarnpkg/plugin-exec
Advanced tools
Comparing version
@@ -64,5 +64,2 @@ "use strict"; | ||
const logFile = fslib_1.ppath.join(logDir, `buildfile.log`); | ||
const stdin = null; | ||
const stdout = fslib_1.xfs.createWriteStream(logFile); | ||
const stderr = stdout; | ||
const tempDir = fslib_1.ppath.join(cwd, `generator`); | ||
@@ -111,5 +108,8 @@ const buildDir = fslib_1.ppath.join(cwd, `build`); | ||
env.NODE_OPTIONS = nodeOptions; | ||
stdout.write(`# This file contains the result of Yarn generating a package (${core_1.structUtils.stringifyLocator(locator)})\n`); | ||
stdout.write(`\n`); | ||
const { code } = await core_1.execUtils.pipevp(process.execPath, [`--require`, fslib_1.npath.fromPortablePath(runtimeFile), fslib_1.npath.fromPortablePath(generatorPath), core_1.structUtils.stringifyIdent(locator)], { cwd, env, stdin, stdout, stderr }); | ||
const { stdout, stderr } = opts.project.configuration.getSubprocessStreams(logFile, { | ||
header: `# This file contains the result of Yarn generating a package (${core_1.structUtils.stringifyLocator(locator)})\n`, | ||
prefix: core_1.structUtils.prettyLocator(opts.project.configuration, locator), | ||
report: opts.report, | ||
}); | ||
const { code } = await core_1.execUtils.pipevp(process.execPath, [`--require`, fslib_1.npath.fromPortablePath(runtimeFile), fslib_1.npath.fromPortablePath(generatorPath), core_1.structUtils.stringifyIdent(locator)], { cwd, env, stdin: null, stdout, stderr }); | ||
if (code !== 0) { | ||
@@ -116,0 +116,0 @@ fslib_1.xfs.detachTemp(logDir); |
{ | ||
"name": "@yarnpkg/plugin-exec", | ||
"version": "3.0.0-rc.27", | ||
"version": "3.0.0-rc.28", | ||
"license": "BSD-2-Clause", | ||
@@ -11,11 +11,11 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "^3.0.0-rc.27", | ||
"@yarnpkg/fslib": "^3.0.0-rc.28", | ||
"tslib": "^2.4.0" | ||
}, | ||
"peerDependencies": { | ||
"@yarnpkg/core": "^4.0.0-rc.27" | ||
"@yarnpkg/core": "^4.0.0-rc.28" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/builder": "^4.0.0-rc.27", | ||
"@yarnpkg/core": "^4.0.0-rc.27" | ||
"@yarnpkg/builder": "^4.0.0-rc.28", | ||
"@yarnpkg/core": "^4.0.0-rc.28" | ||
}, | ||
@@ -22,0 +22,0 @@ "scripts": { |
23788
0.35%Updated