Skip to content

test: export pkg detail values instead of utility fn #1817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mightyiam opened this issue Oct 13, 2024 · 1 comment · Fixed by #1824
Closed

test: export pkg detail values instead of utility fn #1817

mightyiam opened this issue Oct 13, 2024 · 1 comment · Fixed by #1824
Labels

Comments

@mightyiam
Copy link
Owner

export const getPkgDetails = async (): Promise<PkgDetails> => {
const { readPackageUp } = await import('read-pkg-up')
const readResult = await readPackageUp()
if (readResult === undefined) {
throw new Error()
}
const ourPkg = readResult.packageJson
if (ourPkg.dependencies === undefined) {
throw new Error()
}
const ourDeps = ourPkg.dependencies
if (ourPkg.peerDependencies === undefined) {
throw new Error()
}
const ourPeerDeps = ourPkg.peerDependencies
if (ourPkg.devDependencies === undefined) {
throw new Error()
}
const ourDevDeps = ourPkg.devDependencies
return {
pkgJson: ourPkg,
pkgPath: readResult.path,
ourDeps,
ourPeerDeps,
ourDevDeps,
}
}

Depends on #1528

@eslint-config-love-release-bot

🎉 This issue has been resolved in version 88.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

1 participant