Here is my current setup using patch-package, not ideal but its the only way I can find to currently do it.
Setup
- install patch-package via
npm i patch-package - install @strapi/admin if not already included in your package.json via
npm i @strapi/admin - add the following scripts to package.json:
"generate-admin-patches": "npx patch-package@strapi/admin""apply-admin-patches": "npx patch-package"
Usage
- Make changes to relevant files, likely found in
/node_modules/@strapi/admin/admin/src/pages - Save changes via
npm run generate-admin-patches - We can then apply these patches, for example if we update strapi or when packages are initially installed packages, by running
npm run apply-admin-patches