@mintplayer/polyglot-target-typescript 0.7.0 → 0.8.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 +1 -1
- package/polyglot-plugin.json +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/polyglot-target-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MintPlayer Polyglot TypeScript / JavaScript target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyglot",
|
package/polyglot-plugin.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"name": "typescript",
|
|
4
|
+
"crossDirImports": true,
|
|
4
5
|
"capabilities": {},
|
|
5
6
|
"spec": {
|
|
6
7
|
"name": "typescript",
|
|
@@ -2295,14 +2296,14 @@
|
|
|
2295
2296
|
"when": [
|
|
2296
2297
|
[
|
|
2297
2298
|
{ "eq": [ "item.isNamespace", "true" ] },
|
|
2298
|
-
{ "tmpl": [ "import * as ", { "get": "item.ns" }, " from \"
|
|
2299
|
+
{ "tmpl": [ "import * as ", { "get": "item.ns" }, " from \"", { "get": "item.path" }, "\";" ] }
|
|
2299
2300
|
],
|
|
2300
2301
|
[
|
|
2301
2302
|
{ "not": { "eq": [ "item.names", "" ] } },
|
|
2302
|
-
{ "tmpl": [ "import { ", { "get": "item.names" }, " } from \"
|
|
2303
|
+
{ "tmpl": [ "import { ", { "get": "item.names" }, " } from \"", { "get": "item.path" }, "\";" ] }
|
|
2303
2304
|
]
|
|
2304
2305
|
],
|
|
2305
|
-
"else": { "tmpl": [ "import \"
|
|
2306
|
+
"else": { "tmpl": [ "import \"", { "get": "item.path" }, "\";" ] }
|
|
2306
2307
|
}
|
|
2307
2308
|
}
|
|
2308
2309
|
}
|