@motionscript/code 0.1.0-alpha.8 → 0.1.0-alpha.9

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/src/nodes.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { Code } from "./node";
2
-
3
- /**
4
- * Every node type this package publishes.
5
- *
6
- * A host registers these by handing the array to an engine —
7
- * `new Engine(platform, { nodes: NODES })` — which reads each component's key.
8
- * Defining a component only *declares* that key: nothing is registered by
9
- * importing a module, so a registry holds exactly what its owner asked for.
10
- *
11
- * Listing the component **values** is also what survives bundling: this package
12
- * declares `sideEffects: false`, and a document names a node type by string, so
13
- * an import kept only for its side effect is exactly what gets shaken out.
14
- */
15
- // Typed by name, so the declaration names each component rather than spelling out its type through core.
16
- export const NODES: (typeof Code)[] = [Code];
1
+ import { Code } from "./node";
2
+
3
+ /**
4
+ * Every node type this package publishes.
5
+ *
6
+ * A host registers these by handing the array to an engine —
7
+ * `new Engine(platform, { nodes: NODES })` — which reads each component's key.
8
+ * Defining a component only *declares* that key: nothing is registered by
9
+ * importing a module, so a registry holds exactly what its owner asked for.
10
+ *
11
+ * Listing the component **values** is also what survives bundling: this package
12
+ * declares `sideEffects: false`, and a document names a node type by string, so
13
+ * an import kept only for its side effect is exactly what gets shaken out.
14
+ */
15
+ // Typed by name, so the declaration names each component rather than spelling out its type through core.
16
+ export const NODES: (typeof Code)[] = [Code];