-
-
Notifications
You must be signed in to change notification settings - Fork 679
Closed
Labels
Description
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?