compile on prepublish