Refine package.json and tools/task.mk