Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
docs: update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Mar 22, 2023
1 parent 6223e27 commit d6dd34b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
24 changes: 13 additions & 11 deletions build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
})
});
24 changes: 20 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d6dd34b

Please sign in to comment.