Skip to content

Commit

Permalink
chore: add root package to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 20, 2025
1 parent 4a538fd commit d7c63b5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions scripts/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,22 @@ export async function loadWorkspace(dir: string) {

const packages: Package[] = []

async function addWorkspace(dir: string) {
const pkg = await loadPackage(dir)
if (!pkg.data.name || pkg.data.private || ignoredPackages.includes(pkg.data.name)) {
return
}
console.log(pkg.data.name)
packages.push(pkg)
}

await addWorkspace(dir)

for await (const pkgDir of fsp.glob(['packages/*'], { withFileTypes: true })) {
if (!pkgDir.isDirectory()) {
continue
}
const pkg = await loadPackage(join(pkgDir.parentPath, pkgDir.name))
if (!pkg.data.name || ignoredPackages.includes(pkg.data.name)) {
continue
}
console.log(pkg.data.name)
packages.push(pkg)
await addWorkspace(join(pkgDir.parentPath, pkgDir.name))
}

const find = (name: string) => {
Expand Down

0 comments on commit d7c63b5

Please sign in to comment.