Skip to content

Commit 2a3aeb4

Browse files
fix: publish dist entry points for npm consumers (v1.0.19)
v1.0.18 pointed main/types at src/ for monorepo dev; publishConfig did not apply, breaking SqlExecutor and operator imports. Restore dist paths, add exports map and prepublishOnly build. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c6b6fb1 commit 2a3aeb4

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.19 — 2025-06-25
4+
5+
Hotfix: restore published package entry points to `dist/` so TypeScript consumers resolve `SqlExecutor`, `eq`, `PostgresAdapter`, and other exports correctly. v1.0.18 accidentally shipped with `main`/`types` pointing at `src/`.
6+
37
## 1.0.18 — 2025-06-25
48

59
PostgreSQL-focused release with a richer repository API, clearer npm packaging, and a contributor-friendly monorepo layout.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"apps/*"
88
],
99
"scripts": {
10-
"dev": "mprocs",
10+
"dev": "bun run build && mprocs",
1111
"build": "bun run --filter sqlkit build",
1212
"test": "bun run --filter sqlkit test",
1313
"format": "bun run --filter sqlkit format",

packages/sqlkit/package.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sqlkit",
3-
"version": "1.0.18",
3+
"version": "1.0.19",
44
"description": "TypeScript query builder and repository layer for PostgreSQL",
55
"license": "MIT",
66
"author": {
@@ -12,19 +12,22 @@
1212
"url": "https://github.com/sqlkit-dev/sqlkit"
1313
},
1414
"type": "module",
15-
"main": "src/index.ts",
16-
"types": "src/index.ts",
17-
"module": "src/index.ts",
18-
"publishConfig": {
19-
"main": "dist/index.cjs",
20-
"types": "dist/index.d.ts",
21-
"module": "dist/index.mjs"
15+
"main": "dist/index.cjs",
16+
"types": "dist/index.d.ts",
17+
"module": "dist/index.mjs",
18+
"exports": {
19+
".": {
20+
"types": "./dist/index.d.ts",
21+
"import": "./dist/index.mjs",
22+
"require": "./dist/index.cjs"
23+
}
2224
},
2325
"files": [
2426
"dist"
2527
],
2628
"scripts": {
2729
"build": "pkgroll --sourcemap --clean-dist --minify",
30+
"prepublishOnly": "npm run build",
2831
"tinker": "bun --watch src/tinker.ts",
2932
"test": "jest --testPathPattern=repository --runInBand",
3033
"format": "prettier --write \"src/**/*.ts\"",
@@ -51,5 +54,10 @@
5154
},
5255
"peerDependencies": {
5356
"pg": "^8.16.0"
57+
},
58+
"peerDependenciesMeta": {
59+
"pg": {
60+
"optional": false
61+
}
5462
}
5563
}

0 commit comments

Comments
 (0)