@ttmg/cli 0.1.9-beta.5 → 0.1.9-beta.7

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.
@@ -12,7 +12,7 @@
12
12
  rel="stylesheet"
13
13
  />
14
14
  <title>TikTok Mini Games DevTool</title>
15
- <script type="module" crossorigin src="/assets/index-DHQib0T1.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-BSRB1No1.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="/assets/index-DUtMilVT.css">
17
17
  </head>
18
18
  <body>
@@ -3,11 +3,12 @@
3
3
  */
4
4
  const { debugPkgs } = require('ttmg-pack');
5
5
  const https = require('https');
6
+ const chalk = require('chalk');
6
7
  const fs = require('fs');
8
+ const path = require('path');
7
9
  const semver = require('semver');
8
10
  const { parentPort } = require('worker_threads');
9
11
  const { execSync } = require('child_process');
10
- const boxen = require('boxen');
11
12
 
12
13
  // 获取 npm 最新版本
13
14
  function getLatestVersion(pkgName) {
@@ -127,7 +128,7 @@ ${chalk.bold('Update available!')} ${chalk.red(oldVersion)} ${chalk.white('→')
127
128
  ${chalk.magenta('Changelog:')} ${chalk.cyan(`https://npmjs.com/package/${pkgName}/v/${newVersion}`)}
128
129
  To update, run: ${chalk.magenta(`npm i -g ${pkgName}`)}
129
130
  `.trim();
130
-
131
+ const boxen = require('boxen').default;
131
132
  console.log(
132
133
  boxen(message, {
133
134
  padding: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttmg/cli",
3
- "version": "0.1.9-beta.5",
3
+ "version": "0.1.9-beta.7",
4
4
  "description": "TikTok Mini Game Command Line Tool",
5
5
  "license": "ISC",
6
6
  "bin": {