Skip to content

Commit

Permalink
refactor: update imports & packages based on the latest changes of …
Browse files Browse the repository at this point in the history
…`nanolib` & prevent `sideeffects` from `build` result
  • Loading branch information
mohammadhonarvar committed Oct 11, 2024
1 parent 97b9b80 commit 881b46e
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 179 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"publish": "lerna publish from-package"
},
"devDependencies": {
"@alwatr/eslint-config": "^1.2.9",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/eslint-config": "^1.2.11",
"@alwatr/prettier-config": "^1.0.6",
"@lerna-lite/changed": "^3.9.3",
"@lerna-lite/cli": "^3.9.3",
"@lerna-lite/diff": "^3.9.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/nanolib": "^1.0.2"
"@alwatr/nanolib": "^1.2.0"
},
"devDependencies": {
"@alwatr/nano-build": "^1.6.0",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/tsconfig-base": "^1.3.1",
"@alwatr/type-helper": "^2.0.1",
"@alwatr/nano-build": "^2.0.1",
"@alwatr/prettier-config": "^1.0.6",
"@alwatr/tsconfig-base": "^1.3.2",
"@alwatr/type-helper": "^2.0.2",
"@types/node": "^22.7.5",
"jest": "^29.7.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/src/api-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {NanotronUrl} from './url.js';
import type {DefineRouteOption, MatchType, NativeClientRequest, NativeServerResponse} from './type.js';
import type {Duplex} from 'node:stream';

packageTracer.add(__package_name__, __package_version__);
__dev_mode__: packageTracer.add(__package_name__, __package_version__);

/**
* Configuration options for the NanotronApiServer.
Expand Down
5 changes: 3 additions & 2 deletions packages/api-server/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './api-server.js';
export * from './type.js';
export * from './const.js';

export type {NanotronClientRequest} from './api-client-request.js';
export type {NanotronServerResponse} from './api-server-response.js';
export type {NanotronUrl} from './url.js';
export * from './type.js';
export * from './const.js';
10 changes: 5 additions & 5 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/nanolib": "^1.0.2"
"@alwatr/nanolib": "^1.2.0"
},
"devDependencies": {
"@alwatr/nano-build": "^1.6.0",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/tsconfig-base": "^1.3.1",
"@alwatr/type-helper": "^2.0.1",
"@alwatr/nano-build": "^2.0.1",
"@alwatr/prettier-config": "^1.0.6",
"@alwatr/tsconfig-base": "^1.3.2",
"@alwatr/type-helper": "^2.0.2",
"@types/node": "^22.7.5",
"jest": "^29.7.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from './pre-config.js';
import {AlwatrTokenGenerator, type TokenValidity} from './token.js';

packageTracer.add(__package_name__, __package_version__);
__dev_mode__: packageTracer.add(__package_name__, __package_version__);

/**
* Configuration options for the CryptoFactory.
Expand Down
10 changes: 5 additions & 5 deletions packages/nanotron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
},
"dependencies": {
"@alwatr/crypto": "workspace:^",
"@alwatr/nanolib": "^1.0.2",
"@alwatr/nanolib": "^1.2.0",
"@alwatr/nanotron-api-server": "workspace:^"
},
"devDependencies": {
"@alwatr/nano-build": "^1.6.0",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/tsconfig-base": "^1.3.1",
"@alwatr/type-helper": "^2.0.1",
"@alwatr/nano-build": "^2.0.1",
"@alwatr/prettier-config": "^1.0.6",
"@alwatr/tsconfig-base": "^1.3.2",
"@alwatr/type-helper": "^2.0.2",
"@types/node": "^22.7.5",
"jest": "^29.7.0",
"typescript": "^5.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/nanotron/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import {packageTracer} from '@alwatr/nanolib';
export * from '@alwatr/nanotron-api-server';
export * from '@alwatr/crypto';

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

0 comments on commit 881b46e

Please sign in to comment.