Skip to content

Commit e61c437

Browse files
committed
show only published packages
1 parent 394ce33 commit e61c437

4 files changed

Lines changed: 440 additions & 437 deletions

File tree

.changeset/silver-rockets-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ryanatkn/orc': patch
3+
---
4+
5+
show only published packages

orc.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import type {Orc_Config} from '$lib/config.js';
22

33
const config: Orc_Config = {
44
packages: [
5-
'https://www.felt.dev/',
65
'https://www.fuz.dev/',
6+
'https://library.fuz.dev/',
7+
'https://template.fuz.dev/',
78
'https://www.grogarden.org/',
89
'https://missing.fuz.dev/',
910
'https://www.spiderspace.org/',

src/lib/Modules_Detail.svelte

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,24 @@
1414
1515
// TODO show other data (bytes and lines of code per module?)
1616
17-
// TODO pretty hacky, needs helpers or rethinking
17+
// TODO hacky, needs helpers or rethinking
1818
let pkgs_modules: Array<{
1919
pkg: Package_Meta;
2020
modules: Package_Module[];
2121
}>;
2222
$: pkgs_modules = pkgs.reduce(
2323
(v, pkg) => {
24-
if (!pkg.package_json?.modules) return v;
25-
v.push({pkg, modules: Object.values(pkg.package_json.modules)});
24+
const {package_json} = pkg;
25+
if (
26+
!package_json?.modules ||
27+
!(
28+
!!package_json.devDependencies?.['@sveltejs/package'] ||
29+
!!package_json.dependencies?.['@sveltejs/package']
30+
)
31+
) {
32+
return v;
33+
}
34+
v.push({pkg, modules: Object.values(package_json.modules)});
2635
return v;
2736
},
2837
[] as Array<{pkg: Package_Meta; modules: Package_Module[]}>,

0 commit comments

Comments
 (0)