@kosdev-code/kos-nx-plugin 2.1.3 → 2.1.4
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/generators/kos-container-model/files/model/__nameDashCase__-model.ts.template +3 -0
- package/src/generators/kos-container-model/files/model/index.ts.template +3 -11
- package/src/generators/kos-model/files/model/__nameDashCase__-model.ts.template +2 -0
- package/src/generators/kos-model/files/model/index.ts__template__ +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-nx-plugin",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"generators": "./generators.json",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"main": "./src/index.js",
|
|
20
20
|
"kos": {
|
|
21
21
|
"build": {
|
|
22
|
-
"gitHash": "
|
|
22
|
+
"gitHash": "d24832f71862884b1d13ebabfb7a7e1a88713b8a"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
// Import implementation class but don't export it directly
|
|
2
|
-
import { <%= nameProperCase %>ModelImpl } from "./<%= nameDashCase %>-model";
|
|
3
1
|
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export { <%= nameProperCase %>Model } from "./<%= nameDashCase %>-model";
|
|
3
|
+
|
|
4
|
+
export { <%= modelNameProperCase %>Model } from "./<%= modelNameDashCase %>-model";
|
|
6
5
|
|
|
7
6
|
// Export types
|
|
8
7
|
export type { <%= nameProperCase %>Model } from "./<%= nameDashCase %>-model";
|
|
9
8
|
export type { <%= modelNameProperCase %>Model } from "./<%= modelNameDashCase %>-model";
|
|
10
9
|
export type * from "./types";
|
|
11
10
|
|
|
12
|
-
// Export Registration as the public API
|
|
13
|
-
export const <%= nameProperCase %> = <%= nameProperCase %>ModelImpl.Registration;
|
|
14
|
-
|
|
15
|
-
// Export Registration as the public API
|
|
16
|
-
export const <%= modelNameProperCase %> = <%= modelNameProperCase %>ModelImpl.Registration;
|
|
17
|
-
|
|
18
11
|
<% if (dataServices) { %>// Export services if configured
|
|
19
12
|
export * as <%= modelNameProperCase %>Services from "./services";<% } %>
|
|
20
13
|
|
|
21
|
-
<%= nameProperCase %>.addRelatedModel(<%= modelNameProperCase %>);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
// Import implementation class but don't export it directly
|
|
2
|
-
|
|
2
|
+
export { <%= nameProperCase %>Model } from "./<%= nameDashCase %>-model";
|
|
3
3
|
|
|
4
4
|
// Export types
|
|
5
5
|
export type { <%= nameProperCase %>Model } from "./<%= nameDashCase %>-model";
|
|
6
6
|
export type * from "./types";
|
|
7
7
|
|
|
8
|
-
// Export Registration as the public API
|
|
9
|
-
export const <%= nameProperCase %> = <%= nameProperCase %>ModelImpl.Registration;
|
|
10
|
-
|
|
11
8
|
<% if (dataServices) { %>// Export services if configured
|
|
12
9
|
export * as <%= nameProperCase %>Services from "./services";<% } %>
|