support npm new publish flow. fixed #129