@tinacms/cli 0.0.0-d9672bc-20250218033222 → 0.0.0-db8aa8e-20250228034006
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.
|
@@ -150,7 +150,7 @@ export declare const parseSections: ({ val }: {
|
|
|
150
150
|
}) => {
|
|
151
151
|
sections?: {
|
|
152
152
|
exclude?: string;
|
|
153
|
-
type?: "
|
|
153
|
+
type?: "document" | "heading" | "directory" | "jekyll-pages" | "jekyll-posts";
|
|
154
154
|
match?: string;
|
|
155
155
|
path?: string;
|
|
156
156
|
templates?: string[];
|
package/dist/index.js
CHANGED
|
@@ -27,15 +27,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
29
|
// src/index.ts
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
default: () =>
|
|
30
|
+
var index_exports = {};
|
|
31
|
+
__export(index_exports, {
|
|
32
|
+
default: () => index_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(index_exports);
|
|
35
35
|
var import_clipanion8 = require("clipanion");
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
|
-
var version = "1.
|
|
38
|
+
var version = "1.9.1";
|
|
39
39
|
|
|
40
40
|
// src/next/commands/dev-command/index.ts
|
|
41
41
|
var import_async_lock = __toESM(require("async-lock"));
|
|
@@ -997,10 +997,17 @@ var createConfig = async ({
|
|
|
997
997
|
} else {
|
|
998
998
|
await import_fs_extra2.default.outputFile(staticMediaPath, `[]`);
|
|
999
999
|
}
|
|
1000
|
+
console.log("ConfigManager", configManager.spaRootPath);
|
|
1000
1001
|
const alias = {
|
|
1001
1002
|
TINA_IMPORT: configManager.prebuildFilePath,
|
|
1002
1003
|
SCHEMA_IMPORT: configManager.generatedGraphQLJSONPath,
|
|
1003
1004
|
STATIC_MEDIA_IMPORT: staticMediaPath,
|
|
1005
|
+
react: import_node_path2.default.join(configManager.spaRootPath, "node_modules", "react"),
|
|
1006
|
+
"react-dom": import_node_path2.default.join(
|
|
1007
|
+
configManager.spaRootPath,
|
|
1008
|
+
"node_modules",
|
|
1009
|
+
"react-dom"
|
|
1010
|
+
),
|
|
1004
1011
|
crypto: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
1005
1012
|
fs: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
1006
1013
|
os: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
@@ -1029,7 +1036,7 @@ var createConfig = async ({
|
|
|
1029
1036
|
appType: "spa",
|
|
1030
1037
|
resolve: {
|
|
1031
1038
|
alias,
|
|
1032
|
-
dedupe: ["graphql", "tinacms"
|
|
1039
|
+
dedupe: ["graphql", "tinacms"]
|
|
1033
1040
|
},
|
|
1034
1041
|
define: {
|
|
1035
1042
|
/**
|
|
@@ -1079,7 +1086,12 @@ var createConfig = async ({
|
|
|
1079
1086
|
sourcemap: false,
|
|
1080
1087
|
outDir: configManager.outputFolderPath,
|
|
1081
1088
|
emptyOutDir: true,
|
|
1082
|
-
rollupOptions
|
|
1089
|
+
rollupOptions: {
|
|
1090
|
+
external: (id) => {
|
|
1091
|
+
console.log("I am rollup id", id);
|
|
1092
|
+
return id.includes("react") || id.includes("react-dom") ? false : true;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1083
1095
|
},
|
|
1084
1096
|
plugins: [
|
|
1085
1097
|
/**
|
|
@@ -2339,6 +2351,9 @@ var DevCommand = class extends BaseCommand {
|
|
|
2339
2351
|
this.outputSearchIndexPath = import_clipanion2.Option.String("--outputSearchIndexPath", {
|
|
2340
2352
|
description: "Path to write the search index to"
|
|
2341
2353
|
});
|
|
2354
|
+
this.noServer = import_clipanion2.Option.Boolean("--no-server", false, {
|
|
2355
|
+
description: "Do not start the dev server"
|
|
2356
|
+
});
|
|
2342
2357
|
this.indexingLock = new import_async_lock.default();
|
|
2343
2358
|
}
|
|
2344
2359
|
async catch(error) {
|
|
@@ -2488,6 +2503,10 @@ ${dangerText(e.message)}
|
|
|
2488
2503
|
await searchIndexClient.export(this.outputSearchIndexPath);
|
|
2489
2504
|
}
|
|
2490
2505
|
}
|
|
2506
|
+
if (this.noServer) {
|
|
2507
|
+
logger.info("--no-server option specified - Dev server not started");
|
|
2508
|
+
process.exit(0);
|
|
2509
|
+
}
|
|
2491
2510
|
if (!this.noWatch) {
|
|
2492
2511
|
this.watchContentFiles(
|
|
2493
2512
|
configManager,
|
|
@@ -6726,4 +6745,4 @@ cli.register(SearchIndexCommand);
|
|
|
6726
6745
|
cli.register(import_clipanion8.Builtins.DefinitionsCommand);
|
|
6727
6746
|
cli.register(import_clipanion8.Builtins.HelpCommand);
|
|
6728
6747
|
cli.register(import_clipanion8.Builtins.VersionCommand);
|
|
6729
|
-
var
|
|
6748
|
+
var index_default = cli;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-db8aa8e-20250228034006",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"@types/prompts": "^2.4.9",
|
|
38
38
|
"@types/yup": "^0.32.0",
|
|
39
39
|
"jest": "^29.7.0",
|
|
40
|
-
"@tinacms/scripts": "
|
|
40
|
+
"@tinacms/scripts": "0.0.0-db8aa8e-20250228034006"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@graphql-codegen/core": "^2.6.8",
|
|
44
44
|
"@graphql-codegen/plugin-helpers": "latest",
|
|
45
|
-
"@graphql-codegen/typescript": "^4.1.
|
|
46
|
-
"@graphql-codegen/typescript-operations": "^4.
|
|
45
|
+
"@graphql-codegen/typescript": "^4.1.3",
|
|
46
|
+
"@graphql-codegen/typescript-operations": "^4.4.1",
|
|
47
47
|
"@graphql-codegen/visitor-plugin-common": "^4.1.2",
|
|
48
48
|
"@graphql-inspector/core": "^4.2.2",
|
|
49
49
|
"@graphql-tools/graphql-file-loader": "^7.5.17",
|
|
50
50
|
"@graphql-tools/load": "^7.8.14",
|
|
51
|
-
"@rollup/pluginutils": "^5.1.
|
|
51
|
+
"@rollup/pluginutils": "^5.1.4",
|
|
52
52
|
"@svgr/core": "8.1.0",
|
|
53
53
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
54
54
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
55
|
-
"@tailwindcss/typography": "^0.5.
|
|
55
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
56
56
|
"@vitejs/plugin-react": "3.1.0",
|
|
57
57
|
"altair-express-middleware": "^7.3.6",
|
|
58
58
|
"async-lock": "^1.4.1",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"clipanion": "^3.2.1",
|
|
66
66
|
"cors": "^2.8.5",
|
|
67
67
|
"crypto-js": "^4.2.0",
|
|
68
|
-
"dotenv": "^16.4.
|
|
69
|
-
"esbuild": "^0.24.
|
|
70
|
-
"fs-extra": "^11.
|
|
68
|
+
"dotenv": "^16.4.7",
|
|
69
|
+
"esbuild": "^0.24.2",
|
|
70
|
+
"fs-extra": "^11.3.0",
|
|
71
71
|
"graphql": "15.8.0",
|
|
72
72
|
"js-yaml": "^4.1.0",
|
|
73
73
|
"log4js": "^6.9.1",
|
|
@@ -78,19 +78,21 @@
|
|
|
78
78
|
"prettier": "^2.8.8",
|
|
79
79
|
"progress": "^2.0.3",
|
|
80
80
|
"prompts": "^2.4.2",
|
|
81
|
-
"readable-stream": "^4.
|
|
82
|
-
"tailwindcss": "^3.4.
|
|
81
|
+
"readable-stream": "^4.7.0",
|
|
82
|
+
"tailwindcss": "^3.4.17",
|
|
83
83
|
"typanion": "3.13.0",
|
|
84
|
-
"typescript": "^5.
|
|
85
|
-
"vite": "^4.5.
|
|
86
|
-
"yup": "^1.
|
|
87
|
-
"zod": "^3.
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"@tinacms/
|
|
91
|
-
"@tinacms/
|
|
92
|
-
"tinacms": "
|
|
93
|
-
"@tinacms/schema-tools": "0.0.0-
|
|
84
|
+
"typescript": "^5.7.3",
|
|
85
|
+
"vite": "^4.5.9",
|
|
86
|
+
"yup": "^1.6.1",
|
|
87
|
+
"zod": "^3.24.2",
|
|
88
|
+
"react": "^18.3.1",
|
|
89
|
+
"react-dom": "^18.3.1",
|
|
90
|
+
"@tinacms/app": "0.0.0-db8aa8e-20250228034006",
|
|
91
|
+
"@tinacms/graphql": "0.0.0-db8aa8e-20250228034006",
|
|
92
|
+
"@tinacms/metrics": "1.0.9",
|
|
93
|
+
"@tinacms/schema-tools": "0.0.0-db8aa8e-20250228034006",
|
|
94
|
+
"tinacms": "0.0.0-db8aa8e-20250228034006",
|
|
95
|
+
"@tinacms/search": "0.0.0-db8aa8e-20250228034006"
|
|
94
96
|
},
|
|
95
97
|
"publishConfig": {
|
|
96
98
|
"registry": "https://registry.npmjs.org"
|