@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 +3 -1
- package/package.json +1 -1
- package/src/bin/run.ts +3 -1
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(
|
|
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
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(
|
|
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}'`);
|