Gravy59 f3ff4a4fc3 fix(build): replace ts-node with tsx to resolve issues with modules (#1977)
This pull request resolves #1926 and prevents issues like it from happening in the future

## Rationale for this PR

This PR changes the TypeScript execution package for use in scripts like `build:registry` from `ts-node` to `tsx`. This is because `ts-node` has many difficult quirks to work through (and is slow). In addition, it also has a difficult to understand error for newcomers that *is* reproducible.

### The ts-node error

As shown in #1926, using `ts-node` (specifically in `build:registry`) results in this error: `Unknown file extension ".ts" for /ui/apps/www/scripts/build-registry.ts`. There are many issues in the `ts-node` repository documenting this problem:
* TypeStrong/ts-node/issues/1062
* TypeStrong/ts-node/issues/2033
* TypeStrong/ts-node/issues/1997

Switching the typescript-in-node system to `tsx`, which uses esbuild under the hood, resolves this error.

This PR shouldn't affect tests, representation, etc. and is merely a change of build tools. There is no urgent need to merge this.

I accidentally deleted the head repository on #1937. That will not happen again.
2024-01-28 09:18:18 +00:00
2023-04-19 15:01:29 +04:00
2023-01-24 19:51:29 +04:00
2023-01-24 19:51:29 +04:00
2023-02-10 11:15:33 +04:00
2023-10-19 21:12:17 +04:00
2023-01-24 19:51:29 +04:00
2023-12-22 23:36:59 +04:00
2023-01-27 16:02:33 +04:00
2023-03-08 13:08:46 +04:00
2023-08-17 14:59:22 +04:00
2023-01-24 19:51:29 +04:00

shadcn/ui

Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. Use this to build your own component library.

hero

Documentation

Visit http://ui.shadcn.com/docs to view the documentation.

Contributing

Please read the contributing guide.

License

Licensed under the MIT license.

Description
Languages
TypeScript 89.4%
MDX 7%
CSS 3.5%
JavaScript 0.1%