From c06ffc196389fedd7d5141d69fac3f4d95156193 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 1 May 2023 17:30:12 -0400 Subject: [PATCH] chore: add the build script to the pretest script. (#539) This small change allows a developer to just run npm install and then npm test without having to run the build step separately, which compiles the schema that is needed to run the tests successfully. Signed-off-by: Lucas Holmquist --- package-lock.json | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 900cb2c..691d54b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,6 +51,9 @@ "typescript": "^4.3.5", "webpack": "^5.74.0", "webpack-cli": "^4.10.0" + }, + "engines": { + "node": ">=12 <20.0.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 12a92f2..4c96a9a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint:js": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' cucumber.js", "lint:md": "remark .", "lint:fix": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' --fix", - "pretest": "npm run lint && npm run conformance", + "pretest": "npm run lint && npm run build && npm run conformance", "test": "mocha --require ts-node/register ./test/integration/**/*.ts", "test:one": "mocha --require ts-node/register", "conformance": "cucumber-js ./conformance/features/*-protocol-binding.feature -p default",