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).
This commit is contained in:
Don Cross
2021-09-18 21:59:06 -04:00
parent e03289a8cc
commit dc5bb5317b

View File

@@ -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 <cosinekitty@gmail.com>",
"license": "MIT",