From d6dd34bdcc9471f9a1d21132e11895e27ae73585 Mon Sep 17 00:00:00 2001 From: Kagol Date: Wed, 22 Mar 2023 17:08:07 +0800 Subject: [PATCH] docs: update package.json --- build/release.js | 24 +++++++++++++----------- package.json | 24 ++++++++++++++++++++---- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/build/release.js b/build/release.js index 362a9dd..ee525d7 100644 --- a/build/release.js +++ b/build/release.js @@ -2,21 +2,23 @@ * 将 dist 目录生成 TGZ 的压缩包 */ -const fs = require('fs') -const path = require('path') -const { execSync } = require('child_process') +const fs = require("fs"); +const path = require("path"); +const { execSync } = require("child_process"); -const source = 'dist' +const source = "dist"; -fs.copyFileSync('package.json', path.join(source, 'package.json')) +fs.copyFileSync("package.json", path.join(source, "package.json")); -execSync('npm pack', { cwd: source }) +fs.copyFileSync("README.md", path.join(source, "README.md")); + +execSync("npm pack", { cwd: source }); fs.readdirSync(source).forEach((item) => { - if (item.endsWith('.tgz')) { - const tgzPath = path.join(source, item) + if (item.endsWith(".tgz")) { + const tgzPath = path.join(source, item); - fs.copyFileSync(tgzPath, path.join(item)) - fs.unlinkSync(tgzPath) + fs.copyFileSync(tgzPath, path.join(item)); + fs.unlinkSync(tgzPath); } -}) +}); diff --git a/package.json b/package.json index 849ba05..70d4c0c 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,26 @@ { "name": "@opentiny/vue-theme-mobile", - "version": "3.5.0", - "description": "@opentiny/vue-theme-mobile", - "main": "index.css", - "author": "tinyUI for Vue Team", + "version": "3.6.0", + "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", + "homepage": "https://opentiny.design/tiny-vue", + "repository": { + "type": "git", + "url": "https://github.com/opentiny/tiny-vue-theme-mobile" + }, + "keywords": [ + "vue", + "vue3", + "frontend", + "component-library", + "components", + "vue-components", + "opentiny", + "renderless-components", + "headless-components" + ], + "author": "OpenTiny Team", "license": "MIT", + "main": "index.css", "scripts": { "clean": "rimraf dist", "build:theme": "gulp build --gulpfile build/gulp-dist.js",