File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1668,7 +1668,8 @@ function transform_files(
16681668 const readme = docs.content.find(({ name }) => name === "README.md");
16691669 const pkg = docs.content.find(({ name }) => name === "package.json");
16701670
1671- if (!readme || !pkg) return;
1671+ if (!readme || !pkg || JSON.parse(pkg.content ).name === project)
1672+ return;
16721673
16731674 pkgs.push([
16741675 JSON.parse(pkg.content ).name.replace("@sveltejs/", ""),
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ export function transform_files(
120120 const readme = docs . content . find ( ( { name } ) => name === "README.md" ) ;
121121 const pkg = docs . content . find ( ( { name } ) => name === "package.json" ) ;
122122
123- if ( ! readme || ! pkg ) return ;
123+ if ( ! readme || ! pkg || JSON . parse ( pkg . content as string ) . name === project )
124+ return ;
124125
125126 pkgs . push ( [
126127 JSON . parse ( pkg . content as string ) . name . replace ( "@sveltejs/" , "" ) ,
You can’t perform that action at this time.
0 commit comments