@fanwang/pack-util 1.0.8 → 1.0.9
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/bin/index.js +5 -4
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const program = new Command()
|
|
|
11
11
|
program
|
|
12
12
|
.name('pack-util')
|
|
13
13
|
.description('Pack all installed package in ./node_modules, and publish to Nexus self-hosted Registry.')
|
|
14
|
-
.version('1.0.
|
|
14
|
+
.version('1.0.9')
|
|
15
15
|
|
|
16
16
|
const getPackageNames = async () => {
|
|
17
17
|
const { stdout } = await execa('npm', ['list', '--all'])
|
|
@@ -34,9 +34,10 @@ var index = 0
|
|
|
34
34
|
const packPackage = async (packageName) => {
|
|
35
35
|
const { stdout } = await execa('npm', ['pack', packageName, '--pack-destination=./node_modules_pack'])
|
|
36
36
|
index++
|
|
37
|
-
|
|
38
|
-
process.stdout.
|
|
39
|
-
process.stdout.
|
|
37
|
+
console.log(`${index}: ${stdout}`)
|
|
38
|
+
// process.stdout.clearLine()
|
|
39
|
+
// process.stdout.cursorTo(0)
|
|
40
|
+
// process.stdout.write(`${index}: ${stdout}`) // 在同一行打印处理进度
|
|
40
41
|
return stdout
|
|
41
42
|
}
|
|
42
43
|
|