@typemf/generator 0.8.1 → 0.9.1
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/README.md +18 -0
- package/dist/cli.js +134 -14
- package/dist/index.d.ts +18 -6
- package/dist/index.js +137 -15
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/templates/typescript/epackage.njk +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typemf/generator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"provenance": true
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@typemf/core": "0.
|
|
34
|
-
"@typemf/node": "0.
|
|
35
|
-
"@typemf/xmi": "0.
|
|
33
|
+
"@typemf/core": "0.9.1",
|
|
34
|
+
"@typemf/node": "0.9.1",
|
|
35
|
+
"@typemf/xmi": "0.9.1",
|
|
36
36
|
"nunjucks": "^3.2.4",
|
|
37
37
|
"prettier": "^3.9.8"
|
|
38
38
|
},
|
|
@@ -122,9 +122,9 @@ export interface {{ pkgClass }} extends {{ useImport("EPackage", "types", {found
|
|
|
122
122
|
call is correct and necessary there, and the bypass is correct and
|
|
123
123
|
necessary here - never both from the same call site.
|
|
124
124
|
#}
|
|
125
|
-
{#- The expression for classifier `c`: its field for a classifier of this package,
|
|
125
|
+
{#- The expression for classifier `c`: its field for a classifier of this package, its package's accessor otherwise. #}
|
|
126
126
|
{% macro classifierExpr(c) -%}
|
|
127
|
-
{%- if c.getEPackage() == package -%}this._{{ c.getName() }}{%- else -%}{{
|
|
127
|
+
{%- if c.getEPackage() == package -%}this._{{ c.getName() }}{%- else -%}{{ otherPackageClassifierExpr(c) }}{%- endif -%}
|
|
128
128
|
{%- endmacro %}
|
|
129
129
|
{% macro bootstrapSet(targetExpr, beanSetterName, idsExpr, valueExpr) %}
|
|
130
130
|
{% if options['generate-ecore'] %}
|