Open jubnzv opened 2 weeks ago
and add them to package.json.
Somehow @ton/ton-core
works without this step:
exports
section in their package.jsonThey somehow put index.js
and index.d.js
to the dist
folder instead dist/src
: https://www.npmjs.com/package/@ton/core?activeTab=code
Currently, Tact API users must write imports in the following format:
It would be more convenient if they could write one of the following:
To achieve this, we should finalize the exports in the
index.ts
files and add them topackage.json
. Here is an example:Related: https://github.com/tact-lang/tact/issues/740 and https://github.com/tact-lang/tact/issues/543