`npx aegir check-project` fails to recognize projectDir correctly
SgtPooki opened this issue · 1 comments
SgtPooki commented
npm info aegir | head -n 2
aegir@37.5.1 | Apache-2.0 OR MIT | deps: 86 | versions: 233
╰─ ✔ ❯ npx aegir -d check-project
[16:22:17] check project [started]
process.argv: [
'/Users/sgtpooki/.asdf/installs/nodejs/16.16.0/bin/node',
'/Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/.bin/aegir',
'-d',
'check-project'
]
projectDir: check-project
╰─ ✘ 1 ❯ npx aegir check-project -d
[16:08:14] check project [started]
projectDir: -d
prompt: branchName: (master)
prompt: repoUrl:
branchName, repoUrl: master
[16:08:17] check project [failed]
[16:08:17] → -d/package.json: ENOENT: no such file or directory, open '-d/package.json'
Error: -d/package.json: ENOENT: no such file or directory, open '-d/package.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.readFileSync (/Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/jsonfile/index.js:50:22)
at Task.task (file:///Users/sgtpooki/code/work/protocol.ai/ipfs/js-kubo-rpc-client/node_modules/aegir/src/check-project/index.js:395:27)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '-d/package.json',
context: {
_: [ 'check-project' ],
d: true,
debug: true,
'$0': 'aegir',
fileConfig: {
debug: false,
test: [Object],
build: [Object],
lint: [Object],
docs: [Object],
ts: [Object],
release: [Object],
dependencyCheck: [Object]
}
}
}
I believe
aegir/src/check-project/index.js
Line 391 in d1b1371
is at fault
github-actions commented
🎉 This issue has been resolved in version 37.5.2 🎉
The release is available on:
Your semantic-release bot 📦🚀