Skip to content

Commit

Permalink
fix: use correct export for the config type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas950 committed May 11, 2023
1 parent 94e1125 commit 9973bcc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/two-snails-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@postgresql-typed/util": patch
"@postgresql-typed/cli": patch
---

fix config export
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"exports": {
".": "./lib/index.js",
"./config": "./lib/config.js"
"./lib/config": "./lib/config.js"
},
"types": "./lib/index.d.ts",
"license": "MPL-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/util/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const DEFAULT_CONFIG_FILES = [
];

export const DEFAULT_CONFIG_FILE = "postgresql-typed.config.ts";
export const DEFAULT_CONFIG_FILE_RAW = `import { defineConfig } from "@postgresql-typed/cli/config";
export const DEFAULT_CONFIG_FILE_RAW = `import { defineConfig } from "@postgresql-typed/cli/lib/config";
export default defineConfig({});`;

Expand Down

0 comments on commit 9973bcc

Please sign in to comment.