Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23929

Avoid packaging extraneous files when publishing to npm

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 18.0.0
    • 18.0.0-rc-1
    • None
    • Unknown
    • N/A
    • N/A

    Description

      When publishing npm packages for the first time during the release of 18.0.0RC1 we notice that multiple files and directories were added to the packages but are not strictly needed for the good reuse of the packages by other projects.
      This includes:

      • temp directory
      • build files such as tsconfig.json files
      • test sources

      After closer inspection, what's strictly needed is:

      • the src directory stripped of its test souces
      • the dist directory exhaustivelly
      • the package.json file
      • a README file (will be handled in a separate issue), to have a nicer experience when browsing the packages on https://www.npmjs.com/

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: