Преглед изворни кода

ref: Update npm scripts (#12422)

factor2
Robert Pintilii пре 2 година
родитељ
комит
10d202439b
No account linked to committer's email address
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 1
    1
      .github/workflows/ci.yml
  2. 2
    2
      package.json

+ 1
- 1
.github/workflows/ci.yml Прегледај датотеку

@@ -19,7 +19,7 @@ jobs:
19 19
       run: npm run lang-sort
20 20
     - name: Check if the git repository is clean
21 21
       run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
22
-    - run: npm run lint
22
+    - run: npm run lint:ci
23 23
     - run: for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done
24 24
   linux-build:
25 25
     name: Build Frontend (Linux)

+ 2
- 2
package.json Прегледај датотеку

@@ -195,11 +195,11 @@
195 195
   },
196 196
   "license": "Apache-2.0",
197 197
   "scripts": {
198
-    "lint": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:web",
198
+    "lint": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && tsc --noEmit",
199 199
     "tsc:web": "tsc --noEmit --project tsconfig.web.json",
200 200
     "tsc:native": "tsc --noEmit --project tsconfig.native.json",
201 201
     "tsc:ci": "npm run tsc:web && npm run tsc:native",
202
-    "lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:ci",
202
+    "lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:web",
203 203
     "lang-sort": "./resources/lang-sort.sh",
204 204
     "lint-fix": "eslint --ext .js,.ts,.tsx --max-warnings 0 --fix .",
205 205
     "postinstall": "patch-package --error-on-fail && jetify",

Loading…
Откажи
Сачувај