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 yarn node 8 #4

Merged
merged 4 commits into from
Jan 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ node_js:
- "4"
- "6"
- "8"
- "9"
env:
- INSTALL_CMD="npm install"
- INSTALL_CMD="yarn install"
script:
- npm install
- ${INSTALL_CMD}
- npm run coverage
- eslint --max-warnings 0 .
after_script:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License

Copyright (c) 2016 Nils Knappmeier
Copyright (c) 2018 Nils Knappmeier

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*!
* trace-and-clarify-if-possible <https://github.com/nknapp/trace-and-clarify-if-possible>
*
* Copyright (c) 2016 Nils Knappmeier.
* Copyright (c) 2018 Nils Knappmeier.
* Released under the MIT license.
*/

'use strict'

var versionStr = process.version.match(/v(\d+).*/)[1]
var majorVersion = Number(versionStr)
if (majorVersion >= 4 && majorVersion < 8) {
const versionStr = process.version.match(/v(\d+).*/)[1]
const majorVersion = Number(versionStr)
if (majorVersion >= 8) {
require('trace')
require('clarify')
console.log('Trace and clarify activated')
Expand Down