Skip to content

Commit ff8e185

Browse files
committed
tooling updates, require node 6
1 parent 0ae554b commit ff8e185

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

Makefile

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1-
lint:
2-
node_modules/.bin/eslint --color --quiet *.js
3-
1+
.PHONY: test
42
test:
5-
$(MAKE) lint
6-
node --trace-deprecation --throw-deprecation test.js
3+
npx eslint --color --quiet *.js
4+
node --pending-deprecation --trace-deprecation --throw-deprecation --trace-warnings test.js
75

6+
.PHONY: publish
87
publish:
98
git push -u --tags origin master
109
npm publish
1110

11+
.PHONY: update
1212
update:
13-
node_modules/.bin/updates -u
13+
npx updates -u
1414
rm -rf node_modules
15-
yarn
16-
17-
npm-patch:
18-
npm version patch
19-
20-
npm-minor:
21-
npm version minor
22-
23-
npm-major:
24-
npm version major
25-
26-
patch: lint test npm-patch publish
27-
minor: lint test npm-minor publish
28-
major: lint test npm-major publish
29-
30-
.PHONY: lint test touch update patch minor major npm-patch npm-minor npm-major
15+
npm i
16+
17+
.PHONY: patch
18+
patch:
19+
$(MAKE) test
20+
npx ver patch
21+
$(MAKE) publish
22+
23+
.PHONY: minor
24+
minor:
25+
$(MAKE) test
26+
npx ver minor
27+
$(MAKE) publish
28+
29+
.PHONY: major
30+
major:
31+
$(MAKE) test
32+
npx ver major
33+
$(MAKE) publish

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "make test"
1010
},
1111
"engines": {
12-
"node": ">=4"
12+
"node": ">=6"
1313
},
1414
"files": [
1515
"index.js"
@@ -21,8 +21,9 @@
2121
"process"
2222
],
2323
"devDependencies": {
24-
"eslint": "^4.16.0",
25-
"eslint-config-silverwind": "^1.0.35",
26-
"updates": "^2.1.0"
24+
"eslint": "^5.7.0",
25+
"eslint-config-silverwind": "^2.0.9",
26+
"updates": "^5.0.1",
27+
"ver": "^3.0.0"
2728
}
2829
}

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const assert = require("assert");
88
// indicates the process was correctly orphaned. Also, it verifies the the
99
// internal tracking environment variable is not leaked in the child.
1010

11-
fork("test-child.js").on("exit", function() {
12-
setTimeout(function() {
11+
fork("test-child.js").on("exit", () => {
12+
setTimeout(() => {
1313
const [ppid, envVar] = fs.readFileSync("test-output", "utf8").split(",");
1414
fs.unlinkSync("test-output");
1515
assert(["0", "1"].includes(ppid));

0 commit comments

Comments
 (0)