The map files in the npm package is pointing to a reference that doesn't exist in the npm structure (../../src), this causes bundling of the cookie package with for example systemjs to find the correct source file since these are placed in the ts folder. The map files should be based on ts and not on ../../src.
The build structure should reflect the npm package layout so that map files is handled correctly. Look for example at the rxjs library and the map files , these reflect the npm structure.
The map files in the npm package is pointing to a reference that doesn't exist in the npm structure (../../src), this causes bundling of the cookie package with for example systemjs to find the correct source file since these are placed in the ts folder. The map files should be based on ts and not on ../../src.
The build structure should reflect the npm package layout so that map files is handled correctly. Look for example at the rxjs library and the map files , these reflect the npm structure.