File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
apps/svelte.dev/scripts/sync-docs Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,10 @@ const dirname = fileURLToPath(new URL('.', import.meta.url));
21
21
const REPOS = path . join ( dirname , '../../repos' ) ;
22
22
const DOCS = path . join ( dirname , '../../content/docs' ) ;
23
23
24
- // TODO make `local` configurable
25
24
const packages : Package [ ] = [
26
25
{
27
26
name : 'svelte' ,
28
- local : path . join ( dirname , '../../../../../ svelte' ) ,
27
+ local : ` ${ REPOS } / svelte` ,
29
28
repo : 'sveltejs/svelte' ,
30
29
pkg : 'packages/svelte' ,
31
30
docs : 'documentation/docs' ,
@@ -59,7 +58,7 @@ const packages: Package[] = [
59
58
} ,
60
59
{
61
60
name : 'kit' ,
62
- local : path . join ( dirname , '../../../../../svelte- kit' ) ,
61
+ local : ` ${ REPOS } / kit` ,
63
62
repo : 'sveltejs/kit' ,
64
63
pkg : 'packages/kit' ,
65
64
docs : 'documentation/docs' ,
@@ -164,10 +163,6 @@ if (process.env.USE_GIT === 'true') {
164
163
}
165
164
166
165
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
- }
171
166
}
172
167
173
168
for ( const pkg of packages ) {
You can’t perform that action at this time.
0 commit comments