diff --git a/package.json b/package.json index 116474f..214aa32 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "type": "commonjs", - "types": "index.d.ts", + "types": "types/index.d.ts", "scripts": { "check-examples": "tsc --build examples/typescript/*", "lint": "eslint", diff --git a/test-types/imports.tst.ts b/types/imports.tst.ts similarity index 90% rename from test-types/imports.tst.ts rename to types/imports.tst.ts index 90480f0..c1f7466 100644 --- a/test-types/imports.tst.ts +++ b/types/imports.tst.ts @@ -3,4 +3,4 @@ import defaultPluginImport, { fastifyPostgres as namedPluginImport, PostgresDb, PostgresPluginOptions -} from '../index' +} from '..' diff --git a/index.d.ts b/types/index.d.ts similarity index 100% rename from index.d.ts rename to types/index.d.ts diff --git a/test-types/initialization.tst.ts b/types/initialization.tst.ts similarity index 100% rename from test-types/initialization.tst.ts rename to types/initialization.tst.ts diff --git a/test-types/query.tst.ts b/types/query.tst.ts similarity index 100% rename from test-types/query.tst.ts rename to types/query.tst.ts diff --git a/test-types/transaction.tst.ts b/types/transaction.tst.ts similarity index 100% rename from test-types/transaction.tst.ts rename to types/transaction.tst.ts