Use `?=` syntax and prepublish script