eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

eclipse-scout/chart: add exports in package.json #1091

Closed fschinkel closed 2 months ago

fschinkel commented 2 months ago

The test code contains a "require" which is interpreted as commonjs feature. When a module depends on eclipse-scout/chart it interprets the files in this dependency as ES module if explicitly stated in the package.json or if there are no commonjs features in the source code. As we can not eliminate the "require" from the test code the exports are added to the package.json to ensure only the correct run time files are checked. Exclude test d.ts files from packaging.