Jelajahi Sumber

meta: fix TypeScript CI

Antoine du Hamel 1 tahun lalu
induk
melakukan
d0cc5b43e6
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      .github/workflows/ci.yml

+ 6 - 0
.github/workflows/ci.yml

@@ -119,6 +119,12 @@ jobs:
                 await writeFile(pjsonPath, JSON.stringify(pjson))
               }
             }
+            const pjsonPath = `./packages/uppy/package.json`
+            const pjson = JSON.parse(await readFile(pjsonPath));
+            delete pjson.types
+            await writeFile(pjsonPath, JSON.stringify(pjson))
           EOF
+          echo > packages/uppy/types/index.test-d.ts
+          rm -r packages/@uppy/*/types
       - name: Attempt building TS packages
         run: corepack yarn run build:ts