-
-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
Description
- It fails silently if you have
preferNativeBindings. It should show a warning to stdout. - In pnpm
node_modulesis not flattened so you need to explcitily declare the peer dep. - There should be the option to pass in the pg-native module. E.g.
createPool(uri, {pgModule: require('pg-native')}). - Add a note to the readme.md about it.
Fix:
"peerDependenciesMeta": {
"pg-native": {
"optional": true
}
},
Workaround for pnpm
.pnpmfile.cjs
// See: https://github.com/gajus/slonik/issues/281
if (pkg.name === 'slonik') {
pkg.dependencies = {
...pkg.dependencies,
pg: '*',
'pg-native': '*',
}
}
sveisvei