Skip to content

Commit

Permalink
feat(nanotron): separate exports based on the packages name
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar authored and alimd committed Oct 28, 2024
1 parent 4ee18f2 commit 9448b93
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions packages/nanotron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
"types": "./dist/main.d.ts",
"import": "./dist/main.mjs",
"require": "./dist/main.cjs"
},
"./crypto": {
"types": "./dist/crypto.d.ts",
"import": "./dist/crypto.mjs",
"require": "./dist/crypto.cjs"
},
"./api-server": {
"types": "./dist/api-server.d.ts",
"import": "./dist/api-server.mjs",
"require": "./dist/api-server.cjs"
}
},
"license": "AGPL-3.0-only",
Expand Down
1 change: 1 addition & 0 deletions packages/nanotron/src/api-server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@alwatr/nanotron-api-server';
1 change: 1 addition & 0 deletions packages/nanotron/src/crypto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@alwatr/crypto';
3 changes: 0 additions & 3 deletions packages/nanotron/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import {packageTracer} from '@alwatr/nanolib';

export * from '@alwatr/nanotron-api-server';
export * from '@alwatr/crypto';

__dev_mode__: packageTracer.add(__package_name__, __package_version__);

0 comments on commit 9448b93

Please sign in to comment.