using `resolve` replace `scripts`