Skip to content

Commit 5c31f96

Browse files
aleixsuauclaude
andcommitted
IS-11008 Scope SDK CI steps to the SDK workspace; stop linting docs
`-w src/haapi-react-sdk` (a path) also runs scripts in the nested @curity/haapi-react-sdk-docs workspace, which lacks lint/typecheck/prettier-check scripts -> 'Missing script' failures. Target by workspace name (`-w @curity/haapi-react-sdk`) so only the SDK runs, and ignore `docs` in the SDK eslint config (its `eslint .` was choking on docs files outside the SDK tsconfig). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 01d674f commit 5c31f96

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/lwa-github-ci-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
run: npm ci
3434

3535
- name: SDK — Check Formatting
36-
run: npm run prettier-check -w src/haapi-react-sdk
36+
run: npm run prettier-check -w @curity/haapi-react-sdk
3737

3838
- name: SDK — Lint
39-
run: npm run lint -w src/haapi-react-sdk
39+
run: npm run lint -w @curity/haapi-react-sdk
4040

4141
- name: SDK — Typecheck
42-
run: npm run typecheck -w src/haapi-react-sdk
42+
run: npm run typecheck -w @curity/haapi-react-sdk
4343

4444
- name: SDK — Run Tests
45-
run: npm run test -w src/haapi-react-sdk -- run
45+
run: npm run test -w @curity/haapi-react-sdk -- run
4646

4747
- name: App — Check Formatting
4848
run: npm run prettier-check -w src/haapi-react-app

src/haapi-react-sdk/eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import * as reactHooks from 'eslint-plugin-react-hooks';
1717
import reactRefresh from 'eslint-plugin-react-refresh';
1818

1919
export default tseslint.config(
20-
{ ignores: ['dist'] },
20+
// `docs` is its own workspace (Docusaurus) with its own toolchain; don't lint it from the SDK.
21+
{ ignores: ['dist', 'docs'] },
2122
{
2223
extends: [
2324
js.configs.recommended,

0 commit comments

Comments
 (0)