Giter VIP home page Giter VIP logo

Comments (17)

nicholasguyett avatar nicholasguyett commented on September 13, 2024 2

Created a pull request for the package owner to review. This should be resolved as soon as the pull request is merged and the npm package updated.

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024 1

@ortichon, sorry. Work got really busy and I haven't actually contributed any code to the project yet. I'll try to get it up and running this weekend, if nothing else gets in the way.

from ngx-bootstrap-multiselect.

softsimon avatar softsimon commented on September 13, 2024 1

@nicholasguyett I tried do npm install and I got the .js .js.map files. Can you check again?

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

I've ran into the same issue. I'll try to the source control configured to generate the JS and D files sometime this week. I'll ping @softsimon to update the NPM package once I've done that.

from ngx-bootstrap-multiselect.

ortichon avatar ortichon commented on September 13, 2024

@nicholasguyett any update?

from ngx-bootstrap-multiselect.

mashhoodr avatar mashhoodr commented on September 13, 2024

@nicholasguyett hi! how do we use this? Im still seeing only the TS file in the repo.

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

If you're pulling directly from the repository, you have to run tsc from the repository root. It will build the js files needed. The idea is the compiled JS will be pushed to NPM.

from ngx-bootstrap-multiselect.

mashhoodr avatar mashhoodr commented on September 13, 2024

ah got it, noticed this isnt updated on npm yet so got a bit confused. Thanks!

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

from ngx-bootstrap-multiselect.

softsimon avatar softsimon commented on September 13, 2024

Just published a new version. Just comment if something is missing.

from ngx-bootstrap-multiselect.

mashhoodr avatar mashhoodr commented on September 13, 2024

@softsimon @nicholasguyett I just tried this, still getting only the ts file in node_modules for version 0.3.2 (latest). Needed to run the tsc command to get it working still

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

@softsimon, sorry, I think I missed a part of my explanation. I avoided checking in the compiled js files into the project, for source control best practice reasons, but the fix for this was supposed to be having the npm package include the compiled JS files.

So, after tsc is run, the compiled js and map file would be uploaded to the npm package. I've never added an NPM package before, so I thought it was possible to include compiled files in the package that aren't in the repository.

from ngx-bootstrap-multiselect.

ibabchanik avatar ibabchanik commented on September 13, 2024

@softsimon , @nicholasguyett when you planed update npm with builded js file?

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

I don't know when NPM will be updated, but I think I did find out why the compiled JS was not included in the project.

According to the documentation on npm publish, npm automatically ignores fies in the gitignore file. If one also adds a .npmignore that does not also exclude the file, npm will include it in the package.

@softsimon, can you pull the latest and publish a new npm package with the compiled JS? If you run tsc before publishing I believe it should include the compiled JS in the package, which should resolve this task.

from ngx-bootstrap-multiselect.

softsimon avatar softsimon commented on September 13, 2024

@nicholasguyett I'll try! I was unsure what the correct way was to handle this situation.

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

Did you run tsc before publishing? The js files are still missing, but I'm not sure if its because I messed up the configuration or the js files were not generated.

from ngx-bootstrap-multiselect.

nicholasguyett avatar nicholasguyett commented on September 13, 2024

Sorry, I accidentally looked at the release files on github rather than the npm package. You are correct.

from ngx-bootstrap-multiselect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.