Skip to content

the issue of npm link when calculating relative paths #1181

@bobzhang

Description

@bobzhang

suppose we have bs-platform in global,
then we do npm link locally,
the bsc.exe we detected from bsb or ./node_modules/.bin/bsb still generates (at least current implementation)
/usr/local/lib/node_modules/bs-platform/bin/bsc.exe
this will cause issues in the combination of buggy implementation of relative paths, so we have things like

import * as Pervasives from "../../../../../../../usr/local/lib/node_modules/bs-platform/lib/es6/pervasives";

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