From 7fc72403b3ce200ceeb8be5b5b65f0f73de8cbb2 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 24 Apr 2023 11:07:30 -0400 Subject: [PATCH] chore: add the build script to the pretest script. 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 900cb2c1..691d54bb 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 12a92f2a..4c96a9a3 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",