fix: patch tsconfig.json to ES2022 to support Array.at() during dashboard build
This commit is contained in:
parent
60269ee222
commit
1f7d85b35d
@ -393,7 +393,9 @@
|
||||
|
||||
- name: Build dashboard assets on target
|
||||
ansible.builtin.shell: |
|
||||
cd "{{ xworkspace_console_local_dashboard_dir }}" && npm install && npm run build
|
||||
cd "{{ xworkspace_console_local_dashboard_dir }}"
|
||||
sed -i 's/"ES2020"/"ES2022"/g' tsconfig.json 2>/dev/null || true
|
||||
npm install && npm run build
|
||||
become: false
|
||||
|
||||
- name: Sync dashboard dist to portal directory
|
||||
|
||||
Loading…
Reference in New Issue
Block a user