diff --git a/package.json b/package.json index b842206..cbd75d0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/types/index.test-d.ts b/test/types/index.test-d.ts index 4daa31b..20576ed 100644 --- a/test/types/index.test-d.ts +++ b/test/types/index.test-d.ts @@ -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()