Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(npm): update dependencies #194

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading