Skip to content

Commit

Permalink
feat: test-d command (#93)
Browse files Browse the repository at this point in the history
* feat: test-d command

Signed-off-by: Žiga Strgar <ziga.strgar@gmail.com>

* feat: test-d command

Signed-off-by: Žiga Strgar <ziga.strgar@gmail.com>

* feat: run test-d preversion

Signed-off-by: Žiga Strgar <ziga.strgar@gmail.com>

* fix: lint

Signed-off-by: Žiga Strgar <ziga.strgar@gmail.com>

---------

Signed-off-by: Žiga Strgar <ziga.strgar@gmail.com>
  • Loading branch information
ZigaStrgar committed Jul 13, 2023
1 parent 2dad7e4 commit b8114cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"lint:fix": "ts-standard --fix | snazzy",
"prepublish": "npm run build",
"postversion": "git push --tags && git push origin main && echo \"Successfully published new package version $npm_package_version\"",
"preversion": "npm run lint && npm run test && npm run build",
"test": "tap test/*.test.ts --coverage"
"preversion": "npm run lint && npm run test && npm run test:d && npm run build",
"test": "tap test/*.test.ts --coverage",
"test:d": "tsd . -f test/types"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client } from '@bugsnag/js'
import fastify from 'fastify'
import { expectType } from 'tsd'

import plugin from '../../src/index'
import plugin from '../../src'

const app = fastify()

Expand Down

0 comments on commit b8114cc

Please sign in to comment.