fix(core): copy view files when distributing