-
-
Couldn't load subscription status.
- Fork 1.2k
Closed
Description
Steps to Reproduce the Problem
const d = new Date();
let folderName = `${d.toLocaleString().replace(', ', '_').replaceAll('/', '-')}`;
await $`yarn npx 0x --collect-only --output-dir ./flame-graphs/${folderName} ./dist/server.js;`;after running the script get the cmd
yarn npx 0x --collect-only --output-dir ./flame-graphs/$'29.09.2022_23:22:45__1.43.19' ./dist/server.jsinstead of
yarn npx 0x --collect-only --output-dir ./flame-graphs/29.09.2022_23:22:45__1.43.19 ./dist/server.jsthe same behavior is observed when passing parameters
const flags = [
'--collect-only',
'--output-dir',
`./flame-graphs/${folderName}`,
'-P',
'\'sh ./benchmark.sh\'',
'./dist/server.js'
];
await $`yarn npx 0x ${flags}`the result is the same
yarn npx 0x --collect-only \
--output-dir $'./flame-graphs/29.09.2022_23:33:06__1.43.19' \
-P $'\'sh ./benchmark.sh\'' \
./dist/server.jsinstead of
yarn npx 0x --collect-only \
--output-dir ./flame-graphs/29.09.2022_23:33:06__1.43.19 \
-P 'sh ./benchmark.sh' \
./dist/server.jsError:
$ yarn npx 0x --collect-only --output-dir ./flame-graphs/$'30.09.2022_08:18:12__1.44.3' -P 'sh ./scripts/flame-graph/benchmark.sh' ./dist/server.js;
The system cannot find the path specified.
Error: The system cannot find the path specified.
at file:///D:/Project/scripts/script.mjs:52:8
exit code: 1
error Command failed with exit code 1.Metadata
Metadata
Assignees
Labels
No labels