-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1729 from yunnysunny/feat/old-node
Re-enable the test for old Node
- Loading branch information
Showing
7 changed files
with
181 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged && yarn test | ||
yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const package = require('../package.json'); | ||
|
||
const UNSUPPORT_DEPS_4_OLD = new Set([ | ||
'@commitlint/cli', | ||
'@commitlint/config-conventional', | ||
'eslint', | ||
'eslint-config-xo-lass', | ||
'eslint-plugin-compat', | ||
'eslint-plugin-node', | ||
'husky', | ||
'lint-staged', | ||
'remark-cli', | ||
'remark-preset-github', | ||
'xo' | ||
]); | ||
|
||
for (const item in package.devDependencies) { | ||
if (UNSUPPORT_DEPS_4_OLD.has(item)) { | ||
package.devDependencies[item] = undefined; | ||
} | ||
} | ||
|
||
fs.writeFileSync( | ||
path.join(__dirname, '../package.json'), | ||
JSON.stringify(package, null, 2) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.