Skip to content

Commit

Permalink
fix: watcher ignores ts files in typescript projects (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
alemagio authored Apr 28, 2021
1 parent 89fc3b9 commit ca72e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const typescriptTemplate = {
test: 'npm run build:ts && tsc -p test/tsconfig.test.json && tap test/**/*.test.ts',
start: 'npm run build:ts && fastify start -l info dist/app.js',
'build:ts': 'tsc',
dev: 'tsc && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "tsc -w" "fastify start -w -l info -P dist/app.js"'
dev: 'tsc && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "tsc -w" "fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js"'
},
dependencies: {
fastify: cliPkg.dependencies.fastify,
Expand Down
2 changes: 1 addition & 1 deletion test/generate-typescript.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function define (t) {
t.equal(pkg.scripts.test, 'npm run build:ts && tsc -p test/tsconfig.test.json && tap test/**/*.test.ts')
t.equal(pkg.scripts.start, 'npm run build:ts && fastify start -l info dist/app.js')
t.equal(pkg.scripts['build:ts'], 'tsc')
t.equal(pkg.scripts.dev, 'tsc && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "tsc -w" "fastify start -w -l info -P dist/app.js"')
t.equal(pkg.scripts.dev, 'tsc && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "tsc -w" "fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js"')
t.equal(pkg.dependencies['fastify-cli'], '^' + cliPkg.version)
t.equal(pkg.dependencies.fastify, cliPkg.dependencies.fastify)
t.equal(pkg.dependencies['fastify-plugin'], cliPkg.devDependencies['fastify-plugin'] || cliPkg.dependencies['fastify-plugin'])
Expand Down

0 comments on commit ca72e80

Please sign in to comment.