File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1668,7 +1668,13 @@ 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 || JSON.parse(pkg.content ).name === project)
1671+ if (
1672+ !readme ||
1673+ !pkg ||
1674+ JSON.parse(pkg.content ).name === project ||
1675+ JSON.parse(pkg.content ).name.replace("@sveltejs/", "") ===
1676+ project
1677+ )
16721678 return;
16731679
16741680 pkgs.push([
Original file line number Diff line number Diff line change @@ -120,7 +120,13 @@ 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 || JSON . parse ( pkg . content as string ) . name === project )
123+ if (
124+ ! readme ||
125+ ! pkg ||
126+ JSON . parse ( pkg . content as string ) . name === project ||
127+ JSON . parse ( pkg . content as string ) . name . replace ( "@sveltejs/" , "" ) ===
128+ project
129+ )
124130 return ;
125131
126132 pkgs . push ( [
You can’t perform that action at this time.
0 commit comments