Giter Site home page Giter Site logo

Comments (5)

MurhafSousli avatar MurhafSousli commented on May 30, 2024 1

Fixed in 1.1.3

from ngx-sharebuttons.

tinesoft avatar tinesoft commented on May 30, 2024

Hi @MurhafSousli ,

I have downloaded latest v1.1.2 and looked inside the installed package in my node_modules/ng2-sharebuttons folder. The problem is that it still contains the whole project structure, where as it should only contains what is inside 'dist' folder (conf. PR #19).

Did you publish using the new gulp task i've added in PR #19: gulp publish ?
Which prepare the 'dist' folder and them run npm publish on that folder.

You can also run gulp build and them npm publish ./dist

from ngx-sharebuttons.

MurhafSousli avatar MurhafSousli commented on May 30, 2024

@tinesoft This can be solved by excluding directories in npmignore

I used npm run prepublish, and tried the compiled files in the demo and it works, then when I published to npm using gulp publish, I tested it in the demo again and I got that error

from ngx-sharebuttons.

tinesoft avatar tinesoft commented on May 30, 2024

Hi,

you mean : npm run prepublish? (not gulp run prepublish)
If so, this command runs the default gulp task (see "scripts" section of package.json),
which build the dist folder.

Could you try my second proposition:

gulp build

then

npm publish ./dist from project root

I believe we shouldn't have to specify an .npmignore file because only the content of dist folder is supposed to be published to NPM, and it already contains just everything needed for the package...

from ngx-sharebuttons.

MurhafSousli avatar MurhafSousli commented on May 30, 2024

@tinesoft sorry I meant npm run prepublish, okay I will try

from ngx-sharebuttons.

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.