Skip to content

Commit

Permalink
Clean up pg-native in Makefile better
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed May 11, 2023
1 parent 2813660 commit 8fcd6bd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/pg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,14 @@ test-connection:

test-missing-native:
@echo "***Testing optional native install***"
@rm -rf node_modules/pg-native
@rm -rf node_modules/libpq
@node test/native/missing-native.js
@rm -rf node_modules/pg-native
@rm -rf node_modules/libpq

node_modules/pg-native/index.js:
@npm i --no-save pg-native

test-native: node_modules/pg-native/index.js test-connection
test-native: test-connection
@echo "***Testing native bindings***"
@npm i --no-save pg-native
@find test/native -name "*-tests.js" | $(node-command)
@find test/integration -name "*-tests.js" | $(node-command) native
@npm uninstall pg-native

test-integration: test-connection
@echo "***Testing Pure Javascript***"
Expand Down

0 comments on commit 8fcd6bd

Please sign in to comment.