@hubspot/project-parsing-lib 0.0.6-beta.0 → 0.0.6-experimental.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/project-parsing-lib",
3
- "version": "0.0.6-beta.0",
3
+ "version": "0.0.6-experimental.0",
4
4
  "description": "Parsing library for converting projects directory structures to their intermediate representation",
5
5
  "license": "Apache-2.0",
6
6
  "main": "src/index.js",
@@ -41,5 +41,9 @@
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=18"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "registry": "https://registry.npmjs.org/"
44
48
  }
45
49
  }
@@ -24,7 +24,8 @@ function calculateComponentDeps(fileValidationResult, parentComponents, appObjec
24
24
  return dependencies;
25
25
  }
26
26
  function mapToInternalType(type) {
27
- return (constants_1.externalTypeToInternalType[type] || type || '').toUpperCase();
27
+ const resolvedType = constants_1.externalTypeToInternalType[type] || type || '';
28
+ return resolvedType.toUpperCase().replace(/-/g, '_');
28
29
  }
29
30
  function transform(fileParseResults) {
30
31
  const parentTypes = Object.keys(constants_1.ProjectStructure);