@riebeckite/plugin-kanban 0.0.16 → 0.0.17

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 +1 -1
  2. package/package.json +7 -3
package/dist/index.js CHANGED
@@ -158,7 +158,7 @@ function createKanbanLinkResolver(manifest) {
158
158
  const slug = manifest.contentIndex.get(label.toLowerCase());
159
159
  if (!slug) return null;
160
160
  const entry = manifest.bySlug.get(slug);
161
- if (!entry) return null;
161
+ if (!entry?.publishing.routable) return null;
162
162
  return { href: entry.permalink, label };
163
163
  };
164
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-kanban",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,10 @@
17
17
  "dependencies": {
18
18
  "@types/mdast": "^4.0.4",
19
19
  "unist-util-visit": "^5.1.0",
20
- "@riebeckite/core": "0.0.16"
20
+ "@riebeckite/core": "0.0.17"
21
+ },
22
+ "devDependencies": {
23
+ "tsx": "^4.22.4"
21
24
  },
22
25
  "publishConfig": {
23
26
  "access": "public"
@@ -52,6 +55,7 @@
52
55
  "./style.css"
53
56
  ],
54
57
  "scripts": {
55
- "build": "node ../../../scripts/build_package.mjs"
58
+ "build": "node ../../../scripts/build_package.mjs",
59
+ "test": "node --import tsx --test \"test/*.test.ts\""
56
60
  }
57
61
  }