From dc5bb5317bebbb7e34d104c302face661ecc5078 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 18 Sep 2021 21:59:06 -0400 Subject: [PATCH] No longer assume typescript is installed globally. The unit tests for the calendar.ts demo program assumed that the 'tsc' typescript compiler was installed globally. Redirect it to the typescript installed in the 'generate' folder. I could have just made typescript a dependency, but it seemed wasteful of disk space to have two copies of the same thing (it is currently 54MB). --- demo/nodejs/calendar/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/nodejs/calendar/package.json b/demo/nodejs/calendar/package.json index ba565f24..f0adadc3 100644 --- a/demo/nodejs/calendar/package.json +++ b/demo/nodejs/calendar/package.json @@ -4,7 +4,7 @@ "description": "Demo of enumerating interesting astronomy events for a calendar.", "main": "index.js", "scripts": { - "test": "tsc && node dist/calendar.js > test/calendar.txt && diff test/calendar_correct.txt test/calendar.txt" + "test": "../../../generate/node_modules/typescript/bin/tsc && node dist/calendar.js > test/calendar.txt && diff test/calendar_correct.txt test/calendar.txt" }, "author": "Don Cross ", "license": "MIT",