Commit e780c0a9 authored by Panagiotis Skarvelis's avatar Panagiotis Skarvelis
Browse files

fix optional depentecies

parent e4d242e7
#!/bin/bash
#Used at post-installation to create fake modules if optionalDepenetdencies are not installed
[[ ! -f ./node_modules/pg-native/index.js ]] && bash -c "mkdir -p ./node_modules/pg-native && touch ./node_modules/pg-native/index.js" || exit 0
......@@ -31,7 +31,8 @@
"testesm": "node ./test/test.mjs",
"testcjs": "node ./test/test.cjs",
"testPostgreSql": "node --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm ./test/testLocalPostgreSql.ts",
"build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig.commonjs.json && ./setType.sh"
"build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig.commonjs.json && ./setType.sh",
"postinstall": "./fixOptionalDepentecies.sh"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment