Skip to content

Commit

Permalink
Merge pull request #194 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore(npm): update dependencies
  • Loading branch information
jlenon7 committed Mar 28, 2024
2 parents 1dba5f7 + 55b3d70 commit cca65de
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 85 deletions.
146 changes: 70 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/artisan",
"version": "4.40.0",
"version": "4.41.0",
"description": "The Athenna CLI application. Built on top of commander and inspired in @adonisjs/ace.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -76,13 +76,13 @@
"ora": "^6.3.1"
},
"devDependencies": {
"@athenna/common": "^4.35.0",
"@athenna/config": "^4.19.0",
"@athenna/ioc": "^4.18.0",
"@athenna/logger": "^4.18.0",
"@athenna/common": "^4.36.0",
"@athenna/config": "^4.20.0",
"@athenna/ioc": "^4.19.0",
"@athenna/logger": "^4.19.0",
"@athenna/test": "^4.22.0",
"@athenna/tsconfig": "^4.12.0",
"@athenna/view": "^4.20.0",
"@athenna/view": "^4.21.0",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"commitizen": "^4.2.6",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/command/Npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Npm {
options?: LinkPackageOptions
) {
await Exec.link(libraries, options).then(() => {
if (Rc.file.base === 'package.json') {
if (Rc.file?.base === 'package.json') {
return Rc.reload()
}
})
Expand All @@ -64,7 +64,7 @@ export class Npm {
options?: InstallPackageOptions
) {
await Exec.install(libraries, options).then(() => {
if (Rc.file.base === 'package.json') {
if (Rc.file?.base === 'package.json') {
return Rc.reload()
}
})
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/helpers/command/NpmTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* file that was distributed with this source code.
*/

import { Exec } from '@athenna/common'
import { Rc } from '@athenna/config'
import { Exec, Path } from '@athenna/common'
import { Npm } from '#src/helpers/command/Npm'
import { Test, BeforeEach, type Context, Mock, AfterEach } from '@athenna/test'

Expand All @@ -17,6 +18,7 @@ export default class NpmTest {
@BeforeEach()
public async beforeEach() {
this.npm = new Npm()
Rc.setFile(Path.pwd('package.json'))
}

@AfterEach()
Expand Down

0 comments on commit cca65de

Please sign in to comment.