arashsheyda / nuxt-mongoose

A Nuxt module for simplifying the use of Mongoose in your project.
https://docs.arashsheyda.me/nuxt-mongoose
69 stars 11 forks source link

published npm is different than build #22

Closed arashsheyda closed 9 months ago

arashsheyda commented 9 months ago

after builded, when run npm publish the dist files changes and package is not working!

image

BayBreezy commented 9 months ago

Lol. That is weeeiirrdd... Now I cant use v1. I get this error that it cannot find the module

Error while requiring module nuxt-mongoose: Error: Cannot find module 'C:\Developer\Projects\nuxt-mongoose\node_modules\.pnpm\jiti@1.19.3\node_modules\jiti\lib\index.js'

I am not sure if pnpm is the issue here or some config that got updated

arashsheyda commented 9 months ago

@BayBreezy lol yes! no the issue is on my side. IDK why when publishing to npm, all the files are not publishing as you can see in the pic :(

arashsheyda commented 9 months ago

There was an prepare script which had --stub in it so when running npm publish it auto ran the prepare command and caused the problem. it is fixed now thanks to anthony!

BayBreezy commented 9 months ago

Awesome!