@travetto/transformer 3.1.0-rc.5 → 3.1.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 +2 -2
- package/src/state.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/transformer",
|
|
3
|
-
"version": "3.1.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Functionality for AST transformations, with transformer registration, and general utils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"directory": "module/transformer"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@travetto/manifest": "^3.1.0
|
|
27
|
+
"@travetto/manifest": "^3.1.0",
|
|
28
28
|
"tslib": "^2.5.0",
|
|
29
29
|
"typescript": "^5.0.2"
|
|
30
30
|
},
|
package/src/state.ts
CHANGED
|
@@ -362,7 +362,7 @@ export class TransformerState implements State {
|
|
|
362
362
|
*/
|
|
363
363
|
getForeignTarget(state: TransformerState, ret: ForeignType): ts.Expression {
|
|
364
364
|
return state.fromLiteral({
|
|
365
|
-
Ⲑid: `${ret.source.split('node_modules')[1]}+${ret.name}`
|
|
365
|
+
Ⲑid: `${ret.source.split('node_modules/')[1]}+${ret.name}`
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
}
|