@tinacms/cli 0.0.0-a318f2f-20241010063440 → 0.0.0-aaceea1-20241023062538
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 +12 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
31
|
var import_clipanion8 = require("clipanion");
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "1.6.
|
|
34
|
+
var version = "1.6.10";
|
|
35
35
|
|
|
36
36
|
// src/next/commands/dev-command/index.ts
|
|
37
37
|
var import_clipanion2 = require("clipanion");
|
|
@@ -977,15 +977,20 @@ var createConfig = async ({
|
|
|
977
977
|
} else {
|
|
978
978
|
await import_fs_extra2.default.outputFile(staticMediaPath, `[]`);
|
|
979
979
|
}
|
|
980
|
+
const isBrowser = typeof window !== "undefined";
|
|
981
|
+
console.log("configManager IS BROWSER? - ", isBrowser);
|
|
980
982
|
const alias = {
|
|
981
983
|
TINA_IMPORT: configManager.prebuildFilePath,
|
|
982
984
|
SCHEMA_IMPORT: configManager.generatedGraphQLJSONPath,
|
|
983
985
|
STATIC_MEDIA_IMPORT: staticMediaPath,
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
...isBrowser && {
|
|
987
|
+
crypto: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
988
|
+
fs: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
989
|
+
os: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
990
|
+
path: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts")
|
|
991
|
+
}
|
|
988
992
|
};
|
|
993
|
+
console.log("alias - ", JSON.stringify(alias));
|
|
989
994
|
if (configManager.shouldSkipSDK()) {
|
|
990
995
|
alias["CLIENT_IMPORT"] = import_node_path2.default.join(
|
|
991
996
|
configManager.spaRootPath,
|
|
@@ -1019,7 +1024,8 @@ var createConfig = async ({
|
|
|
1019
1024
|
logLevel: "error",
|
|
1020
1025
|
optimizeDeps: {
|
|
1021
1026
|
force: true,
|
|
1022
|
-
include: ["react/jsx-runtime", "react/jsx-dev-runtime"]
|
|
1027
|
+
include: ["react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
1028
|
+
exclude: ["fs", "os", "path", "crypto"]
|
|
1023
1029
|
},
|
|
1024
1030
|
server: {
|
|
1025
1031
|
host: (_h = (_g = (_f = configManager.config) == null ? void 0 : _f.build) == null ? void 0 : _g.host) != null ? _h : false,
|
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-aaceea1-20241023062538",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/prompts": "^2.4.9",
|
|
39
39
|
"@types/yup": "^0.29.14",
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
|
-
"@tinacms/scripts": "
|
|
41
|
+
"@tinacms/scripts": "1.3.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@graphql-codegen/core": "^2.6.8",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"vite": "^4.5.5",
|
|
86
86
|
"yup": "^0.32.11",
|
|
87
87
|
"zod": "^3.23.8",
|
|
88
|
-
"@tinacms/app": "0.0.0-
|
|
89
|
-
"@tinacms/graphql": "
|
|
88
|
+
"@tinacms/app": "0.0.0-aaceea1-20241023062538",
|
|
89
|
+
"@tinacms/graphql": "1.5.6",
|
|
90
90
|
"@tinacms/metrics": "1.0.7",
|
|
91
|
-
"@tinacms/search": "
|
|
92
|
-
"@tinacms/schema-tools": "
|
|
93
|
-
"tinacms": "0.0.0-
|
|
91
|
+
"@tinacms/search": "1.0.33",
|
|
92
|
+
"@tinacms/schema-tools": "1.6.6",
|
|
93
|
+
"tinacms": "0.0.0-aaceea1-20241023062538"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"registry": "https://registry.npmjs.org"
|