@riebeckite/plugin-folder-pages 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -340,9 +340,14 @@ function folderPages(options = {}) {
340
340
  id: "folder-page",
341
341
  directoryIndex: true,
342
342
  paths: ({ manifest }) => modelFor(manifest).paths,
343
- outputDependencies: ({ manifest, pathname }) => modelFor(manifest).byPath.get(pathname)?.dependencies ?? [
344
- { type: "unknown" }
345
- ],
343
+ outputDependencies: ({ manifest, pathname }) => {
344
+ const dependencies = modelFor(manifest).byPath.get(pathname)?.dependencies;
345
+ return dependencies ? [
346
+ ...dependencies,
347
+ { type: "projection", projection: "navigation" },
348
+ { type: "projection", projection: "recent-posts" }
349
+ ] : [{ type: "unknown" }];
350
+ },
346
351
  resolve: ({ manifest, pathname }) => {
347
352
  const page = modelFor(manifest).byPath.get(pathname);
348
353
  if (!page) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-folder-pages",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,12 +14,12 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@riebeckite/core": "0.0.22"
17
+ "@riebeckite/core": "0.0.24"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsx": "^4.22.4",
21
- "@riebeckite/plugin-l10n": "0.0.22",
22
- "@riebeckite/plugin-taxonomy": "0.0.22"
21
+ "@riebeckite/plugin-taxonomy": "0.0.24",
22
+ "@riebeckite/plugin-l10n": "0.0.24"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"