@hubspot/cms-dev-server 0.16.1 → 0.16.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/internalSsr.js +6 -1
- package/dist/run.js +7 -2
- package/dist/storybook-main/main.js +6 -1
- package/package.json +3 -3
package/dist/internalSsr.js
CHANGED
|
@@ -271,7 +271,12 @@ var HEALTHCHECKS_ENABLED_DEFAULT = true;
|
|
|
271
271
|
var HEALTHCHECKS_STRICT_DEFAULT = false;
|
|
272
272
|
function getCMSAssetConfig(webRoot) {
|
|
273
273
|
const cmsAssetsPath = path.join(webRoot, "cms-assets.json");
|
|
274
|
-
|
|
274
|
+
const cmsThemePath = path.join(webRoot, "theme.json");
|
|
275
|
+
const configPathToUse = fs.existsSync(cmsAssetsPath) ? cmsAssetsPath : cmsThemePath;
|
|
276
|
+
const parsedConfig = JSON.parse(
|
|
277
|
+
fs.readFileSync(configPathToUse).toString()
|
|
278
|
+
);
|
|
279
|
+
return parsedConfig;
|
|
275
280
|
}
|
|
276
281
|
function getCMSAssetConfigIfExists(webRoot) {
|
|
277
282
|
try {
|
package/dist/run.js
CHANGED
|
@@ -291,7 +291,12 @@ function getEntryPointHashWithIndexSuffix(entryPoint, index) {
|
|
|
291
291
|
}
|
|
292
292
|
function getCMSAssetConfig(webRoot2) {
|
|
293
293
|
const cmsAssetsPath = path2.join(webRoot2, "cms-assets.json");
|
|
294
|
-
|
|
294
|
+
const cmsThemePath = path2.join(webRoot2, "theme.json");
|
|
295
|
+
const configPathToUse = fs.existsSync(cmsAssetsPath) ? cmsAssetsPath : cmsThemePath;
|
|
296
|
+
const parsedConfig = JSON.parse(
|
|
297
|
+
fs.readFileSync(configPathToUse).toString()
|
|
298
|
+
);
|
|
299
|
+
return parsedConfig;
|
|
295
300
|
}
|
|
296
301
|
var ENABLED_FEATURES_GATE_MAP = {
|
|
297
302
|
"cms:jsr:getServerSideProps": "CMS:JSRenderer:GetServerSideProps",
|
|
@@ -1050,7 +1055,7 @@ function trackUsage(action) {
|
|
|
1050
1055
|
eventName: EVENT_NAME,
|
|
1051
1056
|
action,
|
|
1052
1057
|
nodeVersion: getNodeVersionData(),
|
|
1053
|
-
version: "0.16.
|
|
1058
|
+
version: "0.16.3",
|
|
1054
1059
|
os: getPlatform()
|
|
1055
1060
|
};
|
|
1056
1061
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -166,7 +166,12 @@ function includesHublDataReference(templateSource) {
|
|
|
166
166
|
}
|
|
167
167
|
function getCMSAssetConfig(webRoot2) {
|
|
168
168
|
const cmsAssetsPath = path.join(webRoot2, "cms-assets.json");
|
|
169
|
-
|
|
169
|
+
const cmsThemePath = path.join(webRoot2, "theme.json");
|
|
170
|
+
const configPathToUse = fs.existsSync(cmsAssetsPath) ? cmsAssetsPath : cmsThemePath;
|
|
171
|
+
const parsedConfig = JSON.parse(
|
|
172
|
+
fs.readFileSync(configPathToUse).toString()
|
|
173
|
+
);
|
|
174
|
+
return parsedConfig;
|
|
170
175
|
}
|
|
171
176
|
function getCMSAssetConfigIfExists(webRoot2) {
|
|
172
177
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"publint": "publint --level warning --prod"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@hubspot/cms-components": "^0.16.
|
|
28
|
+
"@hubspot/cms-components": "^0.16.3",
|
|
29
29
|
"@hubspot/local-dev-lib": "^1.9.0",
|
|
30
30
|
"@inquirer/select": "^2.0.0",
|
|
31
31
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "ddf22fba29d9e7a524dd84091090c7998bd70b6a"
|
|
112
112
|
}
|