Skip to content

Commit

Permalink
refactor: move exports from main.ts to index.ts (#1322)
Browse files Browse the repository at this point in the history
verytactical authored Jan 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2a16308 commit e9b6874
Showing 5 changed files with 21 additions and 28 deletions.
8 changes: 1 addition & 7 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": [
"src/index.ts",
"src/main.ts",
"src/node.ts",
"bin/tact.js",
"bin/unboc.js"
],
"entry": ["src/index.ts", "src/node.ts", "bin/tact.js", "bin/unboc.js"],
"project": ["src/**/*.ts", "bin/tact.js", "bin/unboc.js"],
"ignore": [
"src/grammar/ast.ts",
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@
"!**/test",
"!/docs"
],
"main": "./dist/main.js",
"main": "./dist/index.js",
"bin": {
"tact": "bin/tact.js",
"unboc": "bin/unboc.js"
18 changes: 18 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -16,3 +16,21 @@ export { AstSorter } from "./grammar/sort";
export { AstRenamer } from "./grammar/rename";
export { AstHasher } from "./grammar/hash";
export { AstComparator } from "./grammar/compare";

export {
Config,
ConfigProject,
parseConfig,
verifyConfig,
} from "./config/parseConfig";

export { PackageFileFormat } from "./packaging/fileFormat";

export { VirtualFileSystem } from "./vfs/VirtualFileSystem";

export { createVirtualFileSystem } from "./vfs/createVirtualFileSystem";

export * from "./browser";
export * from "./verify";
export * from "./context/logger";
export * from "./error/errors";
19 changes: 0 additions & 19 deletions src/main.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/verify.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import normalize from "path-normalize";
import { Cell } from "@ton/core";
import { Config, Options } from "./config/parseConfig";
import { ILogger, Logger } from "./context/logger";
import { PackageFileFormat, run } from "./main";
import { PackageFileFormat, run } from "./";
import { fileFormat } from "./packaging/fileFormat";
import { getCompilerVersion } from "./pipeline/version";

0 comments on commit e9b6874

Please sign in to comment.