From 2964d2977f051e8ff8a1b2d0bf4417d94ed969aa Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 13 Aug 2019 14:47:57 +0800 Subject: [PATCH] update site --- CHANGELOG.en-US.md | 4 ++-- CHANGELOG.zh-CN.md | 4 ++-- antd-tools/gulpfile.js | 2 +- antd-tools/utils/getRunCmdEnv.js | 14 +++++++++++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 2e64b5bc0..989ccc3e7 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -14,8 +14,8 @@ `2019-08-12` - 🐞 Fix `MenuItem` parsing array `class` incorrect question [#1009](https://github.com/vueComponent/ant-design-vue/issues/1009) - 🐞 Fix an error when npm install [#997](https://github.com/vueComponent/ant-design-vue/issues/997) -- 🐞 Fix `Select` component cannot scroll under IE [#999] (https://github.com/vueComponent/ant-design-vue/issues/997) -- 🐞 Fix `Select` component does not trigger focus event problem [#999] (https://github.com/vueComponent/ant-design-vue/issues/997) +- 🐞 Fix `Select` component cannot scroll under IE [#999] (https://github.com/vueComponent/ant-design-vue/issues/999) +- 🐞 Fix `Select` component does not trigger focus event problem [#999] (https://github.com/vueComponent/ant-design-vue/issues/999) - 🐞 Fix `DropdownButton` `size` attribute does not work [#71b7c9](https://github.com/vueComponent/ant-design-vue/commit/71b7c9d33895f55694e28aaba4b2cfca7228771b) - 🐞 Fix `Table` component does not support vue 2.6 v-slot syntax problem [#1058](https://github.com/vueComponent/ant-design-vue/issues/1058) - 🌟 `Popover` add `builtinPlacements` attribute [#1073](https://github.com/vueComponent/ant-design-vue/issues/1073) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 3f329b900..103639c12 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -14,8 +14,8 @@ `2019-08-12` - 🐞 修复 `MenuItem` 解析数组 `class` 不正确问题 [#1009](https://github.com/vueComponent/ant-design-vue/issues/1009) - 🐞 修复 npm install 时报错问题 [#997](https://github.com/vueComponent/ant-design-vue/issues/997) -- 🐞 修复 `Select` 组件在 IE 下无法滚动问题 [#999](https://github.com/vueComponent/ant-design-vue/issues/997) -- 🐞 修复 `Select` 组件不触发 focus 事件问题 [#999](https://github.com/vueComponent/ant-design-vue/issues/997) +- 🐞 修复 `Select` 组件在 IE 下无法滚动问题 [#999](https://github.com/vueComponent/ant-design-vue/issues/999) +- 🐞 修复 `Select` 组件不触发 focus 事件问题 [#999](https://github.com/vueComponent/ant-design-vue/issues/999) - 🐞 修复 `DropdownButton` `size` 属性不生效问题 [#71b7c9](https://github.com/vueComponent/ant-design-vue/commit/71b7c9d33895f55694e28aaba4b2cfca7228771b) - 🐞 修复 `Table` 组件不支持 vue 2.6 v-slot 语法问题 [#1058](https://github.com/vueComponent/ant-design-vue/issues/1058) - 🌟 `Popover` 添加 `builtinPlacements` 属性 [#1073](https://github.com/vueComponent/ant-design-vue/issues/1073) diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index d9eedbaf7..a0a8ecc36 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -335,7 +335,7 @@ gulp.task( newVersion && newVersion.trim() === version ) { - runCmd('npm', ['pub'], code => { + runCmd('npm', ['run', 'pub'], code => { done(); }); } else { diff --git a/antd-tools/utils/getRunCmdEnv.js b/antd-tools/utils/getRunCmdEnv.js index d4cb7cc97..24d8ca99e 100644 --- a/antd-tools/utils/getRunCmdEnv.js +++ b/antd-tools/utils/getRunCmdEnv.js @@ -9,6 +9,18 @@ module.exports = function getRunCmdEnv() { }); // make sure `antd-tools/node_modules/.bin` in the PATH env const nodeModulesBinDir = path.join(__dirname, '../../node_modules/.bin'); - env.PATH = env.PATH ? `${nodeModulesBinDir}:${env.PATH}` : nodeModulesBinDir; + + Object.entries(env) + .filter( + v => + v + .slice(0, 1) + .pop() + .toLowerCase() === 'path', + ) + .forEach(v => { + const key = v.slice(0, 1).pop(); + env[key] = env[key] ? `${nodeModulesBinDir}:${env[key]}` : nodeModulesBinDir; + }); return env; };