update env.json and common.js to export modules