Skip to content

broken on windows #6

@memcorrupt

Description

@memcorrupt

import.meta.url (example: file:///C:/Users/snip/Downloads/github-artifacts-analyzer/dist/index.js) uses forward slashes and file://${process.argv[1]} (example: file://C:\Users\snip\Downloads\github-artifacts-analyzer\dist\index.js) uses backslashes.

this causes the check below to return false:

if (import.meta.url === `file://${process.argv[1]}`)

from: https://github.com/shanselman/github-artifacts-analyzer/blob/main/src/index.ts#L116

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions