This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d57dff52-e6bd-45ff-9039-1a913c8d62c1 XWIKI-23929 Open

Avoid packaging extraneous files when publishing to npm

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f8e126b0-32fe-4423-9f2f-e4b3f38aa180 Manuel Leduc created this issue on 21/Jan/26 14:37
 
Summary: Avoid packaging extranous file when publishing to npm
Issue Type: cid:jira-generated-image-avatar-d57dff52-e6bd-45ff-9039-1a913c8d62c1 Task
Affects Versions: 18.0.0-rc-1
Assignee: Unassigned
Components: Node
Created: 21/Jan/26 14:37
Priority: cid:jira-generated-image-static-major-2669a90d-aa1d-4585-826e-b9b3038b60a6 Major
Reporter: Manuel Leduc
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/
 
 

6 updates

 
cid:jira-generated-image-avatar-f8e126b0-32fe-4423-9f2f-e4b3f38aa180 Changes by Manuel Leduc on 21/Jan/26 14:37
 
Summary: Avoid packaging extranous file extraneous files when publishing to npm
Fix Version: 18.0.0
Fix Version: 18.1.0-rc-1
Assignee: Manuel Leduc
Component: Node
Component: Development Issues only