mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-24 08:45:55 -04:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user