Skip to content

Commit a577a3d

Browse files
feat: update package.json files and add database types for FastKit modules
1 parent b2b414b commit a577a3d

14 files changed

Lines changed: 122 additions & 45 deletions

File tree

package.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
{
22
"name": "@nexgenstudiodev/fastkit",
3-
"version": "1.0.0",
4-
"private": true,
5-
"description": "A modular monorepo for FastKit and related tools",
3+
"version": "2.1.0",
4+
"description": "A comprehensive FastKit library with auth, database config, and utilities",
5+
"main": "dist/FastKit.js",
6+
"types": "dist/FastKit.d.ts",
7+
"files": [
8+
"dist"
9+
],
10+
"keywords": [
11+
"fastkit",
12+
"auth",
13+
"database",
14+
"config",
15+
"utilities",
16+
"typescript"
17+
],
18+
"author": "NexGenStudioDev",
19+
"license": "MIT",
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/nexgenstudiodev/fastkit.git"
23+
},
624
"packageManager": "pnpm@10.12.1",
725
"workspaces": [
826
"packages/*"
927
],
1028
"scripts": {
1129
"clean": "rimraf dist",
12-
"build": "pnpm -r run build",
30+
"build": "pnpm -r run build && tsc && tsc-alias",
31+
"build:main": "tsc && tsc-alias",
1332
"rebuild": "pnpm -r run clean && pnpm -r run build",
1433
"lint": "pnpm -r run lint",
1534
"lint:fix": "pnpm -r run lint:fix",
@@ -23,11 +42,17 @@
2342
"publish:all": "pnpm -r publish --access public --no-git-checks",
2443
"postinstall": "pnpm -r run build"
2544
},
45+
"dependencies": {
46+
"express": "^5.1.0",
47+
"zod": "^3.23.8",
48+
"dotenv": "^16.4.5"
49+
},
2650
"devDependencies": {
2751
"@typescript-eslint/eslint-plugin": "^8.35.0",
2852
"@typescript-eslint/parser": "^8.35.0",
2953
"@types/jest": "^30.0.0",
3054
"@types/node": "^24.0.4",
55+
"@types/express": "^5.0.3",
3156
"eslint": "^9.29.0",
3257
"eslint-config-prettier": "^10.1.5",
3358
"eslint-plugin-prettier": "^5.5.1",

pnpm-lock.yaml

Lines changed: 14 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/fastkit-auth/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
"test": "jest"
1515
},
1616
"dependencies": {
17-
"@nexgenstudiodev/fastkit": "^1.0.2",
1817
"@types/express": "^5.0.3",
1918
"express": "^5.1.0"
19+
},
20+
"publishConfig": {
21+
"access": "public"
2022
}
2123
}

src/packages/fastkit-config/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
"clean": "rimraf dist"
1313
},
1414
"dependencies": {
15-
"@nexgenstudiodev/fastkit": "^1.0.2",
16-
"@nexgenstudiodev/fastkit-dbconfig": "workspace:*",
1715
"express": "^5.1.0"
1816
},
1917
"devDependencies": {
2018
"@types/express": "^5.0.3"
19+
},
20+
"publishConfig": {
21+
"access": "public"
2122
}
2223
}

src/packages/fastkit-config/src/v1/config.types.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11

2-
import { DatabaseConfig } from '@nexgenstudiodev/fastkit-dbconfig';
32
// =================== TYPES & INTERFACES ===================
43

4+
// Database types (copied from db-config package to avoid circular imports)
5+
export type DatabaseType = 'mongodb' | 'mysql' | 'postgresql' | 'sqlite' | 'redis';
6+
7+
export interface DatabaseConfig {
8+
type: DatabaseType;
9+
host?: string;
10+
port?: number;
11+
username?: string;
12+
password?: string;
13+
databaseName?: string;
14+
url?: string;
15+
poolSize?: number;
16+
connectionTimeout?: number;
17+
ssl?: boolean;
18+
options?: Record<string, unknown>;
19+
}
20+
521
export type JWTAlgorithmType =
622
| 'HS256'
7-
| 'HS384'
23+
| 'HS384'
824
| 'HS512'
925
| 'RS256'
1026
| 'RS384'

src/packages/fastkit-db-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"format": "prettier --write 'src/**/*.{ts,tsx,js,json}'",
1313
"test": "jest"
1414
},
15-
"dependencies": {
16-
"@nexgenstudiodev/fastkit-dbconfig": "workspace:*"
15+
"publishConfig": {
16+
"access": "public"
1717
}
1818
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Supported database types
3+
*/
4+
export type DatabaseType = 'mongodb' | 'mysql' | 'postgresql' | 'sqlite' | 'redis';
5+
/**
6+
* Database configuration interface
7+
*/
8+
export interface DatabaseConfig {
9+
type: DatabaseType;
10+
host?: string;
11+
port?: number;
12+
username?: string;
13+
password?: string;
14+
databaseName?: string;
15+
/** Full database connection URL (alternative to individual fields) */
16+
url?: string;
17+
/** Connection pool size */
18+
poolSize?: number;
19+
/** Connection timeout in milliseconds */
20+
connectionTimeout?: number;
21+
/** Enable SSL/TLS connection */
22+
ssl?: boolean;
23+
/** Additional database options */
24+
options?: Record<string, unknown>;
25+
}
26+
//# sourceMappingURL=Db.type.d.ts.map

src/packages/fastkit-db-config/src/v1/Db.type.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/fastkit-db-config/src/v1/Db.type.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/fastkit-db-config/src/v1/Db.type.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)