From c0bc6291769cd6d694d14c2773190ec271e7ffdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=96=E9=A5=BC?= Date: Thu, 15 Jun 2017 14:19:43 +0800 Subject: [PATCH 1/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c4c781..96dda79 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ci-task-runner", "version": "1.0.1", - "description": "在 CI 上运行的、支持增量与多进程并行构建任务调度程序", + "description": "this is a multiprocess building tasks scheduler", "main": "src/index.js", "bin": "bin/ci-task-runner", "scripts": { From 31c15e63a118d3bf696fd197c33aed2b1997bc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=96=E9=A5=BC?= Date: Wed, 28 Jun 2017 20:22:38 +0800 Subject: [PATCH 2/2] v1.0.2 --- CHANGELOG.md | 6 +++++- lib/worker.js | 2 ++ package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3653ac7..94c418c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ -## v1.1.0 +## v1.0.2 + +1. 修复运行 `npm` 命令可能报 “Maximum call stack size exceeded” 问题 + +## v1.0.1 1. 使用 `npm-run-path` 来设置环境变量,避免 2. `options.cache` 如果没有设置,则在 node_modules/.cache/ci-task-runner 中添加缓存 \ No newline at end of file diff --git a/lib/worker.js b/lib/worker.js index 1c2fa67..8e3f0f5 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -16,6 +16,8 @@ module.exports = (command, options = {}) => { options = defaultsDeep({}, options, { // 子进程继承父进程的环境变量 + env: process.env + }, { // 使用 npm 的 PATH env: npmRunPath.env({ cwd: options.cwd || process.cwd() diff --git a/package.json b/package.json index 1c4c781..53e79ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ci-task-runner", - "version": "1.0.1", + "version": "1.0.2", "description": "在 CI 上运行的、支持增量与多进程并行构建任务调度程序", "main": "src/index.js", "bin": "bin/ci-task-runner",