tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
280 stars 56 forks source link

Importing traits from `node_modules` #68

Closed alan890104 closed 1 week ago

alan890104 commented 8 months ago

I'm looking to publish my tact traits on npm and then reuse them in other repos by importing from node_modules

alan890104 commented 8 months ago

A possible solution may be simply resolve them before compiling, as we discuss in Ton Dev Community

https://t.me/tondev_eng/36459:

If it is URI, it helps a lot to develop the library from community and update the clients but it can be a local path from modules folder by configuring compiler file for imports

"imports" : [
    "@traits" : "path/to/node_modules/traits/package"
]
alan890104 commented 8 months ago

Similar to #77

anton-trunov commented 1 week ago

Closing this for now. We might return to this issue in the future. See #147