@hubspot/cms-dev-server 0.14.8 → 0.14.9

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.
Files changed (2) hide show
  1. package/dist/run.js +4 -3
  2. package/package.json +3 -3
package/dist/run.js CHANGED
@@ -1029,7 +1029,7 @@ function trackUsage(action) {
1029
1029
  eventName: EVENT_NAME,
1030
1030
  action,
1031
1031
  nodeVersion: getNodeVersionData(),
1032
- version: "0.14.8",
1032
+ version: "0.14.9",
1033
1033
  os: getPlatform()
1034
1034
  };
1035
1035
  const uri = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
@@ -1854,9 +1854,10 @@ function resolvePlaceholderPath(placeholderPath, projectName, projectComponent)
1854
1854
  if (!process.env.DEFAULT_MODULE_PATH_REWRITE) {
1855
1855
  return placeholderPath;
1856
1856
  }
1857
- const expectedDefaultModulePath = `@default-modules/${projectName}/${process.env.DEFAULT_MODULE_PATH_REWRITE.split(":")[0]}`;
1858
1857
  const mappedPlaceholderPath = `@projects/${projectName}/${projectComponent}/components/modules/${process.env.DEFAULT_MODULE_PATH_REWRITE.split(":")[1]}`;
1859
- if (placeholderPath === expectedDefaultModulePath) {
1858
+ if (placeholderPath.startsWith(`@default-modules/${projectName}/`) && placeholderPath.endsWith(
1859
+ process.env.DEFAULT_MODULE_PATH_REWRITE.split(":")[0]
1860
+ )) {
1860
1861
  return mappedPlaceholderPath;
1861
1862
  }
1862
1863
  return placeholderPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.14.8",
3
+ "version": "0.14.9",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@hubspot/cli-lib": "^3.0.12",
29
- "@hubspot/cms-components": "^0.14.8",
29
+ "@hubspot/cms-components": "^0.14.9",
30
30
  "@inquirer/select": "^2.0.0",
31
31
  "@originjs/vite-plugin-commonjs": "^1.0.3",
32
32
  "@storybook/addon-actions": "7.0.7",
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "b3dc5e83ab0be8360c32fe0b220768fc32eef990"
110
+ "gitHead": "e79456fb98c863521801bb3513df454f8c652b4b"
111
111
  }