Skip to content

Commit

Permalink
feat: base package
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 20, 2023
1 parent 09c9518 commit 34c930b
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 109 deletions.
3 changes: 3 additions & 0 deletions packages/util/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Alwatr Util - `@alwatr/util`

Util library written in tiny TypeScript module.
37 changes: 37 additions & 0 deletions packages/util/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@alwatr/util",
"version": "0.0.0",
"description": "Util library written in tiny TypeScript module.",
"keywords": [
"util",
"typescript",
"esm",
"alwatr"
],
"main": "index.js",
"type": "module",
"types": "index.d.ts",
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
"contributors": [
"S. Amir Mohammad Najafi <njfamirm@gmail.com> (https://njfamirm.ir)"
],
"license": "MIT",
"files": [
"**/*.{d.ts.map,d.ts,js.map,js,html,md}"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Alwatr/nanolib",
"directory": "packages/util"
},
"homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/util#readme",
"bugs": {
"url": "https://github.com/Alwatr/nanolib/issues"
},
"devDependencies": {
"@types/node": "^20.10.5"
}
}
Empty file added packages/util/src/main.ts
Empty file.
13 changes: 13 additions & 0 deletions packages/util/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": ".tsbuildinfo",
"rootDir": "src",
"outDir": "."
},

"include": ["src/**/*.ts"],
"exclude": [],
"references": []
}
13 changes: 1 addition & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
"files": [],
"exclude": [],
"references": [
// packages
{"path": "./packages/logger"},
{"path": "./packages/fetch"},
{"path": "./packages/math"},
{"path": "./packages/crypto"},
{"path": "./packages/util"},
{"path": "./packages/type"},
{"path": "./packages/nano-server"},
{"path": "./packages/validator"},

// demo
{"path": "./demo"}
{"path": "./packages/util"}
]
}
98 changes: 1 addition & 97 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,99 +22,10 @@ __metadata:
languageName: node
linkType: hard

"@alwatr/crypto@workspace:^, @alwatr/crypto@workspace:packages/crypto":
version: 0.0.0-use.local
resolution: "@alwatr/crypto@workspace:packages/crypto"
dependencies:
"@alwatr/logger": "workspace:^"
"@alwatr/math": "workspace:^"
"@alwatr/util": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/demo@workspace:demo":
version: 0.0.0-use.local
resolution: "@alwatr/demo@workspace:demo"
dependencies:
"@alwatr/crypto": "workspace:^"
"@alwatr/fetch": "workspace:^"
"@alwatr/logger": "workspace:^"
"@alwatr/math": "workspace:^"
"@alwatr/type": "workspace:^"
"@alwatr/util": "workspace:^"
"@alwatr/validator": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/fetch@workspace:^, @alwatr/fetch@workspace:packages/fetch":
version: 0.0.0-use.local
resolution: "@alwatr/fetch@workspace:packages/fetch"
dependencies:
"@alwatr/logger": "workspace:^"
"@alwatr/type": "workspace:^"
"@alwatr/util": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/logger@workspace:^, @alwatr/logger@workspace:packages/logger":
version: 0.0.0-use.local
resolution: "@alwatr/logger@workspace:packages/logger"
dependencies:
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/math@workspace:^, @alwatr/math@workspace:packages/math":
version: 0.0.0-use.local
resolution: "@alwatr/math@workspace:packages/math"
dependencies:
"@alwatr/logger": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/nano-server@workspace:packages/nano-server":
version: 0.0.0-use.local
resolution: "@alwatr/nano-server@workspace:packages/nano-server"
dependencies:
"@alwatr/logger": "workspace:^"
"@alwatr/math": "workspace:^"
"@alwatr/type": "workspace:^"
"@alwatr/util": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/type@workspace:^, @alwatr/type@workspace:packages/type":
version: 0.0.0-use.local
resolution: "@alwatr/type@workspace:packages/type"
dependencies:
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft

"@alwatr/util@workspace:^, @alwatr/util@workspace:packages/util":
"@alwatr/util@workspace:packages/util":
version: 0.0.0-use.local
resolution: "@alwatr/util@workspace:packages/util"
dependencies:
"@alwatr/logger": "workspace:^"
"@alwatr/math": "workspace:^"
"@alwatr/type": "workspace:^"
"@types/node": "npm:^20.10.5"
flatstr: "npm:^1.0.12"
languageName: unknown
linkType: soft

"@alwatr/validator@workspace:^, @alwatr/validator@workspace:packages/validator":
version: 0.0.0-use.local
resolution: "@alwatr/validator@workspace:packages/validator"
dependencies:
"@alwatr/math": "workspace:^"
"@alwatr/type": "workspace:^"
"@alwatr/util": "workspace:^"
"@types/node": "npm:^20.10.5"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -3341,13 +3252,6 @@ __metadata:
languageName: node
linkType: hard

"flatstr@npm:^1.0.12":
version: 1.0.12
resolution: "flatstr@npm:1.0.12"
checksum: f99cf801fd3606e8b4aa96b93ec09caab42bc304526ff55a80db03db0ef73c9a014e983a6d72009c4f1bc50e2483d137041fae18a325dc0d851d045c4d6929a9
languageName: node
linkType: hard

"flatted@npm:^3.2.9":
version: 3.2.9
resolution: "flatted@npm:3.2.9"
Expand Down

0 comments on commit 34c930b

Please sign in to comment.