Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix node4 build issue #542

Merged
merged 2 commits into from
Sep 21, 2017
Merged

fix node4 build issue #542

merged 2 commits into from
Sep 21, 2017

Conversation

ahmadnassri
Copy link
Contributor

fixes: #541

Ahmad Nassri added 2 commits September 20, 2017 11:27
Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
provides minimal requirements warning
@CLAassistant
Copy link

CLAassistant commented Sep 20, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@marcysutton marcysutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@@ -3,6 +3,9 @@
"description": "Accessibility engine for automated Web UI testing",
"version": "3.0.0-alpha.4",
"license": "MPL-2.0",
"engines": {
"node": ">=4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify a node version if we're downgrading it to use var?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it just produces a warning for anybody running on older versions, so it's useful

@renatoi
Copy link

renatoi commented Sep 21, 2017

Maybe also add supported node version to test to catch these issues in the future:
https://github.com/dequelabs/axe-core/blob/develop/circle.yml

@marcysutton
Copy link
Contributor

@renatoi our tests running on Circle have different requirements than axe-core for end-users. We transpile lib JS using Babel for backwards-compatibility but this isn't required for our tests. The postinstall script wasn't caught by Babel unfortunately.

@marcysutton marcysutton merged commit c72badb into dequelabs:develop Sep 21, 2017
marcysutton pushed a commit that referenced this pull request Sep 21, 2017
* fix(node4): use var to declare variables

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

* feat(package): add engine hint to package.json

provides minimal requirements warning
marcysutton pushed a commit that referenced this pull request Dec 11, 2017
* fix(node4): use var to declare variables

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

* feat(package): add engine hint to package.json

provides minimal requirements warning
marcysutton pushed a commit that referenced this pull request Dec 12, 2017
* fix(node4): use var to declare variables

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

* feat(package): add engine hint to package.json

provides minimal requirements warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postinstall script fails on node4
4 participants