Some of the files in the src folder do import x from '@/file.js'. So when npm installed, the library no longer works, because the aliases are not resolved.
Options:
Change @ to . and everything works, in the src files, users just use the source files directly.
Add a build step to produce various builds (ESM/CJS/Etc)
Some of the files in the
src
folder doimport x from '@/file.js'
. So when npm installed, the library no longer works, because the aliases are not resolved.Options:
@
to.
and everything works, in the src files, users just use the source files directly.Renaming seems better over-all