Skip to content

Commit

Permalink
package.json,CI.yml: add devDependencies
Browse files Browse the repository at this point in the history
This commit moved these dependencies to our `packages.json`
file. This allows us to manage all our dependencies in one
place and keep our project organized. Instead of adding each
package individually, we now simply execute `yarn` to install
all the packages specified in our `packages.json` file.
  • Loading branch information
Mersho committed Feb 1, 2024
1 parent 51c0663 commit d11dd65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
- name: Install yarn
- name: Install yarn & packages
run: |
npm install --global yarn
yarn add --dev jest typescript ts-jest @types/jest
yarn
- name: Print versions
run: |
git --version
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
- name: Install yarn
- name: Install yarn & packages
run: |
npm install --global yarn
yarn add --dev jest typescript ts-jest @types/jest ts-node
yarn
- name: Run typescript compiler
run: npx tsc
- name: Print versions
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"dependencies": {
"cosmiconfig": "8.0.0"
"cosmiconfig": "8.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}

0 comments on commit d11dd65

Please sign in to comment.