Skip to content

Conversation

@codingdestro
Copy link

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2025

🦋 Changeset detected

Latest commit: 02913b2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nodesecure/mama Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@clemgbld
Copy link
Member

clemgbld commented Dec 8, 2025

You need to add a changeset in minor

@fraxken fraxken linked an issue Dec 12, 2025 that may be closed by this pull request
@fraxken
Copy link
Member

fraxken commented Dec 12, 2025

image

We can add deno.lock to the list

Comment on lines +18 to +25
const result: [string, string][] = [];
for (const [k, v] of LOCK_FILES) {
if (dir.includes(v)) {
result.push([k, v]);
}
}

return result.length === 0 ? null : result;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use flatMap and Object.fromEntries at the end to transform the Array back into an Object.

["deno", "deno.lock"]
];

export function scanLockFiles(dirPath: string): null | object {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

object is not acceptable as type here

@fraxken
Copy link
Member

fraxken commented Dec 17, 2025

Also please add documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Mama) Implement utils to detect local lockfile

4 participants