Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--.github/workflows/ci.yaml15
-rw-r--r--editors/code/package.json9
2 files changed, 17 insertions, 7 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 31bb7eed8d..9f246098e7 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -161,10 +161,21 @@ jobs:
# if: runner.os == 'Linux'
# working-directory: ./editors/code
+ # If this steps fails, your code's type integrity might be wrong at some places at TypeScript level.
+ - run: npm run typecheck
+ working-directory: ./editors/code
+ if: needs.changes.outputs.typescript == 'true'
+
+ # You may fix the code automatically by running `npm run lint:fix` if this steps fails.
- run: npm run lint
working-directory: ./editors/code
if: needs.changes.outputs.typescript == 'true'
+ # To fix this steps, please run `npm run format`.
+ - run: npm run format:check
+ working-directory: ./editors/code
+ if: needs.changes.outputs.typescript == 'true'
+
- name: Run VS Code tests (Linux)
if: matrix.os == 'ubuntu-latest' && needs.changes.outputs.typescript == 'true'
env:
@@ -179,10 +190,6 @@ jobs:
run: npm test
working-directory: ./editors/code
- - run: npm run pretest
- working-directory: ./editors/code
- if: needs.changes.outputs.typescript == 'true'
-
- run: npm run package --scripts-prepend-node-path
working-directory: ./editors/code
if: needs.changes.outputs.typescript == 'true'
diff --git a/editors/code/package.json b/editors/code/package.json
index ffb5dd9079..31c483beb6 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -35,9 +35,12 @@
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
"build": "npm run build-base -- --sourcemap",
"watch": "npm run build-base -- --sourcemap --watch",
- "lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
- "fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
- "pretest": "tsc && npm run build",
+ "format": "prettier --write .",
+ "format:check": "prettier --check .",
+ "lint": "eslint -c .eslintrc.js --ext ts ./src ./tests",
+ "lint:fix": "npm run lint -- --fix",
+ "typecheck": "tsc",
+ "pretest": "npm run typecheck && npm run build",
"test": "node ./out/tests/runTests.js"
},
"dependencies": {