@t8/docsgen 0.1.0 → 0.1.1

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.
package/dist/bin.js CHANGED
@@ -740,7 +740,9 @@ async function run() {
740
740
  return;
741
741
  }
742
742
  if (targetId) {
743
- let entryCtx = entries.find(({ id }) => id === targetId);
743
+ let entryCtx = entries.find(
744
+ ({ id, dir }) => id === targetId || dir === targetId
745
+ );
744
746
  if (entryCtx) runEntry(entryCtx);
745
747
  else console.warn(`Specified config entry not found: '${targetId}'`);
746
748
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
package/src/bin/run.ts CHANGED
@@ -13,7 +13,9 @@ async function run() {
13
13
  }
14
14
 
15
15
  if (targetId) {
16
- let entryCtx = entries.find(({ id }) => id === targetId);
16
+ let entryCtx = entries.find(
17
+ ({ id, dir }) => id === targetId || dir === targetId,
18
+ );
17
19
 
18
20
  if (entryCtx) runEntry(entryCtx);
19
21
  else console.warn(`Specified config entry not found: '${targetId}'`);