create-vuepress-theme-plume 1.0.0-rc.147 → 1.0.0-rc.148
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/lib/index.js +10 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -12,6 +12,10 @@ import fs$1 from "node:fs/promises";
|
|
|
12
12
|
import handlebars from "handlebars";
|
|
13
13
|
import { osLocale } from "os-locale";
|
|
14
14
|
|
|
15
|
+
//#region package.json
|
|
16
|
+
var version = "1.0.0-rc.147";
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
15
19
|
//#region src/constants.ts
|
|
16
20
|
const languageOptions = [{
|
|
17
21
|
label: "English",
|
|
@@ -111,11 +115,11 @@ async function createPackageJson(mode, pkg, { packageManager, docsDir, siteName,
|
|
|
111
115
|
pkg.version = "1.0.0";
|
|
112
116
|
pkg.description = siteDescription;
|
|
113
117
|
if (packageManager !== "npm") {
|
|
114
|
-
let version = await getPackageManagerVersion(packageManager);
|
|
115
|
-
if (version) {
|
|
116
|
-
if (packageManager === "yarn" && version.startsWith("1")) version = "4.6.0";
|
|
117
|
-
pkg.packageManager = `${packageManager}@${version}`;
|
|
118
|
-
if (packageManager === "pnpm" && version.startsWith("10")) pkg.pnpm = { onlyBuiltDependencies: ["@parcel/watcher", "esbuild"] };
|
|
118
|
+
let version$1 = await getPackageManagerVersion(packageManager);
|
|
119
|
+
if (version$1) {
|
|
120
|
+
if (packageManager === "yarn" && version$1.startsWith("1")) version$1 = "4.6.0";
|
|
121
|
+
pkg.packageManager = `${packageManager}@${version$1}`;
|
|
122
|
+
if (packageManager === "pnpm" && version$1.startsWith("10")) pkg.pnpm = { onlyBuiltDependencies: ["@parcel/watcher", "esbuild"] };
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
const userInfo = await getUserInfo();
|
|
@@ -536,7 +540,7 @@ const cli = cac("create-vuepress-theme-plume");
|
|
|
536
540
|
cli.command("[root]", "create a new vuepress-theme-plume project / 创建新的 vuepress-theme-plume 项目").action((root) => run(Mode.create, root));
|
|
537
541
|
cli.command("init [root]", "Initial vuepress-theme-plume in the existing project / 在现有项目中初始化 vuepress-theme-plume").action((root) => run(Mode.init, root));
|
|
538
542
|
cli.help();
|
|
539
|
-
cli.version(
|
|
543
|
+
cli.version(version);
|
|
540
544
|
cli.parse();
|
|
541
545
|
|
|
542
546
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuepress-theme-plume",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.148",
|
|
5
5
|
"description": "The cli for create vuepress-theme-plume's project",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
|
7
7
|
"license": "MIT",
|