Skip to content

Commit fc25152

Browse files
committed
chore: switch dependency references to workspace in package.json files
### Changes - Updated the dependency reference for '@ts-dspy/core' to 'workspace:*' in the package.json files of the gemini and openai packages. - Modified the dependency installation step in publish.yml to remove package-lock.json before running npm install for a clean setup.
1 parent 2110b8e commit fc25152

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ jobs:
3636
node-version: ${{ matrix.node-version }}
3737
cache: 'npm'
3838

39-
- name: Install dependencies with Lerna
40-
run: npx lerna bootstrap
39+
- name: Install dependencies
40+
run: |
41+
rm -f package-lock.json
42+
npm install
4143
4244
- name: Lint code
4345
run: npm run lint || echo "No lint script found"
@@ -176,8 +178,10 @@ jobs:
176178
git config user.name "github-actions[bot]"
177179
git config user.email "github-actions[bot]@users.noreply.github.com"
178180
179-
- name: Install dependencies with Lerna
180-
run: npx lerna bootstrap
181+
- name: Install dependencies
182+
run: |
183+
rm -f package-lock.json
184+
npm install
181185
182186
- name: Build project
183187
run: npm run build
@@ -373,8 +377,10 @@ jobs:
373377
registry-url: 'https://npm.pkg.github.com/'
374378
cache: 'npm'
375379

376-
- name: Install dependencies with Lerna
377-
run: npx lerna bootstrap
380+
- name: Install dependencies
381+
run: |
382+
rm -f package-lock.json
383+
npm install
378384
379385
- name: Build project
380386
run: npm run build

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
"type": "git",
5050
"url": "https://github.com/ardada2468/LLMTypeSafe.git"
5151
}
52-
}
52+
}

packages/gemini/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@google/generative-ai": "^0.2.1",
23-
"@ts-dspy/core": "^0.3.0"
23+
"@ts-dspy/core": "workspace:*"
2424
},
2525
"devDependencies": {
2626
"@rollup/plugin-node-resolve": "^15.0.0",

packages/openai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"clean": "rm -rf dist"
2020
},
2121
"dependencies": {
22-
"@ts-dspy/core": "^0.3.0"
22+
"@ts-dspy/core": "workspace:*"
2323
},
2424
"devDependencies": {
2525
"@rollup/plugin-node-resolve": "^15.0.0",

0 commit comments

Comments
 (0)