Closed fixplz closed 8 years ago
What is the status with the type annotations in the type checker's source?
Self-type-checking is currently disabled and enabling it makes the code fail to run, mainly because Babel no longer exposes the Scope type.
Scope
I propose we change the package scripts to this and fix the problems, so the annotations stay functional:
"scripts": { "build": "babel -d ./lib ./src", "build-typed": "babel --plugins typecheck -d ./lib ./src", "prepublish": "npm run build", "pretest": "npm run build-typed", "test": "mocha", "watch": "mocha --watch" },
Sounds good to me. There used to be a babel issue which prevented this from working but it looks like it's fixed now, would really appreciate a PR :)
closed via #24
What is the status with the type annotations in the type checker's source?
Self-type-checking is currently disabled and enabling it makes the code fail to run, mainly because Babel no longer exposes the
Scope
type.I propose we change the package scripts to this and fix the problems, so the annotations stay functional: