update 0.7.4

This commit is contained in:
hufeixiong
2021-07-29 11:01:48 +08:00
parent 6328bfb17d
commit aa219eac04
7 changed files with 79 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-07-04 10:28:57
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-09 00:07:26
* @LastEditTime: 2021-07-29 10:59:24
* @FilePath: \dooringx\script\publish.js
*/
const fs = require('fs-extra');
@@ -10,6 +10,11 @@ const path = require('path');
const spawn = require('child_process').spawn;
const root = process.cwd();
const rootPath = path.resolve(root, 'packages', 'dooringx-lib');
const readme = path.resolve(root, 'README.md');
const libreadme = path.resolve(root, 'packages', 'dooringx-lib', 'README.md');
fs.removeSync(libreadme);
fs.copyFileSync(readme, libreadme);
const command = `npm`;
const args = [`publish`];
const child = spawn(command, args, {