Skip to content

First-class package management support #448

Closed
@vgrichina

Description

@vgrichina

What is the best way to add package management support to AssemblyScript?

I think that using existing package structure created by asinit (i.e. root of sources in assembly within npm package) is pretty good and we can go with it.

However I don't think there is any support for actually using the package without specifying whole path.
E.g. let's say I use https://github.com/MaxGraey/bignum.wasm. My understanding is that currently I'll have to specify full path to the module I need, i.e. something like:

import u128 from '../node_modules/bignum.wasm/assembly/integer/u128.ts';

I want to be able to do something like:

import u128 from 'bignum.wasm';

What is the best way to achieve this? Is there any way to specify module search paths when calling compiler?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions