Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.

Commit 2d7d1d5

Browse files
committed
chore(deps): update dependencies
1 parent 1b5e25c commit 2d7d1d5

File tree

5 files changed

+517
-212
lines changed

5 files changed

+517
-212
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
},
3333
"homepage": "https://github.com/textlint/textlint-scripts",
3434
"devDependencies": {
35-
"husky": "^2.7.0",
36-
"lint-staged": "^8.2.1",
35+
"husky": "^3.0.0",
36+
"lint-staged": "^9.0.2",
3737
"prettier": "^1.8.1"
3838
},
3939
"dependencies": {
@@ -43,7 +43,7 @@
4343
"@babel/register": "^7.4.4",
4444
"confirmer": "^1.1.2",
4545
"cross-spawn": "^6.0.5",
46-
"mocha": "^5.2.0",
46+
"mocha": "^6.1.4",
4747
"pkg-to-readme": "^1.1.0",
4848
"textlint-tester": "^5.1.7"
4949
},

scripts/build.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// Do this as the first thing so that any code reading it knows the right env.
44
process.env.NODE_ENV = "production";
55

6-
var spawn = require("cross-spawn");
7-
var args = process.argv.slice(2);
8-
var babel = require.resolve(".bin/babel");
9-
var babelrc = require("../configs/babelrc");
6+
const spawn = require("cross-spawn");
7+
const args = process.argv.slice(2);
8+
const babel = require.resolve(".bin/babel");
9+
const babelrc = require("../configs/babelrc");
1010
// babel src --out-dir lib --watch --source-maps
11-
var child = spawn(
11+
const child = spawn(
1212
babel,
1313
["--presets", babelrc.presets.join(","), "--source-maps", "--out-dir", "lib", "src"].concat(args)
1414
);

scripts/init.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// LICENSE : MIT
22
"use strict";
3-
var path = require("path");
4-
var confirmer = require("confirmer");
5-
var pkgToReadme = require("pkg-to-readme");
6-
var fs = require("fs");
3+
const fs = require("fs");
4+
const path = require("path");
5+
const confirmer = require("confirmer");
6+
const pkgToReadme = require("pkg-to-readme");
77
// Update README.md
8-
var templatePath = path.resolve(__dirname, "..", "configs", "README.md.template");
8+
const templatePath = path.resolve(__dirname, "..", "configs", "README.md.template");
99
Promise.resolve()
1010
.then(function() {
1111
if (!fs.existsSync(path.resolve("README.md"))) {

scripts/test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// LICENSE : MIT
22
"use strict";
33
process.env.NODE_ENV = "test";
4-
var spawn = require("cross-spawn");
5-
var args = process.argv.slice(2);
6-
var mocha = require.resolve(".bin/mocha");
4+
const spawn = require("cross-spawn");
5+
const args = process.argv.slice(2);
6+
const mocha = require.resolve(".bin/mocha");
77
// mocha
8-
var babelRegisterPath = require.resolve("../configs/babel-register");
9-
var child = spawn(mocha, ["--require", babelRegisterPath, "--timeout", "5000", "--recursive", "test/"].concat(args));
8+
const babelRegisterPath = require.resolve("../configs/babel-register");
9+
const child = spawn(mocha, ["--require", babelRegisterPath, "--timeout", "10000", "--recursive", "test/"].concat(args));
1010

1111
child.stderr.on("data", function(data) {
1212
process.stderr.write(data);

0 commit comments

Comments
 (0)