Skip to content

Module structure and github package #131

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

Closed
PPP01 opened this issue Feb 3, 2022 · 0 comments
Closed

Module structure and github package #131

PPP01 opened this issue Feb 3, 2022 · 0 comments

Comments

@PPP01
Copy link

PPP01 commented Feb 3, 2022

Hi, I had some trouble to integrate this module by github directly.
The main problem was that SimpleAutocomplete.svelte was not compiled and no index.js/mjs were generated.

According to this article, I made some modifications to package.json:
https://blog.jim-nielsen.com/2018/installing-and-building-an-npm-package-from-github/

  1. I added "prepare": "npm run build" to scripts
  2. I moved the index.js/mjs to a /dist folder. That's more common structure IMHO.

After these changes, the module from github worked like a normal npm-package. If you like, I make a pull-request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants