From 7c06e53932bc2b84ec091cc25eb2eb4205add63d Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Sun, 15 Dec 2024 16:59:20 +0900 Subject: [PATCH] Use cross-env to run test --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d55a3e..2603510 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "scripts": { "lint": "eslint .", - "test": "npm run lint && CJS_ONLY=1 npm run build && c8 --exclude dist --exclude test -r text -r html -r lcov mocha && node support/specsplit.mjs", + "test": "npm run lint && cross-env CJS_ONLY=1 npm run build && c8 --exclude dist --exclude test -r text -r html -r lcov mocha && node support/specsplit.mjs", "doc": "node support/build_doc.mjs", "gh-doc": "npm run doc && gh-pages -d apidoc -f", "demo": "npm run lint && node support/build_demo.mjs", @@ -61,6 +61,7 @@ "benchmark": "~2.1.0", "c8": "^8.0.1", "chai": "^4.2.0", + "cross-env": "^7.0.3", "eslint": "^8.4.1", "eslint-config-standard": "^17.1.0", "express": "^4.14.0",