Browse Source

update package.json's files

pull/1472/head
bang 9 years ago
parent
commit
5ec0392c1e
  1. 5
      package.json
  2. 3
      scripts/prenpm.js

5
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",

3
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');

Loading…
Cancel
Save