From 5ec0392c1ea8ce3e8886bdc4e1ab8e8b246eb904 Mon Sep 17 00:00:00 2001 From: bang Date: Fri, 22 Apr 2016 09:37:31 +0800 Subject: [PATCH] update package.json's files --- package.json | 5 +++-- scripts/prenpm.js | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4f7caceacb..7cbf3d1de4 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,10 @@ "files": [ "dist", "lib", - "style" + "style", + "type-definitions" ], - "typings":"dist/antd.d.ts", + "typings":"type-definitions/antd.d.ts", "license": "MIT", "dependencies": { "array-tree-filter": "~1.0.0", diff --git a/scripts/prenpm.js b/scripts/prenpm.js index 3cc1c6f8a3..9e62017eb5 100644 --- a/scripts/prenpm.js +++ b/scripts/prenpm.js @@ -11,7 +11,4 @@ fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8'); const antdCss = path.join(cwd, 'dist/antd.css'); fs.createReadStream(antdCss) .pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css'))); -const typings = path.join(cwd, 'type-definitions/antd.d.ts'); -fs.createReadStream(typings) - .pipe(fs.createWriteStream(path.join(cwd, 'dist/antd.d.ts'), 'utf-8')); console.log('prenpm done');