[Vuejs]-Publishing a Vuejs component as a package on npm

0👍

That’s normal to have the full code if you included it the npm module. If you want a folder to be removed from npm, you can create a .npmignore at the root of your project, with the same syntax as .gitignore files. Find documentation for npmignore here.

For your second problem, you probably want to run npm run build, which execute this file. At least I see nothing that could lead in your project to a valid use of npm build dist (there is no dist folder). See general documentation for npm scripts, and documentation for npm build.

Leave a comment