- 
                Notifications
    You must be signed in to change notification settings 
- Fork 504
Tools update #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tools update #384
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chris-pardy fine with this in general.
Can we aim to get CI passing?
|  | ||
| require('colors') | ||
| const { Engine } = require('json-rules-engine') | ||
| import "colors"; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tell me more about the change to .mts decision specifically for examples - the idea of the examples is to cater to the lowest common denominator. Seems like we're narrowing the audience by moving away from .js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is more of a question of what the "lowest common denominator" is in 2024?
For instance should the examples be common js with require statements or can we safely move to module syntax.  Node's had support for modules for some time now and with a move to drop the EOL versions of node I think using the module syntax is probably ok.
I think for most people Typescript is the default choice in this day-and-age so it's probably worth having some examples in Typescript. I could see an argument made for actually having both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chris-pardy ty, makes sense. I no longer work in this ecosystem, so I'll defer to your judgement on this.
| 
 Yes, We need to drop support for node 14 & 16 which I'm going to do. I'll add an engines field to the package.json as well. | 
5bb8b91    to
    a7793d4      
    Compare
  
    Switch to Prettier and ESLint for tooling.
a7793d4    to
    a218bad      
    Compare
  
    Vitest can test all the files, including testing the types.
Move to tsup to build and bundle
9a8496a    to
    f234b56      
    Compare
  
    
This Updates the build tooling significantly
tsupeslintprettiervitesttsx