moved compilation to package.json