Skip to content

Commit e7bda9d

Browse files
committed
GLSP-1636: Compile before linting to resolve workspace imports
The example app now consumes @eclipse-glsp/ide via 'workspace:*', so import-x/no-unresolved fails unless the package's lib output exists. Run 'compile' from the 'lint' script (and 'build' in 'check:all') so linting works on a clean tree, including the CI Lint job. Part of: eclipse-glsp/glsp#1636
1 parent b3451b1 commit e7bda9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"app": "pnpm -C examples/workflow-webapp",
77
"build": "pnpm compile && pnpm app bundle",
8-
"check:all": "pnpm install && pnpm lint && pnpm format:check && pnpm headers:check",
8+
"check:all": "pnpm install && pnpm build && pnpm lint && pnpm format:check && pnpm headers:check",
99
"clean": "pnpm -r run clean",
1010
"compile": "tsc -b",
1111
"copy:client": "copyfiles -f ./examples/workflow-webapp/app/* ../server/example/org.eclipse.glsp.ide.workflow.editor/diagram",
@@ -16,7 +16,7 @@
1616
"headers:check": "glsp checkHeaders ../../glsp-eclipse-integration -f ts tsx java -e \"**/src-gen/**\"",
1717
"headers:fix": "glsp checkHeaders ../../glsp-eclipse-integration -f ts tsx java -e \"**/src-gen/**\" --autoFix",
1818
"preinstall": "npx only-allow pnpm",
19-
"lint": "eslint .",
19+
"lint": "pnpm compile && eslint .",
2020
"lint:ci": "pnpm lint --output-file eslint_report.json --format json",
2121
"lint:fix": "pnpm lint --fix",
2222
"publish:latest": "glsp releng publish latest",

0 commit comments

Comments
 (0)