arashsheyda / nuxt-mongoose

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

published npm is different than build #22

Closed arashsheyda closed 1 year ago

arashsheyda commented 1 year ago

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

image

BayBreezy commented 1 year 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 1 year 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 1 year 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 1 year ago

Awesome!