Skip to content

Commit

Permalink
feat(nanotron): install nanolib packages & export them here
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar committed Sep 29, 2024
1 parent 887f58e commit 169f360
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
28 changes: 22 additions & 6 deletions packages/nanotron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,30 @@
},
"dependencies": {
"@alwatr/crypto": "workspace:^",
"@alwatr/logger": "^3.2.14",
"@alwatr/nanotron-api-server": "workspace:^"
"@alwatr/nanotron-api-server": "workspace:^",
"@alwatr/async-queue": "^1.3.0",
"@alwatr/dedupe": "^1.1.0",
"@alwatr/deep-clone": "^1.1.0",
"@alwatr/delay": "1.0.0",
"@alwatr/exit-hook": "^1.1.0",
"@alwatr/fetch": "^4.1.0",
"@alwatr/flat-string": "^1.1.0",
"@alwatr/flatomise": "^1.2.0",
"@alwatr/global-scope": "^1.1.22",
"@alwatr/is-number": "^1.1.0",
"@alwatr/local-storage": "^1.1.0",
"@alwatr/logger": "^4.0.0",
"@alwatr/node-fs": "^1.1.0",
"@alwatr/package-tracer": "1.0.0",
"@alwatr/parse-duration": "^1.1.0",
"@alwatr/platform-info": "^1.2.0",
"@alwatr/polyfill-has-own": "^1.1.0"
},
"devDependencies": {
"@alwatr/nano-build": "^1.3.10",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.2.0",
"@alwatr/type-helper": "^1.2.6",
"@alwatr/nano-build": "^1.4.0",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/tsconfig-base": "^1.3.0",
"@alwatr/type-helper": "^2.0.0",
"@types/node": "^22.7.4",
"jest": "^29.7.0",
"typescript": "^5.6.2"
Expand Down
23 changes: 19 additions & 4 deletions packages/nanotron/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
import {definePackage} from '@alwatr/logger';

import type {} from '@alwatr/nano-build';
import {packageTracer} from '@alwatr/package-tracer';
import '@alwatr/polyfill-has-own';

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

definePackage('@alwatr/nanotron', __package_version__);
export * from '@alwatr/async-queue';
export * from '@alwatr/delay';
export * from '@alwatr/global-scope';
export * from '@alwatr/logger';
export * from '@alwatr/package-tracer';
export * from '@alwatr/dedupe';
export * from '@alwatr/flatomise';
export * from '@alwatr/is-number';
export * from '@alwatr/parse-duration';
export * from '@alwatr/deep-clone';
export * from '@alwatr/exit-hook';
export * from '@alwatr/flat-string';
export * from '@alwatr/local-storage';
export * from '@alwatr/node-fs';
export * from '@alwatr/platform-info';

packageTracer.add(__package_name__, __package_version__);
1 change: 1 addition & 0 deletions packages/nanotron/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"outDir": "dist",
"emitDeclarationOnly": true,
"composite": true,
"types": ["@alwatr/nano-build"]
},
"include": ["src/**/*.ts"],
"references": [{"path": "../api-server"}, {"path": "../crypto"}],
Expand Down

0 comments on commit 169f360

Please sign in to comment.