From a24ddfbc2684386430d378d0ebbac9b4e1b8ea07 Mon Sep 17 00:00:00 2001 From: Martin Lowe Date: Tue, 9 Nov 2021 12:03:45 -0500 Subject: [PATCH] Fix yarn to use direct node js file rather than npx to run openapi tests --- src/main/www/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/www/package.json b/src/main/www/package.json index 1d933d02..643fa024 100644 --- a/src/main/www/package.json +++ b/src/main/www/package.json @@ -38,8 +38,8 @@ "build": "lessc src/less/App.less src/App.css && craco build", "test": "craco test", "eject": "craco eject", - "test-spec": "npx @redocly/openapi-cli lint ../../../spec/openapi.yaml", - "start-spec": "npx @redocly/openapi-cli preview-docs -p 8999 ../../../spec/openapi.yaml", + "test-spec": "node ./node_modules/@redocly/openapi-cli/bin/cli.js lint ../../../spec/openapi.yaml", + "start-spec": "node ./node_modules/@redocly/openapi-cli/bin/cli.js preview-docs -p 8999 ../../../spec/openapi.yaml", "generate-json-schema": "node src/openapi2schema.js -s ../../../spec/openapi.yaml -t ../../test/resources" }, "eslintConfig": { -- GitLab