Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

cannot perform relative import from bin #2

@mikeal

Description

@mikeal

Because of the way the bin is sym linked from another directory and executed directly it cannot perform imports relative to the actual location of the file.

test ::

lib/bin.js

!/usr/bin/env node

require('./stub')

lib/stub.js
exports.nothing = 'asdf'

Run npm install or link, now execute the named bin and see the failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions