nesoi 3.2.9 → 3.3.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.
Files changed (291) hide show
  1. package/README.md +33 -2
  2. package/lib/bundler/browser/browser.app.d.ts +32 -0
  3. package/lib/bundler/browser/browser.app.js +51 -0
  4. package/lib/bundler/browser/browser.bundler.d.ts +5 -0
  5. package/lib/bundler/browser/browser.bundler.js +27 -0
  6. package/lib/bundler/browser/stages/8_replace_nesoi_for_browser_stage.d.ts +13 -0
  7. package/lib/bundler/browser/stages/8_replace_nesoi_for_browser_stage.js +74 -0
  8. package/lib/bundler/distributed/distributed.app.config.d.ts +43 -0
  9. package/lib/{engine/apps → bundler}/distributed/distributed.app.config.js +1 -1
  10. package/lib/{engine/apps → bundler}/distributed/distributed.app.d.ts +14 -14
  11. package/lib/{engine/apps → bundler}/distributed/distributed.app.js +8 -3
  12. package/lib/{compiler/apps/distributed/distributed_compiler.d.ts → bundler/distributed/distributed.bundler.d.ts} +7 -7
  13. package/lib/{compiler/apps/distributed/distributed_compiler.js → bundler/distributed/distributed.bundler.js} +11 -11
  14. package/lib/{engine/apps → bundler}/distributed/distributed_node.app.d.ts +14 -20
  15. package/lib/{engine/apps → bundler}/distributed/distributed_node.app.js +18 -50
  16. package/lib/bundler/distributed/stages/1_mkdir_stage.d.ts +15 -0
  17. package/lib/{compiler/apps → bundler}/distributed/stages/1_mkdir_stage.js +6 -6
  18. package/lib/bundler/distributed/stages/2_build_typescript_stage.d.ts +15 -0
  19. package/lib/{compiler/apps → bundler}/distributed/stages/2_build_typescript_stage.js +7 -7
  20. package/lib/bundler/distributed/stages/3_copy_types_stage.d.ts +15 -0
  21. package/lib/{compiler/apps → bundler}/distributed/stages/3_copy_types_stage.js +7 -7
  22. package/lib/bundler/distributed/stages/4_dump_modules_stage.d.ts +16 -0
  23. package/lib/{compiler/apps → bundler}/distributed/stages/4_dump_modules_stage.js +5 -5
  24. package/lib/{compiler/apps → bundler}/distributed/stages/5_copy_static_stage.js +3 -3
  25. package/lib/{compiler/apps → bundler}/distributed/stages/6_dump_cli_stage.js +3 -3
  26. package/lib/{compiler/apps → bundler}/distributed/stages/7_dump_package_json_stage.js +3 -3
  27. package/lib/{engine/apps → bundler}/monolyth/monolyth.app.d.ts +13 -13
  28. package/lib/{engine/apps → bundler}/monolyth/monolyth.app.js +13 -10
  29. package/lib/{compiler/apps/monolyth/monolyth_compiler.d.ts → bundler/monolyth/monolyth.bundler.d.ts} +9 -7
  30. package/lib/{compiler/apps/monolyth/monolyth_compiler.js → bundler/monolyth/monolyth.bundler.js} +13 -12
  31. package/lib/bundler/monolyth/stages/1_mkdir_stage.d.ts +15 -0
  32. package/lib/{compiler/apps → bundler}/monolyth/stages/1_mkdir_stage.js +6 -6
  33. package/lib/bundler/monolyth/stages/2_build_typescript_stage.d.ts +15 -0
  34. package/lib/{compiler/apps → bundler}/monolyth/stages/2_build_typescript_stage.js +8 -7
  35. package/lib/bundler/monolyth/stages/3_copy_types_stage.d.ts +15 -0
  36. package/lib/{compiler/apps → bundler}/monolyth/stages/3_copy_types_stage.js +7 -7
  37. package/lib/{compiler/apps → bundler}/monolyth/stages/4_dump_modules_stage.d.ts +4 -4
  38. package/lib/{compiler/apps → bundler}/monolyth/stages/4_dump_modules_stage.js +29 -16
  39. package/lib/{compiler/apps → bundler}/monolyth/stages/5_copy_static_stage.d.ts +4 -4
  40. package/lib/{compiler/apps → bundler}/monolyth/stages/5_copy_static_stage.js +7 -7
  41. package/lib/bundler/monolyth/stages/6_dump_cli_stage.d.ts +15 -0
  42. package/lib/{compiler/apps → bundler}/monolyth/stages/6_dump_cli_stage.js +4 -4
  43. package/lib/{compiler/apps → bundler}/monolyth/stages/7_dump_package_json_stage.d.ts +4 -4
  44. package/lib/{compiler/apps → bundler}/monolyth/stages/7_dump_package_json_stage.js +14 -11
  45. package/lib/compiler/compiler.d.ts +1 -6
  46. package/lib/compiler/compiler.js +1 -1
  47. package/lib/compiler/elements/bucket.element.d.ts +2 -1
  48. package/lib/compiler/elements/bucket.element.js +16 -21
  49. package/lib/compiler/elements/cached.element.d.ts +1 -1
  50. package/lib/compiler/elements/cached.element.js +2 -2
  51. package/lib/compiler/elements/constants.element.d.ts +1 -1
  52. package/lib/compiler/elements/constants.element.js +2 -0
  53. package/lib/compiler/elements/controller.element.js +3 -3
  54. package/lib/compiler/elements/element.d.ts +6 -13
  55. package/lib/compiler/elements/element.js +11 -9
  56. package/lib/compiler/elements/externals.element.js +2 -2
  57. package/lib/compiler/elements/job.element.d.ts +1 -1
  58. package/lib/compiler/elements/job.element.js +1 -1
  59. package/lib/compiler/elements/machine.element.d.ts +2 -2
  60. package/lib/compiler/elements/machine.element.js +7 -7
  61. package/lib/compiler/elements/message.element.d.ts +1 -1
  62. package/lib/compiler/elements/message.element.js +26 -26
  63. package/lib/compiler/elements/queue.element.js +1 -1
  64. package/lib/compiler/elements/resource.element.d.ts +1 -1
  65. package/lib/compiler/elements/resource.element.js +9 -9
  66. package/lib/compiler/elements/topic.element.js +1 -1
  67. package/lib/compiler/error.d.ts +1 -5
  68. package/lib/compiler/error.js +3 -15
  69. package/lib/compiler/helpers/dump_helpers.d.ts +1 -1
  70. package/lib/compiler/helpers/dump_helpers.js +1 -1
  71. package/lib/compiler/index.d.ts +1 -3
  72. package/lib/compiler/index.js +15 -7
  73. package/lib/compiler/module.js +12 -12
  74. package/lib/compiler/progressive.d.ts +3 -4
  75. package/lib/compiler/progressive.js +3 -4
  76. package/lib/compiler/stages/2_treeshake_stage.js +4 -0
  77. package/lib/compiler/stages/3_extract_ts_stage.js +7 -7
  78. package/lib/compiler/stages/4_build_schemas_stage.js +3 -16
  79. package/lib/compiler/stages/6_build_elements_stage.js +1 -1
  80. package/lib/compiler/stages/7_dump_stage.js +35 -10
  81. package/lib/compiler/typescript/bridge/extract.js +24 -0
  82. package/lib/compiler/typescript/bridge/inject.js +18 -3
  83. package/lib/compiler/typescript/bridge/organize.d.ts +4 -0
  84. package/lib/compiler/typescript/bridge/organize.js +41 -22
  85. package/lib/compiler/typescript/error.d.ts +2 -83
  86. package/lib/compiler/typescript/error.js +6 -219
  87. package/lib/compiler/typescript/parser.js +3 -3
  88. package/lib/compiler/typescript/source.d.ts +2 -2
  89. package/lib/compiler/typescript/transformers/app_inject.transformer.js +13 -4
  90. package/lib/compiler/typescript/typescript_compiler.d.ts +3 -3
  91. package/lib/compiler/typescript/typescript_compiler.js +2 -2
  92. package/lib/elements/blocks/block.builder.d.ts +7 -4
  93. package/lib/elements/blocks/block.builder.js +24 -13
  94. package/lib/elements/blocks/block.js +2 -2
  95. package/lib/elements/blocks/block.schema.d.ts +12 -9
  96. package/lib/elements/blocks/block.schema.js +2 -2
  97. package/lib/elements/blocks/job/internal/machine_job.builder.d.ts +6 -5
  98. package/lib/elements/blocks/job/internal/machine_job.builder.js +3 -3
  99. package/lib/elements/blocks/job/internal/resource_job.builder.d.ts +11 -10
  100. package/lib/elements/blocks/job/internal/resource_job.builder.js +9 -6
  101. package/lib/elements/blocks/job/internal/resource_job.js +3 -6
  102. package/lib/elements/blocks/job/job.builder.d.ts +5 -5
  103. package/lib/elements/blocks/job/job.builder.js +7 -7
  104. package/lib/elements/blocks/job/job.js +1 -1
  105. package/lib/elements/blocks/job/job.schema.d.ts +5 -5
  106. package/lib/elements/blocks/job/job.schema.js +3 -3
  107. package/lib/elements/blocks/machine/machine.builder.d.ts +2 -2
  108. package/lib/elements/blocks/machine/machine.builder.js +12 -9
  109. package/lib/elements/blocks/machine/machine.js +7 -7
  110. package/lib/elements/blocks/machine/machine.schema.d.ts +23 -23
  111. package/lib/elements/blocks/machine/machine.schema.js +9 -9
  112. package/lib/elements/blocks/machine/machine_state.builder.d.ts +1 -0
  113. package/lib/elements/blocks/machine/machine_state.builder.js +31 -29
  114. package/lib/elements/blocks/machine/machine_transition.builder.d.ts +2 -2
  115. package/lib/elements/blocks/machine/machine_transition.builder.js +8 -8
  116. package/lib/elements/blocks/queue/queue.builder.d.ts +3 -3
  117. package/lib/elements/blocks/queue/queue.builder.js +3 -3
  118. package/lib/elements/blocks/queue/queue.schema.d.ts +6 -6
  119. package/lib/elements/blocks/queue/queue.schema.js +3 -3
  120. package/lib/elements/blocks/resource/resource.builder.d.ts +2 -2
  121. package/lib/elements/blocks/resource/resource.builder.js +37 -40
  122. package/lib/elements/blocks/resource/resource.d.ts +2 -2
  123. package/lib/elements/blocks/resource/resource.js +10 -18
  124. package/lib/elements/blocks/resource/resource.schema.d.ts +15 -15
  125. package/lib/elements/blocks/resource/resource.schema.js +8 -8
  126. package/lib/elements/blocks/topic/topic.builder.d.ts +2 -2
  127. package/lib/elements/blocks/topic/topic.builder.js +4 -4
  128. package/lib/elements/blocks/topic/topic.d.ts +2 -2
  129. package/lib/elements/blocks/topic/topic.js +7 -7
  130. package/lib/elements/blocks/topic/topic.schema.d.ts +6 -6
  131. package/lib/elements/blocks/topic/topic.schema.js +3 -3
  132. package/lib/elements/edge/controller/adapters/cli.controller_adapter.js +1 -1
  133. package/lib/elements/edge/controller/adapters/controller_adapter.d.ts +2 -2
  134. package/lib/elements/edge/controller/adapters/controller_adapter.js +2 -2
  135. package/lib/elements/edge/controller/controller.builder.d.ts +14 -13
  136. package/lib/elements/edge/controller/controller.builder.js +52 -42
  137. package/lib/elements/edge/controller/controller.d.ts +3 -3
  138. package/lib/elements/edge/controller/controller.js +12 -12
  139. package/lib/elements/edge/controller/controller.schema.d.ts +17 -16
  140. package/lib/elements/edge/controller/controller.schema.js +11 -11
  141. package/lib/elements/edge/externals/externals.builder.d.ts +8 -13
  142. package/lib/elements/edge/externals/externals.builder.js +43 -11
  143. package/lib/elements/edge/externals/externals.schema.d.ts +8 -7
  144. package/lib/elements/edge/externals/externals.schema.js +5 -3
  145. package/lib/elements/entities/bucket/adapters/browserdb.bucket_adapter.d.ts +45 -0
  146. package/lib/elements/entities/bucket/adapters/browserdb.bucket_adapter.js +164 -0
  147. package/lib/elements/entities/bucket/adapters/browserdb.service.d.ts +30 -0
  148. package/lib/elements/entities/bucket/adapters/browserdb.service.js +97 -0
  149. package/lib/elements/entities/bucket/adapters/bucket_adapter.d.ts +6 -1
  150. package/lib/elements/entities/bucket/adapters/bucket_adapter.js +7 -6
  151. package/lib/elements/entities/bucket/adapters/json.bucket_adapter.d.ts +1 -1
  152. package/lib/elements/entities/bucket/adapters/json.bucket_adapter.js +1 -0
  153. package/lib/elements/entities/bucket/adapters/memory.bucket_adapter.d.ts +1 -0
  154. package/lib/elements/entities/bucket/adapters/memory.bucket_adapter.js +14 -13
  155. package/lib/elements/entities/bucket/adapters/memory.nql.js +41 -35
  156. package/lib/elements/entities/bucket/bucket.builder.d.ts +6 -8
  157. package/lib/elements/entities/bucket/bucket.builder.js +19 -34
  158. package/lib/elements/entities/bucket/bucket.d.ts +2 -2
  159. package/lib/elements/entities/bucket/bucket.infer.d.ts +5 -5
  160. package/lib/elements/entities/bucket/bucket.js +19 -17
  161. package/lib/elements/entities/bucket/bucket.schema.d.ts +3 -3
  162. package/lib/elements/entities/bucket/bucket.schema.js +2 -2
  163. package/lib/elements/entities/bucket/cache/bucket_cache.js +14 -2
  164. package/lib/elements/entities/bucket/graph/bucket_graph.d.ts +3 -3
  165. package/lib/elements/entities/bucket/graph/bucket_graph.js +101 -29
  166. package/lib/elements/entities/bucket/graph/bucket_graph.schema.d.ts +3 -3
  167. package/lib/elements/entities/bucket/graph/bucket_graph_link.builder.d.ts +2 -2
  168. package/lib/elements/entities/bucket/graph/bucket_graph_link.builder.js +5 -3
  169. package/lib/elements/entities/bucket/model/bucket_model.builder.d.ts +2 -1
  170. package/lib/elements/entities/bucket/model/bucket_model.builder.js +2 -2
  171. package/lib/elements/entities/bucket/model/bucket_model.convert.js +3 -6
  172. package/lib/elements/entities/bucket/model/bucket_model.d.ts +13 -0
  173. package/lib/elements/entities/bucket/model/bucket_model.js +93 -0
  174. package/lib/elements/entities/bucket/model/bucket_model.schema.d.ts +4 -8
  175. package/lib/elements/entities/bucket/model/bucket_model.schema.js +0 -68
  176. package/lib/elements/entities/bucket/model/bucket_model_field.builder.d.ts +12 -4
  177. package/lib/elements/entities/bucket/model/bucket_model_field.builder.js +30 -33
  178. package/lib/elements/entities/bucket/query/nql.schema.d.ts +1 -1
  179. package/lib/elements/entities/bucket/query/nql_compiler.d.ts +8 -4
  180. package/lib/elements/entities/bucket/query/nql_compiler.js +44 -38
  181. package/lib/elements/entities/bucket/query/nql_engine.d.ts +1 -1
  182. package/lib/elements/entities/bucket/query/nql_engine.js +5 -2
  183. package/lib/elements/entities/bucket/view/bucket_view.builder.d.ts +2 -2
  184. package/lib/elements/entities/bucket/view/bucket_view.js +113 -81
  185. package/lib/elements/entities/bucket/view/bucket_view_field.builder.d.ts +9 -8
  186. package/lib/elements/entities/bucket/view/bucket_view_field.builder.js +8 -10
  187. package/lib/elements/entities/constants/constants.builder.d.ts +3 -3
  188. package/lib/elements/entities/constants/constants.builder.js +8 -8
  189. package/lib/elements/entities/constants/constants.schema.d.ts +8 -3
  190. package/lib/elements/entities/constants/constants.schema.js +7 -2
  191. package/lib/elements/entities/message/message.infer.d.ts +1 -5
  192. package/lib/elements/entities/message/message.js +2 -7
  193. package/lib/elements/entities/message/message.schema.js +1 -1
  194. package/lib/elements/entities/message/template/message_template.schema.d.ts +7 -5
  195. package/lib/elements/entities/message/template/message_template_field.builder.d.ts +18 -3
  196. package/lib/elements/entities/message/template/message_template_field.builder.js +49 -30
  197. package/lib/elements/entities/message/template/message_template_parser.js +2 -2
  198. package/lib/engine/{apps → app}/app.config.d.ts +11 -5
  199. package/lib/engine/{apps → app}/app.config.js +2 -2
  200. package/lib/engine/{apps → app}/app.d.ts +3 -2
  201. package/lib/engine/{apps → app}/app.js +3 -1
  202. package/lib/engine/{apps/distributed → app}/inc/inc.client.js +1 -1
  203. package/lib/engine/{apps/distributed → app}/inc/inc.server.js +3 -3
  204. package/lib/engine/{apps/distributed → app}/inc/sandbox.js +1 -1
  205. package/lib/engine/{apps → app}/inline.app.d.ts +2 -12
  206. package/lib/engine/{apps → app}/inline.app.js +37 -34
  207. package/lib/engine/auth/authn.d.ts +10 -12
  208. package/lib/engine/auth/zero.authn_provider.d.ts +3 -4
  209. package/lib/engine/auth/zero.authn_provider.js +0 -1
  210. package/lib/engine/builder.d.ts +28 -0
  211. package/lib/engine/builder.js +99 -0
  212. package/lib/engine/cli/cli.js +3 -2
  213. package/lib/engine/cli/ui.js +1 -0
  214. package/lib/engine/daemon.d.ts +28 -25
  215. package/lib/engine/daemon.js +37 -8
  216. package/lib/engine/data/error.d.ts +37 -3
  217. package/lib/engine/data/error.js +58 -16
  218. package/lib/engine/data/file.d.ts +1 -0
  219. package/lib/engine/data/file.js +4 -0
  220. package/lib/engine/dependency.d.ts +53 -81
  221. package/lib/engine/dependency.js +246 -120
  222. package/lib/engine/module.d.ts +18 -48
  223. package/lib/engine/module.js +78 -158
  224. package/lib/engine/space.d.ts +2 -2
  225. package/lib/engine/space.js +6 -6
  226. package/lib/engine/transaction/nodes/bucket.trx_node.d.ts +7 -4
  227. package/lib/engine/transaction/nodes/bucket.trx_node.js +66 -43
  228. package/lib/engine/transaction/nodes/bucket_query.trx_node.d.ts +10 -4
  229. package/lib/engine/transaction/nodes/bucket_query.trx_node.js +56 -45
  230. package/lib/engine/transaction/nodes/external.trx_node.d.ts +15 -0
  231. package/lib/engine/transaction/nodes/external.trx_node.js +53 -0
  232. package/lib/engine/transaction/nodes/job.trx_node.d.ts +7 -3
  233. package/lib/engine/transaction/nodes/job.trx_node.js +49 -29
  234. package/lib/engine/transaction/nodes/machine.trx_node.js +6 -6
  235. package/lib/engine/transaction/nodes/queue.trx_node.js +3 -3
  236. package/lib/engine/transaction/nodes/resource.trx_node.d.ts +7 -4
  237. package/lib/engine/transaction/nodes/resource.trx_node.js +68 -51
  238. package/lib/engine/transaction/nodes/topic.trx_node.js +9 -9
  239. package/lib/engine/transaction/trx.d.ts +15 -12
  240. package/lib/engine/transaction/trx.js +19 -3
  241. package/lib/engine/transaction/trx_engine.config.d.ts +4 -4
  242. package/lib/engine/transaction/trx_engine.d.ts +25 -7
  243. package/lib/engine/transaction/trx_engine.js +67 -16
  244. package/lib/engine/transaction/trx_node.d.ts +25 -21
  245. package/lib/engine/transaction/trx_node.js +99 -57
  246. package/lib/engine/tree.d.ts +4 -16
  247. package/lib/engine/tree.js +87 -57
  248. package/lib/{compiler → engine}/treeshake.d.ts +32 -32
  249. package/lib/{compiler → engine}/treeshake.js +272 -242
  250. package/lib/engine/util/console.js +3 -0
  251. package/lib/engine/util/crypto.d.ts +4 -3
  252. package/lib/engine/util/crypto.js +15 -5
  253. package/lib/engine/util/hash.js +5 -0
  254. package/lib/engine/util/log.d.ts +6 -8
  255. package/lib/engine/util/log.js +1 -1
  256. package/lib/engine/util/name_helpers.d.ts +37 -0
  257. package/lib/{compiler/helpers → engine/util}/name_helpers.js +33 -0
  258. package/lib/engine/util/parse.d.ts +4 -3
  259. package/lib/engine/util/parse.js +13 -28
  260. package/lib/engine/util/path.d.ts +1 -0
  261. package/lib/engine/util/path.js +14 -0
  262. package/lib/engine/util/random.d.ts +4 -0
  263. package/lib/engine/util/random.js +31 -0
  264. package/lib/engine/util/type.d.ts +8 -0
  265. package/lib/schema.d.ts +1 -1
  266. package/package.json +4 -1
  267. package/tools/joaquin/bucket.js +1 -1
  268. package/tools/joaquin/job.js +1 -1
  269. package/tools/joaquin/message.js +1 -1
  270. package/tools/joaquin/mock.js +2 -1
  271. package/tsconfig.build.tsbuildinfo +1 -1
  272. package/lib/compiler/apps/distributed/stages/1_mkdir_stage.d.ts +0 -15
  273. package/lib/compiler/apps/distributed/stages/2_build_typescript_stage.d.ts +0 -15
  274. package/lib/compiler/apps/distributed/stages/3_copy_types_stage.d.ts +0 -15
  275. package/lib/compiler/apps/distributed/stages/4_dump_modules_stage.d.ts +0 -16
  276. package/lib/compiler/apps/monolyth/stages/1_mkdir_stage.d.ts +0 -15
  277. package/lib/compiler/apps/monolyth/stages/2_build_typescript_stage.d.ts +0 -15
  278. package/lib/compiler/apps/monolyth/stages/3_copy_types_stage.d.ts +0 -15
  279. package/lib/compiler/apps/monolyth/stages/6_dump_cli_stage.d.ts +0 -15
  280. package/lib/compiler/helpers/name_helpers.d.ts +0 -20
  281. package/lib/engine/apps/distributed/distributed.app.config.d.ts +0 -44
  282. package/lib/engine/apps/distributed/elements/distributed_job.d.ts +0 -7
  283. package/lib/engine/apps/distributed/elements/distributed_job.js +0 -11
  284. /package/lib/{compiler/apps → bundler}/distributed/stages/5_copy_static_stage.d.ts +0 -0
  285. /package/lib/{compiler/apps → bundler}/distributed/stages/6_dump_cli_stage.d.ts +0 -0
  286. /package/lib/{compiler/apps → bundler}/distributed/stages/7_dump_package_json_stage.d.ts +0 -0
  287. /package/lib/engine/{apps/distributed → app}/inc/inc.client.d.ts +0 -0
  288. /package/lib/engine/{apps/distributed → app}/inc/inc.server.d.ts +0 -0
  289. /package/lib/engine/{apps/distributed → app}/inc/sandbox.d.ts +0 -0
  290. /package/lib/engine/{apps → app}/service.d.ts +0 -0
  291. /package/lib/engine/{apps → app}/service.js +0 -0
@@ -0,0 +1,15 @@
1
+ import { DistributedApp } from '../distributed.app';
2
+ import { DistributedBundler } from '../distributed.bundler';
3
+ /**
4
+ * [Distributed Compiler Stage #1]
5
+ * Create the directory structure
6
+ *
7
+ * @category Distributed Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class MkdirStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: DistributedBundler, app: DistributedApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,8 +36,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.MkdirStage = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
41
  /**
42
42
  * [Distributed Compiler Stage #1]
43
43
  * Create the directory structure
@@ -46,14 +46,14 @@ const log_1 = require("../../../../engine/util/log");
46
46
  * @subcategory Stages
47
47
  */
48
48
  class MkdirStage {
49
- constructor(distributed, app) {
50
- this.distributed = distributed;
49
+ constructor(bundler, app) {
50
+ this.bundler = bundler;
51
51
  this.app = app;
52
52
  }
53
53
  async run() {
54
54
  log_1.Log.info('compiler', 'distributed', 'Creating build directory tree');
55
- const dirs = this.distributed.dirs;
56
- dirs.build = space_1.Space.path(this.distributed.compiler.space, 'build', this.app.name);
55
+ const dirs = this.bundler.dirs;
56
+ dirs.build = space_1.Space.path(this.bundler.compiler.space, 'build', this.app.name);
57
57
  // Remove build folder
58
58
  log_1.Log.debug('compiler', 'distributed', `Removing folder ${dirs.build}`);
59
59
  fs.rmSync(dirs.build, { recursive: true, force: true });
@@ -0,0 +1,15 @@
1
+ import { DistributedApp } from '../distributed.app';
2
+ import { DistributedBundler } from '../distributed.bundler';
3
+ /**
4
+ * [Distributed Compiler Stage #2]
5
+ * Build typescript files to build folder
6
+ *
7
+ * @category Distributed Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class BuildTypescriptStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: DistributedBundler, app: DistributedApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.BuildTypescriptStage = void 0;
37
37
  const ts = __importStar(require("typescript"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
41
- const typescript_compiler_1 = require("../../../typescript/typescript_compiler");
42
- const app_1 = require("../../../../engine/apps/app");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
+ const typescript_compiler_1 = require("../../../compiler/typescript/typescript_compiler");
42
+ const app_1 = require("../../../engine/app/app");
43
43
  /**
44
44
  * [Distributed Compiler Stage #2]
45
45
  * Build typescript files to build folder
@@ -48,12 +48,12 @@ const app_1 = require("../../../../engine/apps/app");
48
48
  * @subcategory Stages
49
49
  */
50
50
  class BuildTypescriptStage {
51
- constructor(distributed, app) {
52
- this.distributed = distributed;
51
+ constructor(bundler, app) {
52
+ this.bundler = bundler;
53
53
  this.app = app;
54
54
  }
55
55
  async run() {
56
- const { config, compiler, dirs: _dirs, appPath } = this.distributed;
56
+ const { config, compiler, dirs: _dirs, appPath } = this.bundler;
57
57
  for (const name in this.app.nodes) {
58
58
  log_1.Log.info('compiler', 'distributed', `[${name}] Building TypeScript files...`);
59
59
  const node = this.app.nodes[name];
@@ -0,0 +1,15 @@
1
+ import { DistributedApp } from '../distributed.app';
2
+ import { DistributedBundler } from '../distributed.bundler';
3
+ /**
4
+ * [distributed Compiler Stage #3]
5
+ * Copy type declarations to build/types folder
6
+ *
7
+ * @category distributed Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class CopyTypesStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: DistributedBundler, app: DistributedApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.CopyTypesStage = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
41
- const name_helpers_1 = require("../../../helpers/name_helpers");
42
- const app_1 = require("../../../../engine/apps/app");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
+ const name_helpers_1 = require("../../../engine/util/name_helpers");
42
+ const app_1 = require("../../../engine/app/app");
43
43
  /**
44
44
  * [distributed Compiler Stage #3]
45
45
  * Copy type declarations to build/types folder
@@ -48,12 +48,12 @@ const app_1 = require("../../../../engine/apps/app");
48
48
  * @subcategory Stages
49
49
  */
50
50
  class CopyTypesStage {
51
- constructor(distributed, app) {
52
- this.distributed = distributed;
51
+ constructor(bundler, app) {
52
+ this.bundler = bundler;
53
53
  this.app = app;
54
54
  }
55
55
  async run() {
56
- const { compiler, dirs: _dirs } = this.distributed;
56
+ const { compiler, dirs: _dirs } = this.bundler;
57
57
  for (const name in this.app.nodes) {
58
58
  log_1.Log.info('compiler', 'distributed', `[${name}] Copying module and space types from .nesoi to build/types folder...`);
59
59
  const node = this.app.nodes[name];
@@ -0,0 +1,16 @@
1
+ import { DistributedBundler } from '../distributed.bundler';
2
+ import { DistributedApp } from '../distributed.app';
3
+ /**
4
+ * [distributed Compiler Stage #4]
5
+ * Dump modules to build/modules folder.
6
+ *
7
+ * @category distributed Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class DumpModulesStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: DistributedBundler, app: DistributedApp<any, any>);
14
+ run(): Promise<void>;
15
+ private dumpModule;
16
+ }
@@ -36,8 +36,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.DumpModulesStage = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
- const log_1 = require("../../../../engine/util/log");
40
- const app_1 = require("../../../../engine/apps/app");
39
+ const log_1 = require("../../../engine/util/log");
40
+ const app_1 = require("../../../engine/app/app");
41
41
  /**
42
42
  * [distributed Compiler Stage #4]
43
43
  * Dump modules to build/modules folder.
@@ -46,12 +46,12 @@ const app_1 = require("../../../../engine/apps/app");
46
46
  * @subcategory Stages
47
47
  */
48
48
  class DumpModulesStage {
49
- constructor(distributed, app) {
50
- this.distributed = distributed;
49
+ constructor(bundler, app) {
50
+ this.bundler = bundler;
51
51
  this.app = app;
52
52
  }
53
53
  async run() {
54
- const { compiler, dirs: _dirs } = this.distributed;
54
+ const { compiler, dirs: _dirs } = this.bundler;
55
55
  for (const name in this.app.nodes) {
56
56
  log_1.Log.info('compiler', 'distributed', `[${name}] Dumping modules to build/modules folder...`);
57
57
  const node = this.app.nodes[name];
@@ -2,8 +2,8 @@
2
2
  // import * as fs from 'fs';
3
3
  // import * as path from 'path';
4
4
  // import { Log } from '~/engine/util/log';
5
- // import { MonolythApp } from '~/engine/apps/monolyth/monolyth.app';
6
- // import { MonolythCompiler } from '../monolyth_compiler';
5
+ // import { MonolythApp } from '~/bundler/monolyth/monolyth.app';
6
+ // import { MonolythBundler } from '../monolyth.bundler';
7
7
  // import { Space } from '~/engine/space';
8
8
  // /**
9
9
  // * [Monolyth Compiler Stage #5]
@@ -15,7 +15,7 @@
15
15
  // */
16
16
  // export class CopyStaticStage {
17
17
  // public constructor(
18
- // private monolyth: MonolythCompiler,
18
+ // private monolyth: MonolythBundler,
19
19
  // private app: MonolythApp<any, any>
20
20
  // ) {}
21
21
  // public async run() {
@@ -2,8 +2,8 @@
2
2
  // import * as fs from 'fs';
3
3
  // import * as path from 'path';
4
4
  // import { Log } from '~/engine/util/log';
5
- // import { MonolythApp } from '~/engine/apps/monolyth/monolyth.app';
6
- // import { MonolythCompiler } from '../monolyth_compiler';
5
+ // import { MonolythApp } from '~/bundler/monolyth/monolyth.app';
6
+ // import { MonolythBundler } from '../monolyth.bundler';
7
7
  // /**
8
8
  // * [Monolyth Compiler Stage #6]
9
9
  // * Dump the cli.js file to build/bin folder.
@@ -13,7 +13,7 @@
13
13
  // */
14
14
  // export class DumpCLIStage {
15
15
  // public constructor(
16
- // private monolyth: MonolythCompiler,
16
+ // private monolyth: MonolythBundler,
17
17
  // private app: MonolythApp<any, any>
18
18
  // ) {}
19
19
  // public async run() {
@@ -2,9 +2,9 @@
2
2
  // import * as fs from 'fs';
3
3
  // import * as path from 'path';
4
4
  // import { Log } from '~/engine/util/log';
5
- // import { MonolythCompiler } from '../monolyth_compiler';
5
+ // import { MonolythBundler } from '../monolyth.bundler';
6
6
  // import { Space } from '~/engine/space';
7
- // import { MonolythApp } from '~/engine/apps/monolyth/monolyth.app';
7
+ // import { MonolythApp } from '~/bundler/monolyth/monolyth.app';
8
8
  // /**
9
9
  // * [Monolyth Compiler Stage #7]
10
10
  // * Dump the package.json file to build folder.
@@ -14,7 +14,7 @@
14
14
  // */
15
15
  // export class DumpPackageJsonStage {
16
16
  // public constructor(
17
- // private monolyth: MonolythCompiler,
17
+ // private monolyth: MonolythBundler,
18
18
  // private app: MonolythApp<any, any>
19
19
  // ) {}
20
20
  // public async run() {
@@ -1,11 +1,14 @@
1
- import { $Space, ModuleName } from "../../../schema";
2
- import { IService } from '../service';
3
- import { InlineApp } from './../inline.app';
4
- import { AnyTrxEngine } from '../../transaction/trx_engine';
5
- import { Space } from '../../space';
6
- import { Daemon } from "../../daemon";
7
- import { AppConfigBuilder } from '../app.config';
8
- import { AnyElementSchema } from "../../module";
1
+ import { $Space, ModuleName } from "../../schema";
2
+ import { Daemon } from "../../engine/daemon";
3
+ import { AnyElementSchema } from "../../engine/module";
4
+ import { Tag } from "../../engine/dependency";
5
+ import { Compiler } from "../../compiler/compiler";
6
+ import { MonolythBundlerConfig } from "./monolyth.bundler";
7
+ import { AppConfigBuilder } from "../../engine/app/app.config";
8
+ import { InlineApp } from "../../engine/app/inline.app";
9
+ import { IService } from "../../engine/app/service";
10
+ import { Space } from "../../engine/space";
11
+ import { AnyTrxEngine } from "../../engine/transaction/trx_engine";
9
12
  /**
10
13
  * @category App
11
14
  * @subcategory Monolyth
@@ -14,6 +17,7 @@ export declare class MonolythApp<S extends $Space, ModuleNames extends string =
14
17
  private watcher?;
15
18
  constructor(name: string, space?: Space<S>);
16
19
  protected _packageJson?: Record<string, any>;
20
+ static bundle(compiler: Compiler, appPath: string, config?: MonolythBundlerConfig): Promise<void>;
17
21
  daemon($?: {
18
22
  watch?: boolean;
19
23
  }): Promise<Daemon<S, ModuleNames>>;
@@ -28,9 +32,5 @@ export declare class MonolythApp<S extends $Space, ModuleNames extends string =
28
32
  * @subcategory Monolyth
29
33
  */
30
34
  export declare class MonolythDaemon<S extends $Space, Modules extends ModuleName<S>> extends Daemon<S, Modules> {
31
- protected getSchema(tag: {
32
- module: Modules;
33
- type: string;
34
- name: string;
35
- }): Promise<AnyElementSchema>;
35
+ protected getSchema(tag: Tag): Promise<AnyElementSchema>;
36
36
  }
@@ -34,12 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.MonolythDaemon = exports.MonolythApp = void 0;
37
- const inline_app_1 = require("./../inline.app");
38
- const space_1 = require("../../space");
39
- const daemon_1 = require("../../daemon");
40
- const log_1 = require("../../util/log");
41
- const app_config_1 = require("../app.config");
42
- const dependency_1 = require("../../dependency");
37
+ const daemon_1 = require("../../engine/daemon");
38
+ const log_1 = require("../../engine/util/log");
39
+ const dependency_1 = require("../../engine/dependency");
40
+ const monolyth_bundler_1 = require("./monolyth.bundler");
41
+ const app_config_1 = require("../../engine/app/app.config");
42
+ const inline_app_1 = require("../../engine/app/inline.app");
43
+ const space_1 = require("../../engine/space");
43
44
  /**
44
45
  * @category App
45
46
  * @subcategory Monolyth
@@ -50,6 +51,11 @@ class MonolythApp extends inline_app_1.InlineApp {
50
51
  this.builders = undefined;
51
52
  this.space = space;
52
53
  }
54
+ //
55
+ static bundle(compiler, appPath, config) {
56
+ return new monolyth_bundler_1.MonolythBundler(compiler, appPath, config)
57
+ .run();
58
+ }
53
59
  // Override InlineApp abstract methods
54
60
  async daemon($) {
55
61
  /**
@@ -114,10 +120,7 @@ class MonolythDaemon extends daemon_1.Daemon {
114
120
  async getSchema(tag) {
115
121
  const trxEngine = this.trxEngines[tag.module];
116
122
  const _module = trxEngine.getModule();
117
- const schema = dependency_1.$Dependency.resolve(_module.schema, tag);
118
- if (!schema) {
119
- throw new Error(`Unable to reach schema '${tag}'`);
120
- }
123
+ const schema = dependency_1.Tag.resolveFrom(tag, _module.schema);
121
124
  return Promise.resolve(schema);
122
125
  }
123
126
  }
@@ -1,23 +1,25 @@
1
- import { Compiler } from "../../compiler";
2
- import { AnyApp } from "../../../engine/apps/app";
3
- import { MonolythApp } from "../../../engine/apps/monolyth/monolyth.app";
4
- export type MonolythCompilerConfig = {
1
+ import { Compiler } from "../../compiler/compiler";
2
+ import { AnyApp } from "../../engine/app/app";
3
+ import { MonolythApp } from "./monolyth.app";
4
+ export type MonolythBundlerConfig = {
5
5
  libPaths?: string[];
6
6
  staticPaths?: string[];
7
7
  scripts?: Record<string, string>;
8
8
  nesoiPath?: string;
9
+ nesoiVersion?: string;
9
10
  };
10
- export declare class MonolythCompiler {
11
+ export declare class MonolythBundler {
11
12
  compiler: Compiler;
12
13
  appPath: string;
13
- config: MonolythCompilerConfig;
14
+ config: MonolythBundlerConfig;
15
+ tsconfig: Record<string, string | number>;
14
16
  dirs: {
15
17
  build: string;
16
18
  build_modules: string;
17
19
  build_types: string;
18
20
  build_bin: string;
19
21
  };
20
- constructor(compiler: Compiler, appPath: string, config?: MonolythCompilerConfig);
22
+ constructor(compiler: Compiler, appPath: string, config?: MonolythBundlerConfig);
21
23
  run(): Promise<void>;
22
24
  mergeServicePaths(app: AnyApp): void;
23
25
  expandLibPaths(): void;
@@ -36,11 +36,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.MonolythCompiler = void 0;
39
+ exports.MonolythBundler = void 0;
40
40
  const fs = __importStar(require("fs"));
41
41
  const path = __importStar(require("path"));
42
- const space_1 = require("../../../engine/space");
43
- const console_1 = __importDefault(require("../../../engine/util/console"));
42
+ const space_1 = require("../../engine/space");
43
+ const console_1 = __importDefault(require("../../engine/util/console"));
44
44
  const _1_mkdir_stage_1 = require("./stages/1_mkdir_stage");
45
45
  const _3_copy_types_stage_1 = require("./stages/3_copy_types_stage");
46
46
  const _4_dump_modules_stage_1 = require("./stages/4_dump_modules_stage");
@@ -48,20 +48,21 @@ const _5_copy_static_stage_1 = require("./stages/5_copy_static_stage");
48
48
  const _6_dump_cli_stage_1 = require("./stages/6_dump_cli_stage");
49
49
  const _7_dump_package_json_stage_1 = require("./stages/7_dump_package_json_stage");
50
50
  const _2_build_typescript_stage_1 = require("./stages/2_build_typescript_stage");
51
- const log_1 = require("../../../engine/util/log");
52
- const app_1 = require("../../../engine/apps/app");
53
- const monolyth_app_1 = require("../../../engine/apps/monolyth/monolyth.app");
54
- const path_1 = require("../../../engine/util/path");
55
- class MonolythCompiler {
51
+ const log_1 = require("../../engine/util/log");
52
+ const app_1 = require("../../engine/app/app");
53
+ const monolyth_app_1 = require("./monolyth.app");
54
+ const path_1 = require("../../engine/util/path");
55
+ class MonolythBundler {
56
56
  constructor(compiler, appPath, config = {}) {
57
57
  this.compiler = compiler;
58
58
  this.appPath = appPath;
59
59
  this.config = config;
60
+ this.tsconfig = {};
60
61
  this.dirs = {};
61
62
  }
62
63
  async run() {
63
- console_1.default.header('Monolyth Compiler');
64
- log_1.Log.info('compiler', 'monolyth', `Importing the monolyth definition from ${this.appPath}`);
64
+ console_1.default.header('Monolyth Bundler');
65
+ log_1.Log.info('bundler', 'monolyth', `Importing the monolyth definition from ${this.appPath}`);
65
66
  const appFile = space_1.Space.path(this.compiler.space, this.appPath);
66
67
  const app = (await Promise.resolve(`${appFile}`).then(s => __importStar(require(s)))).default;
67
68
  this.config = Object.assign({}, app_1.App.getInfo(app).config?.compiler || {}, this.config);
@@ -77,7 +78,7 @@ class MonolythCompiler {
77
78
  await new _7_dump_package_json_stage_1.DumpPackageJsonStage(this, app).run();
78
79
  }
79
80
  catch (e) {
80
- log_1.Log.error('compiler', 'monolyth', e.toString(), { stack: e.stack });
81
+ log_1.Log.error('bundler', 'monolyth', e.toString(), { stack: e.stack });
81
82
  process.exit(1);
82
83
  }
83
84
  }
@@ -118,4 +119,4 @@ class MonolythCompiler {
118
119
  return apps;
119
120
  }
120
121
  }
121
- exports.MonolythCompiler = MonolythCompiler;
122
+ exports.MonolythBundler = MonolythBundler;
@@ -0,0 +1,15 @@
1
+ import { MonolythApp } from "../monolyth.app";
2
+ import { MonolythBundler } from '../monolyth.bundler';
3
+ /**
4
+ * [Monolyth Compiler Stage #1]
5
+ * Create the directory structure
6
+ *
7
+ * @category Monolyth Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class MkdirStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: MonolythBundler, app: MonolythApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,8 +36,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.MkdirStage = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
41
  /**
42
42
  * [Monolyth Compiler Stage #1]
43
43
  * Create the directory structure
@@ -46,14 +46,14 @@ const log_1 = require("../../../../engine/util/log");
46
46
  * @subcategory Stages
47
47
  */
48
48
  class MkdirStage {
49
- constructor(monolyth, app) {
50
- this.monolyth = monolyth;
49
+ constructor(bundler, app) {
50
+ this.bundler = bundler;
51
51
  this.app = app;
52
52
  }
53
53
  async run() {
54
54
  log_1.Log.info('compiler', 'monolyth', 'Creating build directory tree');
55
- const dirs = this.monolyth.dirs;
56
- dirs.build = space_1.Space.path(this.monolyth.compiler.space, 'build', this.app.name);
55
+ const dirs = this.bundler.dirs;
56
+ dirs.build = space_1.Space.path(this.bundler.compiler.space, 'build', this.app.name);
57
57
  // Remove build folder
58
58
  log_1.Log.debug('compiler', 'monolyth', `Removing folder ${dirs.build}`);
59
59
  fs.rmSync(dirs.build, { recursive: true, force: true });
@@ -0,0 +1,15 @@
1
+ import { MonolythApp } from "../monolyth.app";
2
+ import { MonolythBundler } from '../monolyth.bundler';
3
+ /**
4
+ * [Monolyth Compiler Stage #2]
5
+ * Build typescript files to build folder
6
+ *
7
+ * @category Monolyth Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class BuildTypescriptStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: MonolythBundler, app: MonolythApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.BuildTypescriptStage = void 0;
37
37
  const ts = __importStar(require("typescript"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
41
- const typescript_compiler_1 = require("../../../typescript/typescript_compiler");
42
- const app_1 = require("../../../../engine/apps/app");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
+ const typescript_compiler_1 = require("../../../compiler/typescript/typescript_compiler");
42
+ const app_1 = require("../../../engine/app/app");
43
43
  /**
44
44
  * [Monolyth Compiler Stage #2]
45
45
  * Build typescript files to build folder
@@ -48,13 +48,13 @@ const app_1 = require("../../../../engine/apps/app");
48
48
  * @subcategory Stages
49
49
  */
50
50
  class BuildTypescriptStage {
51
- constructor(monolyth, app) {
52
- this.monolyth = monolyth;
51
+ constructor(bundler, app) {
52
+ this.bundler = bundler;
53
53
  this.app = app;
54
54
  }
55
55
  async run() {
56
56
  log_1.Log.info('compiler', 'monolyth', 'Building TypeScript files...');
57
- const { config, compiler, dirs, appPath } = this.monolyth;
57
+ const { config, compiler, dirs, appPath } = this.bundler;
58
58
  const libPaths = (config.libPaths || []).map(path => {
59
59
  return space_1.Space.path(compiler.space, path);
60
60
  });
@@ -161,6 +161,7 @@ class BuildTypescriptStage {
161
161
  // Built methods don't carry all the typings, so we disable this check
162
162
  // However, this has been checked before Compiler built them
163
163
  noImplicitAny: false,
164
+ ...this.bundler.tsconfig
164
165
  }, spacePath, dirs.build, replacePaths);
165
166
  if (emitCode !== 0) {
166
167
  throw new Error('One or more TypeScript files contains errors.');
@@ -0,0 +1,15 @@
1
+ import { MonolythApp } from "../monolyth.app";
2
+ import { MonolythBundler } from '../monolyth.bundler';
3
+ /**
4
+ * [Monolyth Compiler Stage #3]
5
+ * Copy type declarations to build/types folder
6
+ *
7
+ * @category Monolyth Compiler
8
+ * @subcategory Stages
9
+ */
10
+ export declare class CopyTypesStage {
11
+ private bundler;
12
+ private app;
13
+ constructor(bundler: MonolythBundler, app: MonolythApp<any, any>);
14
+ run(): Promise<void>;
15
+ }
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.CopyTypesStage = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
- const space_1 = require("../../../../engine/space");
40
- const log_1 = require("../../../../engine/util/log");
41
- const name_helpers_1 = require("../../../helpers/name_helpers");
42
- const app_1 = require("../../../../engine/apps/app");
39
+ const space_1 = require("../../../engine/space");
40
+ const log_1 = require("../../../engine/util/log");
41
+ const name_helpers_1 = require("../../../engine/util/name_helpers");
42
+ const app_1 = require("../../../engine/app/app");
43
43
  /**
44
44
  * [Monolyth Compiler Stage #3]
45
45
  * Copy type declarations to build/types folder
@@ -48,13 +48,13 @@ const app_1 = require("../../../../engine/apps/app");
48
48
  * @subcategory Stages
49
49
  */
50
50
  class CopyTypesStage {
51
- constructor(monolyth, app) {
52
- this.monolyth = monolyth;
51
+ constructor(bundler, app) {
52
+ this.bundler = bundler;
53
53
  this.app = app;
54
54
  }
55
55
  async run() {
56
56
  log_1.Log.info('compiler', 'monolyth', 'Copying module and space types from .nesoi to build/types folder...');
57
- const { compiler, dirs } = this.monolyth;
57
+ const { compiler, dirs } = this.bundler;
58
58
  const info = app_1.App.getInfo(this.app);
59
59
  // Copy module types to types folder
60
60
  for (const name of info.spaceModules) {
@@ -1,5 +1,5 @@
1
- import { MonolythApp } from "../../../../engine/apps/monolyth/monolyth.app";
2
- import { MonolythCompiler } from '../monolyth_compiler';
1
+ import { MonolythApp } from "../monolyth.app";
2
+ import { MonolythBundler } from '../monolyth.bundler';
3
3
  /**
4
4
  * [Monolyth Compiler Stage #4]
5
5
  * Dump modules to build/modules folder.
@@ -8,9 +8,9 @@ import { MonolythCompiler } from '../monolyth_compiler';
8
8
  * @subcategory Stages
9
9
  */
10
10
  export declare class DumpModulesStage {
11
- private monolyth;
11
+ private bundler;
12
12
  private app;
13
- constructor(monolyth: MonolythCompiler, app: MonolythApp<any, any>);
13
+ constructor(bundler: MonolythBundler, app: MonolythApp<any, any>);
14
14
  run(): Promise<void>;
15
15
  private dumpModule;
16
16
  }