From 506f49949984733dc1f084dbb4871caca2790312 Mon Sep 17 00:00:00 2001 From: tschaffter Date: Sun, 20 Jun 2021 21:38:56 -0700 Subject: [PATCH] Update npm scripts --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6b691d7..d1b624f 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,10 @@ "@openapitools/openapi-generator-cli": "2.3.3" }, "scripts": { - "generate:server": "openapi-generator-cli generate -g python-flask -o server -i $npm_config_specification", + "generate:server": "openapi-generator-cli generate -g python-flask -o server -i $npm_config_openapi", "generate:server:latest": "openapi-generator-cli generate -g python-flask -o server -i https://nlpsandbox.github.io/nlpsandbox-schemas/date-annotator/latest/openapi.json", "generate:server:edge": "openapi-generator-cli generate -g python-flask -o server -i https://nlpsandbox.github.io/nlpsandbox-schemas/date-annotator/edge/openapi.json", + "generate:server:version": "openapi-generator-cli generate -g python-flask -o server -i https://nlpsandbox.github.io/nlpsandbox-schemas/date-annotator/$npm_config_schemas_version/openapi.json", "lint": "cd server && flake8", "test": "cd server && tox", "install:dependencies": "npm ci && cd server && pip install -r requirements.txt",