瀏覽代碼

Validate typings can be imported correctly in simple ts project (#1785)

Peng Lyu 5 年之前
父節點
當前提交
d7ddf03fde
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      .github/workflows/ci.yml

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

@@ -23,6 +23,17 @@ jobs:
         run: |
           yarn
           yarn gulp editor-distro
+      - name: Typings validation prep
+        run: |
+          mkdir typings-test
+      - name: Typings validation
+        working-directory: ./typings-test
+        run: |
+          yarn init -yp
+          yarn add typescript
+          yarn tsc --init
+          echo "import '../vscode/out-monaco-editor-core';" > a.ts
+          yarn tsc --noEmit
       - name: NPM Install
         run: npm install
       - name: Webpack Bundle