From 5c00b0e66be0bcd63cb925a3bb8a7dea01e36d17 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 8 Sep 2015 18:17:15 +0800 Subject: [PATCH] Fix publish problem --- index.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index a59ed43415..aaded5e42c 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ -import './style/index.less'; -import deprecate from 'util-deprecate'; +require('./style/index.less'); // matchMedia polyfill for // https://github.com/WickyNilliams/enquire.js/issues/82 @@ -48,7 +47,7 @@ const antd = { }; // deprecate antd.confirm -antd.confirm = deprecate(antd.confirm, 'antd.confirm() is deprecated, use antd.Modal.confirm() instead'); +antd.confirm = require('util-deprecate')(antd.confirm, 'antd.confirm() is deprecated, use antd.Modal.confirm() instead'); module.exports = antd; diff --git a/package.json b/package.json index ed9fd8e926..f4f9e5a911 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "0.9.0-beta4", + "version": "0.9.0-beta5", "stableVersion": "0.8.0", "title": "Ant Design", "description": "一个 UI 设计语言",