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?
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 inassemblywithinnpmpackage) 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:
I want to be able to do something like:
What is the best way to achieve this? Is there any way to specify module search paths when calling compiler?