Skip to content

Commit 185ef5f

Browse files
committed
Remove index from "module" property for Typescript
1 parent 741b22d commit 185ef5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypher/Typescript_Enrichment/Add_module_properties.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ OPTIONAL MATCH (class:TS:Class)-[:DECLARES]->(ts)
1818
,coalesce('@' + nullif(namespaceName, ''), '') AS namespaceNameWithAtPrefixed
1919
,replace(symbolName, coalesce(optionalClassName + '.', ''), '') AS symbolNameWithoutClassName
2020
SET ts.namespace = namespaceNameWithAtPrefixed
21-
,ts.module = modulePathName
21+
,ts.module = modulePathNameWithoutIndexAndDefault
2222
,ts.moduleName = moduleName
2323
,ts.name = coalesce(symbolNameWithoutClassName, indexAndExtensionOmittedName)
2424
,ts.extensionExtended = moduleNameExtensionExtended

0 commit comments

Comments
 (0)