diff --git a/package-lock.json b/package-lock.json index f889452e..222ed686 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,6 +63,9 @@ "tsx": "^3.13.0", "unzipit": "^1.4.0", "wildcard-match": "^5.1.2" + }, + "devDependencies": { + "run-script-os": "^1.1.6" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -7326,6 +7329,16 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/run-script-os": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/run-script-os/-/run-script-os-1.1.6.tgz", + "integrity": "sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw==", + "dev": true, + "bin": { + "run-os": "index.js", + "run-script-os": "index.js" + } + }, "node_modules/rxjs": { "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", @@ -13748,6 +13761,12 @@ "queue-microtask": "^1.2.2" } }, + "run-script-os": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/run-script-os/-/run-script-os-1.1.6.tgz", + "integrity": "sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw==", + "dev": true + }, "rxjs": { "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", diff --git a/package.json b/package.json index 24758d6a..9f64fbbc 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "grab": "npx tsx scripts/commands/epg/grab.ts", "serve": "npx serve", "lint": "npx eslint ./scripts/**/*.ts ./sites/**/*.js ./tests/**/*.ts ./tests/**/*.js", - "test": "TZ=Pacific/Nauru npx jest --runInBand", + "test": "run-script-os", + "test:win32": "SET TZ=Pacific/Nauru && npx jest --runInBand", + "test:default": "TZ=Pacific/Nauru npx jest --runInBand", "postinstall": "npm run api:load" }, "private": true, @@ -77,5 +79,8 @@ "tsx": "^3.13.0", "unzipit": "^1.4.0", "wildcard-match": "^5.1.2" + }, + "devDependencies": { + "run-script-os": "^1.1.6" } } diff --git a/yarn.lock b/yarn.lock index 1c01ae6c..62e54274 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4363,6 +4363,11 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" +run-script-os@^1.1.6: + version "1.1.6" + resolved "https://registry.npmjs.org/run-script-os/-/run-script-os-1.1.6.tgz" + integrity sha512-ql6P2LzhBTTDfzKts+Qo4H94VUKpxKDFz6QxxwaUZN0mwvi7L3lpOI7BqPCq7lgDh3XLl0dpeXwfcVIitlrYrw== + rxjs@^7.2.0, rxjs@^7.5.5: version "7.8.1" resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz"