@staff0rd/assist 0.144.0 → 0.145.0
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/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.145.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -2925,7 +2925,7 @@ async function next() {
|
|
|
2925
2925
|
return;
|
|
2926
2926
|
}
|
|
2927
2927
|
const choices = todo.map((i) => ({
|
|
2928
|
-
name:
|
|
2928
|
+
name: `${typeLabel(i.type)} #${i.id}: ${i.name}`,
|
|
2929
2929
|
value: String(i.id)
|
|
2930
2930
|
}));
|
|
2931
2931
|
const { selected } = await enquirer6.prompt({
|
|
@@ -2934,7 +2934,7 @@ async function next() {
|
|
|
2934
2934
|
message: "Choose a backlog item to start:",
|
|
2935
2935
|
choices: choices.map((c) => c.name)
|
|
2936
2936
|
});
|
|
2937
|
-
const id = selected.
|
|
2937
|
+
const id = selected.match(/#(\d+)/)?.[1] ?? "";
|
|
2938
2938
|
await run2(id);
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
@@ -7204,6 +7204,7 @@ import { SyntaxKind as SyntaxKind2 } from "ts-morph";
|
|
|
7204
7204
|
function collectReferencedNames(sourceFile) {
|
|
7205
7205
|
const names = /* @__PURE__ */ new Set();
|
|
7206
7206
|
for (const id of sourceFile.getDescendantsOfKind(SyntaxKind2.Identifier)) {
|
|
7207
|
+
if (id.getFirstAncestorByKind(SyntaxKind2.ImportDeclaration)) continue;
|
|
7207
7208
|
names.add(id.getText());
|
|
7208
7209
|
}
|
|
7209
7210
|
return names;
|