Skip to content

Commit f206293

Browse files
Clean up pg-native in Makefile better
1 parent 7152d4d commit f206293

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/pg/Makefile

+3-8
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,14 @@ test-connection:
3535

3636
test-missing-native:
3737
@echo "***Testing optional native install***"
38-
@rm -rf node_modules/pg-native
39-
@rm -rf node_modules/libpq
4038
@node test/native/missing-native.js
41-
@rm -rf node_modules/pg-native
42-
@rm -rf node_modules/libpq
4339

44-
node_modules/pg-native/index.js:
45-
@npm i --no-save pg-native
46-
47-
test-native: node_modules/pg-native/index.js test-connection
40+
test-native: test-connection
4841
@echo "***Testing native bindings***"
42+
@npm i --no-save pg-native
4943
@find test/native -name "*-tests.js" | $(node-command)
5044
@find test/integration -name "*-tests.js" | $(node-command) native
45+
@npm uninstall pg-native
5146

5247
test-integration: test-connection
5348
@echo "***Testing Pure Javascript***"

0 commit comments

Comments
 (0)