Skip to content

Commit

Permalink
refactor: move exports from main to index
Browse files Browse the repository at this point in the history
  • Loading branch information
verytactical committed Jan 14, 2025
1 parent 2a16308 commit 9154da7
Show file tree
Hide file tree
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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"!**/test",
"!/docs"
],
"main": "./dist/main.js",
"main": "./dist/index.js",
"bin": {
"tact": "bin/tact.js",
"unboc": "bin/unboc.js"
Expand Down
18 changes: 18 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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";

Expand Down

0 comments on commit 9154da7

Please sign in to comment.