Skip to content

Commit e054849

Browse files
committed
[CONJS-342] Move TypeScript type dependencies from peer to regular dependencies and fix import paths
1 parent be72ebf commit e054849

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

package.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
},
2222
"private": false,
2323
"scripts": {
24-
"test": "npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base",
24+
"test": "npm run test:types-prettier && npm run test:prettier && npm run test:tsc && npm run test:types && npm run test:lint && npm run test:base",
2525
"test:base": "vitest --no-file-parallelism --isolate --reporter=verbose run",
2626
"test:lint": "eslint \"*.js\" \"{tools,lib,test,benchmarks}/**/*.js\"",
27+
"test:tsc": "tsc --noEmit -p types/tsconfig.json",
2728
"test:types": "eslint \"types/*.ts\"",
2829
"test:types-prettier": "prettier --write \"types/*.ts\"",
2930
"test:prettier": "prettier --write \"*.js\" \"{tools,lib,test,benchmarks}/**/*.js\"",
@@ -60,19 +61,9 @@
6061
},
6162
"author": "Diego Dupin <diego.dupin@mariadb.com>",
6263
"license": "LGPL-2.1-or-later",
63-
"peerDependencies": {
64-
"@types/geojson": ">=7946.0.0",
65-
"@types/node": ">=18"
66-
},
67-
"peerDependenciesMeta": {
68-
"@types/geojson": {
69-
"optional": true
70-
},
71-
"@types/node": {
72-
"optional": true
73-
}
74-
},
7564
"dependencies": {
65+
"@types/geojson": "^7946.0.16",
66+
"@types/node": ">=18",
7667
"denque": "^2.1.0",
7768
"iconv-lite": "^0.7.2",
7869
"lru-cache": "^10.4.3"

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import type {
2121
SqlImportOptions,
2222
ConnectionInfo,
2323
UserConnectionConfig
24-
} from './share.d.ts';
24+
} from './share';
2525

26-
export * from './share.d.ts';
26+
export * from './share';
2727

2828
export const version: string;
2929

0 commit comments

Comments
 (0)