|
|
@@ -8,6 +8,12 @@ class NodeJSWriter(JavascriptWriter):
|
|
|
description = package.get_description()
|
|
|
|
|
|
self.write_comment(f"package {name}")
|
|
|
+ self.out.write("""const {
|
|
|
+ RuntimeClassBase,
|
|
|
+ StatechartSemantics,
|
|
|
+ ObjectManagerBase,
|
|
|
+ EventLoopControllerBase,
|
|
|
+ } = require(\"sccd_runtime\");""")
|
|
|
if description:
|
|
|
self.write_comment(description)
|
|
|
for d in package.get_declarations():
|