workflows: explicitly add a dummy ext/ directory

Having it checked in to git caused problems with Grist Desktop and
Grist Static because their build processes expected to have nothing
there, as well as interfering with checking out Grist Core as a
submodule.

So we do this instead.
This commit is contained in:
Jordi Gutiérrez Hermoso 2024-07-11 16:00:30 -04:00 committed by jordigh
parent 8f443a3d78
commit a437dfa28c
2 changed files with 4 additions and 5 deletions

View File

@ -70,6 +70,10 @@ jobs:
with: with:
ref: ${{ env.BRANCH }} ref: ${{ env.BRANCH }}
- name: Add a dummy ext/ directory
run:
mkdir ext && touch ext/dummy
- name: Check out the ext/ directory - name: Check out the ext/ directory
if: matrix.image.name != 'grist-oss' if: matrix.image.name != 'grist-oss'
run: buildtools/checkout-ext-directory.sh ${{ matrix.image.repo }} run: buildtools/checkout-ext-directory.sh ${{ matrix.image.repo }}

View File

@ -1,5 +0,0 @@
`ext` is a directory that allows derivatives of Grist core to be created, without modifying any of the base files.
Files placed in here should be new files, or replacing files in the `stubs` directory.
When compiling, Typescript resolves files in `ext` before files in `stubs`, using the `ext` file instead (if it exists).