@tinacms/cli 1.9.2 → 1.9.3
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 +31 -12
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
35
35
|
var import_clipanion8 = require("clipanion");
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
|
-
var version = "1.9.
|
|
38
|
+
var version = "1.9.3";
|
|
39
39
|
|
|
40
40
|
// src/next/commands/dev-command/index.ts
|
|
41
41
|
var import_async_lock = __toESM(require("async-lock"));
|
|
@@ -1182,7 +1182,7 @@ var MediaModel = class {
|
|
|
1182
1182
|
this.rootPath,
|
|
1183
1183
|
this.publicFolder,
|
|
1184
1184
|
this.mediaRoot,
|
|
1185
|
-
args.searchPath
|
|
1185
|
+
decodeURIComponent(args.searchPath)
|
|
1186
1186
|
);
|
|
1187
1187
|
const searchPath = parseMediaFolder(args.searchPath);
|
|
1188
1188
|
if (!await import_fs_extra3.default.pathExists(folderPath)) {
|
|
@@ -1254,7 +1254,7 @@ var MediaModel = class {
|
|
|
1254
1254
|
this.rootPath,
|
|
1255
1255
|
this.publicFolder,
|
|
1256
1256
|
this.mediaRoot,
|
|
1257
|
-
args.searchPath
|
|
1257
|
+
decodeURIComponent(args.searchPath)
|
|
1258
1258
|
);
|
|
1259
1259
|
await import_fs_extra3.default.stat(file);
|
|
1260
1260
|
await import_fs_extra3.default.remove(file);
|
|
@@ -1739,7 +1739,10 @@ var Codegen = class {
|
|
|
1739
1739
|
this.noClientBuildCache = noClientBuildCache;
|
|
1740
1740
|
}
|
|
1741
1741
|
async writeConfigFile(fileName, data) {
|
|
1742
|
-
const filePath = import_path4.default.join(
|
|
1742
|
+
const filePath = import_path4.default.join(
|
|
1743
|
+
this.configManager.generatedFolderPath,
|
|
1744
|
+
fileName
|
|
1745
|
+
);
|
|
1743
1746
|
await import_fs_extra4.default.ensureFile(filePath);
|
|
1744
1747
|
await import_fs_extra4.default.outputFile(filePath, data);
|
|
1745
1748
|
if (this.configManager.hasSeparateContentRoot()) {
|
|
@@ -2999,7 +3002,9 @@ ${dangerText(e.message)}
|
|
|
2999
3002
|
`ERROR: Branch not configured in tina search configuration.`
|
|
3000
3003
|
)}`
|
|
3001
3004
|
);
|
|
3002
|
-
throw new Error(
|
|
3005
|
+
throw new Error(
|
|
3006
|
+
"Branch not configured in tina search configuration."
|
|
3007
|
+
);
|
|
3003
3008
|
}
|
|
3004
3009
|
if (!((_d = configManager.config) == null ? void 0 : _d.clientId)) {
|
|
3005
3010
|
logger.error(`${dangerText(`ERROR: clientId not configured.`)}`);
|
|
@@ -3142,7 +3147,10 @@ ${dangerText(e.message)}
|
|
|
3142
3147
|
});
|
|
3143
3148
|
throw e;
|
|
3144
3149
|
}
|
|
3145
|
-
const branchBar = new import_progress2.default(
|
|
3150
|
+
const branchBar = new import_progress2.default(
|
|
3151
|
+
"Checking branch is on Tina Cloud. :prog",
|
|
3152
|
+
1
|
|
3153
|
+
);
|
|
3146
3154
|
if (branchKnown) {
|
|
3147
3155
|
branchBar.tick({
|
|
3148
3156
|
prog: "\u2705"
|
|
@@ -3323,7 +3331,9 @@ Additional info:
|
|
|
3323
3331
|
const { clientId, branch, isLocalClient, host } = (0, import_schema_tools2.parseURL)(apiURL);
|
|
3324
3332
|
if (isLocalClient || !host || !clientId || !branch) {
|
|
3325
3333
|
if (verbose) {
|
|
3326
|
-
logger.info(
|
|
3334
|
+
logger.info(
|
|
3335
|
+
logText("Not using Tina Cloud, skipping Tina Schema check")
|
|
3336
|
+
);
|
|
3327
3337
|
}
|
|
3328
3338
|
return;
|
|
3329
3339
|
}
|
|
@@ -4845,7 +4855,6 @@ var transformForestryFieldsToTinaFields = ({
|
|
|
4845
4855
|
name: stringifyTemplateName(tem, tem)
|
|
4846
4856
|
};
|
|
4847
4857
|
if (t.name != tem) {
|
|
4848
|
-
;
|
|
4849
4858
|
t.nameOverride = tem;
|
|
4850
4859
|
}
|
|
4851
4860
|
templates2.push(t);
|
|
@@ -5990,10 +5999,13 @@ var addSelfHostedTinaAuthToConfig = async (config2, configFile) => {
|
|
|
5990
5999
|
const { configImports, configAuthProviderClass, extraTinaCollections } = config2.authProvider;
|
|
5991
6000
|
const importMap = {
|
|
5992
6001
|
// iterate over configImports and add them to the import map
|
|
5993
|
-
...configImports.reduce(
|
|
5994
|
-
acc
|
|
5995
|
-
|
|
5996
|
-
|
|
6002
|
+
...configImports.reduce(
|
|
6003
|
+
(acc, { from, imported }) => {
|
|
6004
|
+
acc[from] = imported;
|
|
6005
|
+
return acc;
|
|
6006
|
+
},
|
|
6007
|
+
{}
|
|
6008
|
+
)
|
|
5997
6009
|
};
|
|
5998
6010
|
const transformedSourceFileResult = import_typescript3.default.transform(
|
|
5999
6011
|
sourceFile,
|
|
@@ -6448,6 +6460,13 @@ ${titleText(" TinaCMS ")} has been initialized!`));
|
|
|
6448
6460
|
logger.info(
|
|
6449
6461
|
"To get started run: " + cmdText(frameworkDevCmds[framework.name]({ packageManager }))
|
|
6450
6462
|
);
|
|
6463
|
+
if (framework.name === "hugo") {
|
|
6464
|
+
logger.info(
|
|
6465
|
+
focusText("Hugo is required. "),
|
|
6466
|
+
"Don't have Hugo installed? Follow this guide to set it up: ",
|
|
6467
|
+
linkText("https://gohugo.io/installation/")
|
|
6468
|
+
);
|
|
6469
|
+
}
|
|
6451
6470
|
logger.info(
|
|
6452
6471
|
"To get your site production ready, run: " + cmdText(`tinacms init backend`)
|
|
6453
6472
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"vite": "^4.5.9",
|
|
86
86
|
"yup": "^1.6.1",
|
|
87
87
|
"zod": "^3.24.2",
|
|
88
|
-
"@tinacms/app": "2.2.
|
|
88
|
+
"@tinacms/app": "2.2.3",
|
|
89
89
|
"@tinacms/graphql": "1.5.14",
|
|
90
90
|
"@tinacms/metrics": "1.0.9",
|
|
91
91
|
"@tinacms/schema-tools": "1.7.2",
|
|
92
92
|
"@tinacms/search": "1.0.41",
|
|
93
|
-
"tinacms": "2.7.
|
|
93
|
+
"tinacms": "2.7.3"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"registry": "https://registry.npmjs.org"
|