Open z3dev opened 2 years ago
One option for cli to work would be to have a cmdline option to say if it is es6 script that needs to run, or "old" .
I am piggybacking on this issue for now to raise awareness of the fact that we will have problems recognizing v2 and v3 scripts if we keep the same package name: @jscad/modeling
.
if it is a single file script and not a node project that has package.json there is no way to know if this is a V2 or a V3 script.
I was discussing the problem of recognizing V2 and V3 scripts with @platypii and we agreed that a good way to do this and move forward would be to assume scritps that use require
are V2, and esm improt or typescript are V3.
Expected Behavior
New designs with use the ES6-based packages (V3+) are supported. This includes both single file designs as well as projects with several components.
Actual Behavior
Fails
Steps to Reproduce the Problem
Specifications