I'm using Vue 3 in Vite.
Now installing my BBS signature library from NPM, i.e., npm install --save @grottonetworking/bbs-signatures
.
Prior to this I was using this approach installing local module with npm to link in my BBS signature library, in particular use the command:
npm link ../BBSLibrary
After not working on this for a while I used npm unlink @grottonetworking/bbs-signatures
then npm link @grottonetworking/bbs-signatures
to get things to update. I also ran npm link
in the main directory of the BBS library project.
Note that it was important to add the line "exports": "./lib/BBS.js"
to the package.json
file of the BBS library that I'm developing. This allowed Vite to find it. See articleand they reference node.js: package entry points.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build