Skip to content

Commit d6dd34b

Browse files
committed
docs: update package.json
1 parent 6223e27 commit d6dd34b

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

build/release.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
* 将 dist 目录生成 TGZ 的压缩包
33
*/
44

5-
const fs = require('fs')
6-
const path = require('path')
7-
const { execSync } = require('child_process')
5+
const fs = require("fs");
6+
const path = require("path");
7+
const { execSync } = require("child_process");
88

9-
const source = 'dist'
9+
const source = "dist";
1010

11-
fs.copyFileSync('package.json', path.join(source, 'package.json'))
11+
fs.copyFileSync("package.json", path.join(source, "package.json"));
1212

13-
execSync('npm pack', { cwd: source })
13+
fs.copyFileSync("README.md", path.join(source, "README.md"));
14+
15+
execSync("npm pack", { cwd: source });
1416

1517
fs.readdirSync(source).forEach((item) => {
16-
if (item.endsWith('.tgz')) {
17-
const tgzPath = path.join(source, item)
18+
if (item.endsWith(".tgz")) {
19+
const tgzPath = path.join(source, item);
1820

19-
fs.copyFileSync(tgzPath, path.join(item))
20-
fs.unlinkSync(tgzPath)
21+
fs.copyFileSync(tgzPath, path.join(item));
22+
fs.unlinkSync(tgzPath);
2123
}
22-
})
24+
});

package.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
{
22
"name": "@opentiny/vue-theme-mobile",
3-
"version": "3.5.0",
4-
"description": "@opentiny/vue-theme-mobile",
5-
"main": "index.css",
6-
"author": "tinyUI for Vue Team",
3+
"version": "3.6.0",
4+
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
5+
"homepage": "https://opentiny.design/tiny-vue",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/opentiny/tiny-vue-theme-mobile"
9+
},
10+
"keywords": [
11+
"vue",
12+
"vue3",
13+
"frontend",
14+
"component-library",
15+
"components",
16+
"vue-components",
17+
"opentiny",
18+
"renderless-components",
19+
"headless-components"
20+
],
21+
"author": "OpenTiny Team",
722
"license": "MIT",
23+
"main": "index.css",
824
"scripts": {
925
"clean": "rimraf dist",
1026
"build:theme": "gulp build --gulpfile build/gulp-dist.js",

0 commit comments

Comments
 (0)