πŸ—οΈCompile your code to be distributed optimally as a package.

npx library src/**/*

the above script will send all files found in the src folder to vite, example output:

# Input                        # Output
/src                            /lib
  /my-component-1.tsx             /my-component-1.js
  /my-component-2.tsx             /my-component-2.tsx
  /my-component-3.tsx             /my-component-3.tsx

This script can be combined with @atomico/exports to improve the generation of your package.json

Last updated