Skip to content

Commit ec623da

Browse files
committed
Refactor package.json to update project description, main entry points, and scripts; replace dependencies with axios and dotenv, and enhance CI/CD workflow configuration in ci-cd.yml for npm publishing.
1 parent 31ee410 commit ec623da

File tree

2 files changed

+32
-51
lines changed

2 files changed

+32
-51
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,12 @@ jobs:
5454
with:
5555
node-version: '22.10.0'
5656
registry-url: 'https://npm.pkg.github.com'
57-
scope: '@nginh'
5857

5958
- name: Publish to GitHub Packages
6059
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
6160
env:
6261
NODE_AUTH_TOKEN: ${{ secrets.PAT_TOKEN }}
6362
run: |
6463
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
65-
echo "@nginh:registry=https://npm.pkg.github.com" >> .npmrc
64+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
6665
npm publish --registry=https://npm.pkg.github.com

package.json

Lines changed: 31 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,53 @@
11
{
22
"name": "llmforge",
33
"version": "1.0.0",
4-
"description": "A unified, pluggable AI runtime to run prompts across OpenAI, Gemini, Ollama, and custom models — all with a single line of code",
5-
"main": "dist/cjs/index.js",
6-
"module": "dist/esm/index.js",
7-
"types": "dist/esm/index.d.ts",
4+
"description": "A powerful LLM orchestration framework for building and managing AI applications",
5+
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.ts",
88
"files": [
99
"dist",
1010
"README.md"
1111
],
12-
"exports": {
13-
".": {
14-
"require": "./dist/cjs/index.js",
15-
"import": "./dist/esm/index.js",
16-
"types": "./dist/esm/index.d.ts"
17-
}
18-
},
1912
"scripts": {
20-
"build:cjs": "tsc -p tsconfig.cjs.json",
21-
"build:esm": "tsc -p tsconfig.esm.json",
22-
"build": "npm run build:cjs && npm run build:esm",
23-
"start": "node dist/cjs/index.js",
24-
"test": "echo \"No tests yet\"",
25-
"lint": "echo \"No linting yet\"",
26-
"prepare": "npm run build",
27-
"prepublishOnly": "npm test && npm run lint",
28-
"preversion": "npm run lint",
29-
"version": "npm run format && git add -A src",
30-
"postversion": "git push && git push --tags"
31-
},
32-
"repository": {
33-
"type": "git",
34-
"url": "git+https://github.com/nginH/llmforge.git"
35-
},
36-
"publishConfig": {
37-
"access": "public"
13+
"build": "tsc && tsc -p tsconfig.esm.json",
14+
"test": "jest",
15+
"lint": "eslint . --ext .ts",
16+
"prepare": "npm run build"
3817
},
3918
"keywords": [
40-
"unified",
41-
"pluggable",
42-
"AI",
43-
"llmforge",
4419
"llm",
45-
"openai",
46-
"gemini",
47-
"ollama"
20+
"ai",
21+
"orchestration",
22+
"framework",
23+
"typescript"
4824
],
49-
"author": "Harsh",
25+
"author": "nginH",
5026
"license": "MIT",
27+
"publishConfig": {
28+
"access": "public",
29+
"registry": "https://registry.npmjs.org/"
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/nginH/llmforge.git"
34+
},
5135
"bugs": {
5236
"url": "https://github.com/nginH/llmforge/issues"
5337
},
5438
"homepage": "https://github.com/nginH/llmforge#readme",
5539
"dependencies": {
56-
"undici": "^7.10.0",
57-
"undici-types": "^7.10.0"
40+
"axios": "^1.6.7",
41+
"dotenv": "^16.4.5"
5842
},
5943
"devDependencies": {
60-
"typescript": "^5.8.3",
61-
"@semantic-release/changelog": "^6.0.3",
62-
"@semantic-release/git": "^10.0.1",
63-
"@semantic-release/github": "^8.1.0",
64-
"@semantic-release/npm": "^10.0.4",
65-
"semantic-release": "^21.1.1",
66-
"@types/node": "^20.11.24"
67-
},
68-
"engines": {
69-
"node": ">=18.0.0"
44+
"@types/jest": "^29.5.12",
45+
"@types/node": "^20.11.24",
46+
"@typescript-eslint/eslint-plugin": "^7.1.0",
47+
"@typescript-eslint/parser": "^7.1.0",
48+
"eslint": "^8.57.0",
49+
"jest": "^29.7.0",
50+
"ts-jest": "^29.1.2",
51+
"typescript": "^5.3.3"
7052
}
7153
}

0 commit comments

Comments
 (0)