Skip to content

Commit

Permalink
fix: repo detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed May 27, 2023
1 parent 5b6ccda commit 5b9f283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ export async function setupSvelteRepo(options: Partial<RepoOptions>) {
await fs.promises.readFile(rootPackageJsonFile, 'utf-8'),
)
const { name } = rootPackageJson
if (name !== 'svelte') {
const expected = 'svelte-monorepo'
if (name !== expected) {
throw new Error(
`expected "name" field of ${repo}/package.json to be "svelte", but got ${name}.`,
`expected "name" field of ${repo}/package.json to be "${expected}", but got "${name}".`,
)
}
const needsWrite = await overridePackageManagerVersion(
Expand Down

0 comments on commit 5b9f283

Please sign in to comment.