use node -p in the makefile

instead of console.log
package the commonjs file in the npm package