create-tina-app 2.1.7 → 2.1.8
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/dist/index.js +8 -8
- package/dist/util/packageManagers.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -324,11 +324,7 @@ var TEMPLATES = [
|
|
|
324
324
|
features: [
|
|
325
325
|
{
|
|
326
326
|
name: "Visual Editing",
|
|
327
|
-
description: "\
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
name: "ISR",
|
|
331
|
-
description: "\u274C"
|
|
327
|
+
description: "\u2705"
|
|
332
328
|
},
|
|
333
329
|
{
|
|
334
330
|
name: "SSG",
|
|
@@ -510,10 +506,10 @@ import { Command } from "commander";
|
|
|
510
506
|
|
|
511
507
|
// package.json
|
|
512
508
|
var name = "create-tina-app";
|
|
513
|
-
var version = "2.1.
|
|
509
|
+
var version = "2.1.8";
|
|
514
510
|
|
|
515
511
|
// src/util/packageManagers.ts
|
|
516
|
-
var PKG_MANAGERS = ["
|
|
512
|
+
var PKG_MANAGERS = ["pnpm", "yarn", "bun", "npm"];
|
|
517
513
|
|
|
518
514
|
// src/util/options.ts
|
|
519
515
|
function extractOptions(args) {
|
|
@@ -1082,8 +1078,12 @@ Need more help? Reach out to the TinaCMS community at ${TextStyles.link(
|
|
|
1082
1078
|
message: "Which package manager would you like to use?",
|
|
1083
1079
|
name: "packageManager",
|
|
1084
1080
|
type: "select",
|
|
1081
|
+
initial: Math.max(0, installedPkgManagers.indexOf("pnpm")),
|
|
1085
1082
|
choices: installedPkgManagers.map((manager) => {
|
|
1086
|
-
return {
|
|
1083
|
+
return {
|
|
1084
|
+
title: manager === "pnpm" ? "pnpm (recommended)" : manager,
|
|
1085
|
+
value: manager
|
|
1086
|
+
};
|
|
1087
1087
|
})
|
|
1088
1088
|
});
|
|
1089
1089
|
if (!Object.hasOwn(res, "packageManager")) {
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* To add a new supported package manager, add the usage command to this list.
|
|
4
4
|
* The `PackageManager` type will be automatically updated as a result.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PKG_MANAGERS: readonly ["
|
|
6
|
+
export declare const PKG_MANAGERS: readonly ["pnpm", "yarn", "bun", "npm"];
|
|
7
7
|
export type PackageManager = (typeof PKG_MANAGERS)[number];
|