We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.ts
Currently, Tact API users must write imports in the following format:
import { SrcInfo } from "@tact-lang/compiler/dist/grammar/ast";
It would be more convenient if they could write one of the following:
import { SrcInfo } from "@tact-lang/compiler"; import { SrcInfo } from "@tact-lang/compiler/grammar";
To achieve this, we should finalize the exports in the index.ts files and add them to package.json. Here is an example:
package.json
"exports": { ".": { "import": "./dist/src/index.js", "require": "./dist/src/index.js" }, "./*": "./dist/src/*" },
Related: #740 and #543
The text was updated successfully, but these errors were encountered:
and add them to package.json.
Somehow @ton/ton-core works without this step:
@ton/ton-core
exports
Sorry, something went wrong.
They somehow put index.js and index.d.js to the dist folder instead dist/src: https://www.npmjs.com/package/@ton/core?activeTab=code
index.js
index.d.js
dist
dist/src
No branches or pull requests
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: #740 and #543
The text was updated successfully, but these errors were encountered: