updates pkg json with scripts