Skip to content

Commit

Permalink
Merge pull request #10 from aui/master
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
aui committed Jun 29, 2017
2 parents e6f5218 + 7a4aeb1 commit 1b86c11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## v1.1.0
## v1.0.2

1. 修复运行 `npm` 命令可能报 “Maximum call stack size exceeded” 问题

## v1.0.1

1. 使用 `npm-run-path` 来设置环境变量,避免跨平台 bug
2. `options.cache` 如果没有设置,则在 node_modules/.cache/ci-task-runner 中添加缓存
2 changes: 2 additions & 0 deletions lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ module.exports = (command, options = {}) => {

options = defaultsDeep({}, options, {
// 子进程继承父进程的环境变量
env: process.env
}, {
// 使用 npm 的 PATH
env: npmRunPath.env({
cwd: options.cwd || process.cwd()
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ci-task-runner",
"version": "1.0.1",
"description": "在 CI 上运行的、支持增量与多进程并行构建任务调度程序",
"version": "1.0.2",
"description": "this is a multiprocess building tasks scheduler",
"main": "src/index.js",
"bin": "bin/ci-task-runner",
"scripts": {
Expand Down

0 comments on commit 1b86c11

Please sign in to comment.