From 6449b59acbdd700a92eb0840d4325878508296b0 Mon Sep 17 00:00:00 2001 From: Matt Dawson Date: Fri, 23 Feb 2024 20:14:12 +1100 Subject: [PATCH 1/2] Updated tests to support Windows. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f0d9f8c..8743383 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "spectral rules for json:api", "scripts": { - "test": "./node_modules/.bin/spectral lint examples/valid/* -r ./.spectral.yml", + "test": "spectral lint examples/valid/* -r ./.spectral.yml", "prepare": "husky install" }, "repository": { From dda130d315d2dfd942090fd4cc6aa98b212797f2 Mon Sep 17 00:00:00 2001 From: Matt Dawson Date: Sat, 24 Feb 2024 08:51:52 +1100 Subject: [PATCH 2/2] Explicitly use npx to initiate test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8743383..cbdab50 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "spectral rules for json:api", "scripts": { - "test": "spectral lint examples/valid/* -r ./.spectral.yml", + "test": "npx spectral lint examples/valid/* -r ./.spectral.yml", "prepare": "husky install" }, "repository": {