@tinacms/cli 0.61.22 → 0.61.24
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/tinacms +1 -2
- package/dist/index.js +8 -41
- package/package.json +5 -6
package/bin/tinacms
CHANGED
package/dist/index.js
CHANGED
|
@@ -302,7 +302,7 @@ var commander = __toModule(require("commander"));
|
|
|
302
302
|
|
|
303
303
|
// package.json
|
|
304
304
|
var name = "@tinacms/cli";
|
|
305
|
-
var version = "0.61.
|
|
305
|
+
var version = "0.61.24";
|
|
306
306
|
|
|
307
307
|
// src/cmds/audit/audit.ts
|
|
308
308
|
var import_graphql = __toModule(require("@tinacms/graphql"));
|
|
@@ -557,45 +557,10 @@ var nextPostPage = ({
|
|
|
557
557
|
// This is a demo file once you have tina setup feel free to delete this file
|
|
558
558
|
|
|
559
559
|
import Head from 'next/head'
|
|
560
|
-
import { createGlobalStyle } from 'styled-components'
|
|
561
560
|
import { useTina } from 'tinacms/dist/edit-state'
|
|
562
561
|
import { TinaMarkdown } from 'tinacms/dist/rich-text'
|
|
563
562
|
import client from '${usingSrc ? "../" : ""}../../../.tina/__generated__/client'
|
|
564
563
|
|
|
565
|
-
// Styles for markdown
|
|
566
|
-
const GlobalStyle = createGlobalStyle\`
|
|
567
|
-
h1,h2,h3,h4,h5 {
|
|
568
|
-
margin-bottom: 1.5rem;
|
|
569
|
-
margin-top: 1.5rem;
|
|
570
|
-
}
|
|
571
|
-
blockquote {
|
|
572
|
-
background-color: rgb(209,250,229);
|
|
573
|
-
}
|
|
574
|
-
h1 {
|
|
575
|
-
font-size: 45px;
|
|
576
|
-
}
|
|
577
|
-
h2 {
|
|
578
|
-
font-size: 35px;
|
|
579
|
-
}
|
|
580
|
-
h3 {
|
|
581
|
-
font-size: 25px;
|
|
582
|
-
}
|
|
583
|
-
h4 {
|
|
584
|
-
font-size: 22px;
|
|
585
|
-
}
|
|
586
|
-
ul {
|
|
587
|
-
padding-left: 0;
|
|
588
|
-
}
|
|
589
|
-
li {
|
|
590
|
-
list-style-type: none;
|
|
591
|
-
}
|
|
592
|
-
a {
|
|
593
|
-
font-weight: bold;
|
|
594
|
-
color: rgb(59,130,246);
|
|
595
|
-
text-decoration: underline;
|
|
596
|
-
}
|
|
597
|
-
\`
|
|
598
|
-
|
|
599
564
|
const BlogPage = (props) => {
|
|
600
565
|
const { data } = useTina({
|
|
601
566
|
query: props.query,
|
|
@@ -800,7 +765,6 @@ var nextPostPage = ({
|
|
|
800
765
|
<div className="relative px-4 sm:px-6 lg:px-8">
|
|
801
766
|
<div className="text-lg max-w-prose mx-auto">
|
|
802
767
|
<TinaMarkdown components={components} content={content} />
|
|
803
|
-
<GlobalStyle />
|
|
804
768
|
</div>
|
|
805
769
|
</div>
|
|
806
770
|
</div>
|
|
@@ -1123,7 +1087,7 @@ var checkVersion = (version2) => {
|
|
|
1123
1087
|
};
|
|
1124
1088
|
async function installDeps(ctx, next, options) {
|
|
1125
1089
|
const bar = new import_progress.default("Installing Tina packages. This might take a moment... :prog", 2);
|
|
1126
|
-
const deps = ["tinacms", "
|
|
1090
|
+
const deps = ["tinacms", "@tinacms/cli"];
|
|
1127
1091
|
bar.tick({
|
|
1128
1092
|
prog: ""
|
|
1129
1093
|
});
|
|
@@ -1319,7 +1283,9 @@ export const queries = (client)=>({})
|
|
|
1319
1283
|
export const client = ()=>{}
|
|
1320
1284
|
export default client
|
|
1321
1285
|
`);
|
|
1322
|
-
await import_fs_extra3.default.outputFile(import_path5.default.join(tinaGeneratedPath, ".gitignore"), `
|
|
1286
|
+
await import_fs_extra3.default.outputFile(import_path5.default.join(tinaGeneratedPath, ".gitignore"), `app
|
|
1287
|
+
db
|
|
1288
|
+
prebuild
|
|
1323
1289
|
client.ts
|
|
1324
1290
|
client.js
|
|
1325
1291
|
types.ts
|
|
@@ -1447,7 +1413,7 @@ var compileFile = async (options, fileName) => {
|
|
|
1447
1413
|
allowedTypes: ["js", "jsx", "tsx", "ts"],
|
|
1448
1414
|
errorMessage: `Must provide a ${fileName}.{js,jsx,tsx,ts}`
|
|
1449
1415
|
});
|
|
1450
|
-
await transpile(inputFile, `${fileName}.
|
|
1416
|
+
await transpile(inputFile, `${fileName}.cjs`, tinaTempPath, options.verbose, define, packageJSONFilePath);
|
|
1451
1417
|
} catch (e) {
|
|
1452
1418
|
await cleanup({ tinaTempPath });
|
|
1453
1419
|
throw new BuildSchemaError(e);
|
|
@@ -1459,7 +1425,7 @@ var compileFile = async (options, fileName) => {
|
|
|
1459
1425
|
});
|
|
1460
1426
|
let returnObject = {};
|
|
1461
1427
|
try {
|
|
1462
|
-
const schemaFunc = require(import_path5.default.join(tinaTempPath, `${fileName}.
|
|
1428
|
+
const schemaFunc = require(import_path5.default.join(tinaTempPath, `${fileName}.cjs`));
|
|
1463
1429
|
returnObject = schemaFunc.default;
|
|
1464
1430
|
await cleanup({ tinaTempPath });
|
|
1465
1431
|
} catch (e) {
|
|
@@ -1534,6 +1500,7 @@ var transpile = async (inputFile, outputFile, tempDir, verbose, define, packageJ
|
|
|
1534
1500
|
platform: "neutral",
|
|
1535
1501
|
target: ["node10.4"],
|
|
1536
1502
|
entryPoints: [prebuiltInputPath],
|
|
1503
|
+
format: "cjs",
|
|
1537
1504
|
treeShaking: true,
|
|
1538
1505
|
external: [...external, "./node_modules/*"],
|
|
1539
1506
|
tsconfig: tempTsConfigPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.24",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tinacms/scripts": "0.51.
|
|
24
|
+
"@tinacms/scripts": "0.51.3",
|
|
25
25
|
"@types/clear": "0.1.0",
|
|
26
26
|
"@types/cli-spinner": "^0.2.1",
|
|
27
27
|
"@types/cors": "2.8.5",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@graphql-codegen/visitor-plugin-common": "^2.4.0",
|
|
53
53
|
"@graphql-tools/graphql-file-loader": "^7.2.0",
|
|
54
54
|
"@graphql-tools/load": "^7.3.2",
|
|
55
|
-
"@tinacms/app": "0.0.
|
|
55
|
+
"@tinacms/app": "0.0.23",
|
|
56
56
|
"@tinacms/datalayer": "0.2.4",
|
|
57
|
-
"@tinacms/graphql": "0.63.
|
|
57
|
+
"@tinacms/graphql": "0.63.15",
|
|
58
58
|
"@tinacms/metrics": "0.0.3",
|
|
59
59
|
"@tinacms/schema-tools": "0.1.8",
|
|
60
60
|
"add": "^2.0.6",
|
|
@@ -70,11 +70,10 @@
|
|
|
70
70
|
"cors": "^2.8.5",
|
|
71
71
|
"dotenv": "^16.0.1",
|
|
72
72
|
"esbuild": "^0.15.5",
|
|
73
|
-
"esm": "3.2.25",
|
|
74
73
|
"express": "^4.17.1",
|
|
75
74
|
"fast-glob": "^3.2.4",
|
|
76
75
|
"fs-extra": "^9.0.1",
|
|
77
|
-
"graphql": "
|
|
76
|
+
"graphql": "15.8.0",
|
|
78
77
|
"ini": "^3.0.0",
|
|
79
78
|
"js-yaml": "^4.0.0",
|
|
80
79
|
"lodash": "^4.17.19",
|