Skip to content

Commit

Permalink
Merge pull request #243 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(vite): add --vite arg in nodemon
  • Loading branch information
jlenon7 authored Dec 31, 2024
2 parents 2e14068 + ccc3839 commit deb50c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "5.8.0",
"version": "5.9.0",
"description": "One foundation for multiple applications.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@athenna/common": "^5.5.0",
"@athenna/config": "^5.1.0",
"@athenna/cron": "^5.4.0",
"@athenna/http": "^5.11.0",
"@athenna/http": "^5.14.0",
"@athenna/ioc": "^5.0.0",
"@athenna/logger": "^5.1.0",
"@athenna/test": "^5.2.0",
Expand Down
10 changes: 8 additions & 2 deletions src/commands/ServeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,23 @@ export class ServeCommand extends BaseCommand {

if (this.watch) {
const nodemon = this.getNodemon()
const nodeArgs = []

if (this.vite) {
nodeArgs.push('--vite')
}

nodemon({
script: entrypoint.replace('.ts', '.js'),
args: nodeArgs,
ignore: [
'.git',
'.github',
'.idea',
'.vscode',
'.fleet',
Path.public(),
Path.resources('**/.edge'),
'public',
'*.edge',
'node_modules/**/node_modules'
],
watch: [
Expand Down

0 comments on commit deb50c3

Please sign in to comment.