repackaging PIM for npm publishing