Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last release is broken without lib dir #75

Closed
derberg opened this issue Oct 13, 2022 · 33 comments · Fixed by #76 or #79
Closed

last release is broken without lib dir #75

derberg opened this issue Oct 13, 2022 · 33 comments · Fixed by #76 or #79
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest released

Comments

@derberg
Copy link
Member

derberg commented Oct 13, 2022

Last release is not usable. Package is published without code

👇🏼 is what we see after package installation

Screenshot 2022-10-13 at 09 52 32

I think it might be because of https://github.com/asyncapi/bundler/blob/master/package.json#L37

I think it should say "/lib" and not lib/
I do not see any other reason why it is not really published to npm.

"main": "lib/index.js" entrypoint is correct. It's just that the index file do not exist in the package

@derberg derberg added bug Something isn't working good first issue Good for newcomers hacktoberfest labels Oct 13, 2022
@toukirkhan
Copy link
Contributor

@derberg can I look into this?

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

@toukirkhan please go ahead

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

tip: you can test it locally, if your fix works by running npm publish --dry-run, if I remember the command correct 😄

if terminal will print only 👇🏼

npm notice === Tarball Contents === 
npm notice 11.4kB LICENSE     
npm notice 7.1kB  README.md   
npm notice 3.0kB  package.json
npm notice === Tarball Details === 

then it is not fixed.
it is fixed if index.js will be listed too

@toukirkhan
Copy link
Contributor

alright @derberg working on this one!!

@toukirkhan
Copy link
Contributor

toukirkhan commented Oct 13, 2022

@derberg am using npm publish --dry -run it only shows package.json in tarball contents, am I doing something wrong?

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

@toukirkhan can you show full log, please, and what modifications you already did

@toukirkhan
Copy link
Contributor

yeah am attaching the screenshots @derberg

@toukirkhan
Copy link
Contributor

image

I have changed "lib/" to "/lib"

@toukirkhan
Copy link
Contributor

also it has shown the tarball contents you mentioned above once

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

strange you see only package.json

anyway, I forgot to tell you that you need to install bundler npm i and then run npm run build to actually generate lib dir first. Publish dry run do not show lib probably because you do not have it there on a local drive

@toukirkhan
Copy link
Contributor

toukirkhan commented Oct 13, 2022 via email

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

ok 🤔 , can you share, like drop the view of the directory from which you run npm publish?

@toukirkhan
Copy link
Contributor

yeah sure

@toukirkhan
Copy link
Contributor

@derberg okay I got it changed lib but it still does not show index.html

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

you mean index.js right?
can you show latest logs?

@toukirkhan
Copy link
Contributor

@derberg yeah

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

I saw that in picture your terminal says that npm run build doesn't exist. This is weirt. Are you sure bundler is the directory where you cloned the project? can you print all files you have there ls is command in UNIX, not sure windows

@toukirkhan
Copy link
Contributor

image

@toukirkhan
Copy link
Contributor

I saw that in picture your terminal says that npm run build doesn't exist. This is weirt. Are you sure bundler is the directory where you cloned the project? can you print all files you have there ls is command in UNIX, not sure windows

yeah sure

@Souvikns
Copy link
Member

I think best would be if @toukirkhan you can open a PR, and we can check it.

@toukirkhan
Copy link
Contributor

image

@toukirkhan
Copy link
Contributor

I think best would be if @toukirkhan you can open a PR, and we can check it.

it won't be a great idea because it does not resolves the issue

@toukirkhan
Copy link
Contributor

@derberg i did npm run build
image

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

Ok, I think I know what the problem is

you do ls and other command runs from inside the node_modules where bundler is installed, and yes it shows that package is empty, which is wrong.

now please explain why in bundler directory you installed @asyncapi/bundler

what is exactly in bundler directory, main one, not bundler\none_modules\@asyncapi\bundler?

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

so if C:\Users\Lenovo\Desktop\bundler is a place where you cloned your fork

then you should do:

C:\Users\Lenovo\Desktop\bundler> npm i
C:\Users\Lenovo\Desktop\bundler> npm run build
C:\Users\Lenovo\Desktop\bundler> npm publish --dry-run

@toukirkhan
Copy link
Contributor

Ok, I think I know what the problem is

you do ls and other command runs from inside the node_modules where bundler is installed, and yes it shows that package is empty, which is wrong.

now please explain why in bundler directory you installed @asyncapi/bundler

what is exactly in bundler directory, main one, not bundler\none_modules\@asyncapi\bundler?

bundler directory is a directory in my desktop inside which I have installed the bundler

@toukirkhan
Copy link
Contributor

so if C:\Users\Lenovo\Desktop\bundler is a place where you cloned your fork

then you should do:

C:\Users\Lenovo\Desktop\bundler> npm i
C:\Users\Lenovo\Desktop\bundler> npm run build
C:\Users\Lenovo\Desktop\bundler> npm publish --dry-run

yeah finally I got this!!

@toukirkhan
Copy link
Contributor

I have run the command inside the cloned bundler repo and made a dry run and it shows this
image

@toukirkhan
Copy link
Contributor

now where should I make the changes?

@toukirkhan
Copy link
Contributor

here is the directory
image

@derberg
Copy link
Member Author

derberg commented Oct 13, 2022

yup, perfect. from your logs it looks like it is the fix we expect. go ahead and open up a PR

@toukirkhan
Copy link
Contributor

@derberg okay cool! am opnening it rn

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 0.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest released
Projects
None yet
4 participants