From c7202f6fcc76906b8831dfdcd661741e6c7d0e8d Mon Sep 17 00:00:00 2001 From: AnthonyLzq Date: Wed, 6 Jul 2022 00:04:26 -0500 Subject: [PATCH] fix: conditional for test script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8564a53..83ddabc 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "service": "node ./bin", "help": "node ./bin --help", "release": "standard-version", - "test": "if [ ! -d \"example\" ]; then npm run build; fi && npm run test-express && npm run test-fastify", + "test": "if [ ! -d \"example/fastify/node_modules\" ]; then npm run build; fi && npm run test-express && npm run test-fastify", "build": "npm run rm && npm run build-express && npm run build-fastify && npm run build-express-graphql && npm run build-fastify-graphql", "build-express": "npm run rm-express && npm run cd-mv-example && node -r dotenv/config ./bin -N example/express -D 'This is a test using express' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H --tests --ghat && npm run rm-git-express", "build-fastify": "npm run rm-fastify && npm run cd-mv-example && node -r dotenv/config ./bin -N example/fastify -D 'This is a test using fastify' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H -F --tests --ghat && npm run rm-git-fastify",