jja 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/mjs/src/update/updateNpm.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# jja
|
|
2
2
|
|
|
3
|
-
[&label=版本号&labelColor=rgb(73,73,228)&color=rgb(0,0,0)>)](https://www.npmjs.com/package/jja) [&label=最后推码&labelColor=rgb(255,165,0)&color=rgb(0,0,0)>)](https://github.com/earthnutDev/jja) [&color=rgb(0,0,0)>)](https://github.com/earthnutDev/jja) [&color=rgb(0,0,0)>)](https://coveralls.io/github/earthnutDev/jja?branch=main) [&color=rgb(0,0,0)>)](https://codecov.io/gh/earthnutDev/jja)
|
|
6
|
-
|
|
7
|
-
[>)](https://github.com/earthnutDev/jja/blob/main/CHANGELOG.md) [>)](https://github.com/earthnutDev/jja/issues)
|
|
3
|
+
[&label=版本号&labelColor=rgb(73,73,228)&color=rgb(0,0,0)>)](https://www.npmjs.com/package/jja) [&color=rgb(0,0,0)>)](https://coveralls.io/github/earthnutDev/jja?branch=main) [&color=rgb(0,0,0)>)](https://codecov.io/gh/earthnutDev/jja) [?logo=github>)](https://github.com/earthnutDev/jja/issues)
|
|
8
4
|
|
|
9
5
|
---
|
|
10
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pen as o}from"color-pen";import{print as r}from"./print.mjs";import{command as t}from"../command.mjs";import{data as m}from"./data.mjs";import{greenPen as i}from"../greenPen.mjs";import{runOtherCode as e}from"a-node-tools";import{versionMange as a}from"./versionMange.mjs";import{updateDependence as p}from"../package/updateDependence.mjs";async function n(){r(o.hex("#9ff")("开始初始化"));"更新"==await t.question({text:"是否需要更新依赖?",tip:["跳过","更新"],private:!0})&&await p(m.log),r(i("依赖更新完毕")),r(o.hex("#666")("请等待更新包(你的 package.json 的 scripts 最好有 build 命令)"));return(await e("npm run build")).success?(r(i("打包测试完成")),await a()?(r(i("版本整理完毕,准备上到 npm")),void("提交"===await t.question({text:"是否需要提交代码?",tip:["跳过","提交"]})?(await e("npm publish"),r(i("上推 npm 包完毕"))):r(i(" 🚀 执行 🚀 🥣 🥱")))):t.error):t.error}export{n as updateNpm};
|
|
1
|
+
import{pen as o}from"color-pen";import{print as r}from"./print.mjs";import{command as t}from"../command.mjs";import{data as m}from"./data.mjs";import{greenPen as i}from"../greenPen.mjs";import{runOtherCode as e}from"a-node-tools";import{versionMange as a}from"./versionMange.mjs";import{updateDependence as p}from"../package/updateDependence.mjs";async function n(){r(o.hex("#9ff")("开始初始化"));"更新"==await t.question({text:"是否需要更新依赖?",tip:["跳过","更新"],private:!0})&&await p(m.log),r(i("依赖更新完毕")),r(o.hex("#666")("请等待更新包(你的 package.json 的 scripts 最好有 build 命令)"));return(await e("npm run build")).success?(r(i("打包测试完成")),await a()?(r(i("版本整理完毕,准备上到 npm")),void("提交"===await t.question({text:"是否需要提交代码?",tip:["跳过","提交"]})?(await e("npm publish"),r(i("上推 npm 包完毕"))):r(i(" 🚀 执行 🚀 🥣 🥱")))):t.error()):t.error()}export{n as updateNpm};
|