Skip to content

Commit

Permalink
fix: add missing c8 dev dependency (#704)
Browse files Browse the repository at this point in the history
* fix: add missing `c8` dev dependency

* chore: lint
  • Loading branch information
samialdury authored Feb 12, 2024
1 parent b3e1789 commit a998d45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const typescriptTemplate = {
},
devDependencies: {
'@types/node': cliPkg.devDependencies['@types/node'],
c8: cliPkg.devDependencies.c8,
'ts-node': cliPkg.devDependencies['ts-node'],
concurrently: cliPkg.devDependencies.concurrently,
'fastify-tsconfig': cliPkg.devDependencies['fastify-tsconfig'],
Expand Down
3 changes: 2 additions & 1 deletion test/generate-typescript.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function define (t) {
})

test('should finish successfully with typescript template', async (t) => {
t.plan(24 + Object.keys(expected).length)
t.plan(25 + Object.keys(expected).length)
try {
await generate(workdir, typescriptTemplate)
await verifyPkg(t)
Expand Down Expand Up @@ -138,6 +138,7 @@ function define (t) {
t.equal(pkg.dependencies['@fastify/autoload'], cliPkg.devDependencies['@fastify/autoload'])
t.equal(pkg.dependencies['@fastify/sensible'], cliPkg.devDependencies['@fastify/sensible'])
t.equal(pkg.devDependencies['@types/node'], cliPkg.devDependencies['@types/node'])
t.equal(pkg.devDependencies.c8, cliPkg.devDependencies.c8)
t.equal(pkg.devDependencies['ts-node'], cliPkg.devDependencies['ts-node'])
t.equal(pkg.devDependencies.concurrently, cliPkg.devDependencies.concurrently)
t.equal(pkg.devDependencies.typescript, cliPkg.devDependencies.typescript)
Expand Down

0 comments on commit a998d45

Please sign in to comment.