Skip to content

Conversation

@anotherjesse
Copy link
Contributor

No description provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes me want to put launch somewhere else... but it is probably too early

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably treat it like any number of "built-ins", which we should move out of being hard coded in builder and available as packages to import, like many other reusable lifted functions and recipes. Let's do that this week, maybe when replacing generateData?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could for now at least change this string to be "@comontools/common-<...>"?

@anotherjesse
Copy link
Contributor Author

we should have better error handling on compilation failure

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the typescript compiler read the module definitions from somewhere? or just assumes broad types?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, but adding a console variable in the scope around the eval doesn't work? (unless the code says window.console.log, but who does that :) )

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something analogous to updateValue doesn't work?
(we should discuss bidirectional bindings ....)

add a package.json command to compile the types

load them into the compiler

unaddressed:

- launch in data.js
- complain about {name} in recipe inputs
potentially dead end - but exploring generation
if compile, launch with data
@jsantell
Copy link
Collaborator

jsantell commented Mar 5, 2025

Closing out stale PRs, please reopen if this is relevant

@jsantell jsantell closed this Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants