Skip to content

Commit 449f361

Browse files
authored
always use same location for local repos (#147)
1 parent 107faaf commit 449f361

File tree

1 file changed

+2
-7
lines changed
  • apps/svelte.dev/scripts/sync-docs

1 file changed

+2
-7
lines changed

apps/svelte.dev/scripts/sync-docs/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ const dirname = fileURLToPath(new URL('.', import.meta.url));
2121
const REPOS = path.join(dirname, '../../repos');
2222
const DOCS = path.join(dirname, '../../content/docs');
2323

24-
// TODO make `local` configurable
2524
const packages: Package[] = [
2625
{
2726
name: 'svelte',
28-
local: path.join(dirname, '../../../../../svelte'),
27+
local: `${REPOS}/svelte`,
2928
repo: 'sveltejs/svelte',
3029
pkg: 'packages/svelte',
3130
docs: 'documentation/docs',
@@ -59,7 +58,7 @@ const packages: Package[] = [
5958
},
6059
{
6160
name: 'kit',
62-
local: path.join(dirname, '../../../../../svelte-kit'),
61+
local: `${REPOS}/kit`,
6362
repo: 'sveltejs/kit',
6463
pkg: 'packages/kit',
6564
docs: 'documentation/docs',
@@ -164,10 +163,6 @@ if (process.env.USE_GIT === 'true') {
164163
}
165164

166165
await Promise.all(packages.map((pkg) => clone_repo(`https://github.com/${pkg.repo}.git`, REPOS)));
167-
168-
for (const pkg of packages) {
169-
pkg.local = `${REPOS}/${pkg.name}`;
170-
}
171166
}
172167

173168
for (const pkg of packages) {

0 commit comments

Comments
 (0)