Skip to content

How to deal with npm packages that are only built on host side #297

@hellow554

Description

@hellow554

I want to develop an application using typescript. This app should only be compiled on the hostside, therefore I don't need nodejs on the target.

If I understand the npm class correctly i will have nodejs as an runtime dependency. That's why I don't want to use inherit npm.

So, what is an good approach to solve my problem? Should I use depend on nodejs-native and implement do_compile and do_install myself? There's a lot of work put in the bbclass, e.g. picking the right target arch, using the correct npm flags as well as having a DEV flag to allow development builds.

I certanly don't want to implement (copy) them myself. Would it be a good approach to have a seperate npm-native class maybe?

What is your opinion about that?

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