From 10ea5c6aca8ad0ad92598f31cb2567c62f52fa19 Mon Sep 17 00:00:00 2001 From: inyourtime Date: Mon, 21 Jul 2025 14:16:00 +0700 Subject: [PATCH] chore(ci): fix node 24 test --- package.json | 2 +- {test/types => test-types}/imports.test-d.ts | 2 +- {test/types => test-types}/initialization.test-d.ts | 2 +- {test/types => test-types}/query.test-d.ts | 2 +- {test/types => test-types}/transaction.test-d.ts | 2 +- types/tsconfig.json | 3 --- 6 files changed, 5 insertions(+), 8 deletions(-) rename {test/types => test-types}/imports.test-d.ts (88%) rename {test/types => test-types}/initialization.test-d.ts (93%) rename {test/types => test-types}/query.test-d.ts (92%) rename {test/types => test-types}/transaction.test-d.ts (96%) delete mode 100644 types/tsconfig.json diff --git a/package.json b/package.json index 81fbac8..8d98cc8 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "pg": ">=6.0.0" }, "tsd": { - "directory": "test/types" + "directory": "test-types" }, "publishConfig": { "access": "public" diff --git a/test/types/imports.test-d.ts b/test-types/imports.test-d.ts similarity index 88% rename from test/types/imports.test-d.ts rename to test-types/imports.test-d.ts index e0e4016..90480f0 100644 --- a/test/types/imports.test-d.ts +++ b/test-types/imports.test-d.ts @@ -3,4 +3,4 @@ import defaultPluginImport, { fastifyPostgres as namedPluginImport, PostgresDb, PostgresPluginOptions -} from '../../index' +} from '../index' diff --git a/test/types/initialization.test-d.ts b/test-types/initialization.test-d.ts similarity index 93% rename from test/types/initialization.test-d.ts rename to test-types/initialization.test-d.ts index 00188d5..c12c273 100644 --- a/test/types/initialization.test-d.ts +++ b/test-types/initialization.test-d.ts @@ -2,7 +2,7 @@ import fastify from 'fastify' import * as pg from 'pg' import { expectAssignable, expectType } from 'tsd' -import fastifyPostgres, { PostgresDb } from '../../index' +import fastifyPostgres, { PostgresDb } from '../index' const app = fastify() diff --git a/test/types/query.test-d.ts b/test-types/query.test-d.ts similarity index 92% rename from test/types/query.test-d.ts rename to test-types/query.test-d.ts index d6b50bc..03049d4 100644 --- a/test/types/query.test-d.ts +++ b/test-types/query.test-d.ts @@ -2,7 +2,7 @@ import fastify from 'fastify' import { Client, Pool, PoolClient, QueryResult } from 'pg' import { expectAssignable, expectType } from 'tsd' -import fastifyPostgres, { PostgresDb } from '../../index' +import fastifyPostgres, { PostgresDb } from '../index' const app = fastify() diff --git a/test/types/transaction.test-d.ts b/test-types/transaction.test-d.ts similarity index 96% rename from test/types/transaction.test-d.ts rename to test-types/transaction.test-d.ts index 77aee80..38fd836 100644 --- a/test/types/transaction.test-d.ts +++ b/test-types/transaction.test-d.ts @@ -3,7 +3,7 @@ import { PoolClient, QueryResult } from 'pg' import { expectType } from 'tsd' // eslint-disable-next-line @typescript-eslint/no-unused-vars -import fastifyPostgres, { PostgresDb } from '../../index' +import fastifyPostgres, { PostgresDb } from '../index' const app = fastify() diff --git a/types/tsconfig.json b/types/tsconfig.json deleted file mode 100644 index 534ed56..0000000 --- a/types/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "fastify/types/tsconfig.json" -}