Skip to content

Conversation

@asteiner-swisstopo
Copy link
Contributor

@asteiner-swisstopo asteiner-swisstopo commented Nov 26, 2025

Typically, this is what happens:

  1. We manually run the formatter (npm run format). This adds whitespace to releases-sidebar.json.
  2. In Codebuild, we first run the build with npm run docs:build. This removes the whitespace added by the formatter again.
  3. Codebuild checks the format with npm run format:check and complains.

See the CodeBuild build specs for a PR in doc-tech.

By having the formatter ignore release-sidebar.json we avoid the problem.

Test link

Typically, this is what happens:

1. We manually run the formatter (`npm run format`). This adds whitespace to `releases-sidebar.json`.
2. In Codebuild, we first run the build with  `npm run docs:build`. This removes the whitespace added by the formatter again.
3. Codebuild checks the format with `npm run format:check` and complains.

See [the CodeBuild build specs for a PR in doc-tech](https://github.com/geoadmin/infra-terraform-bgdi/blob/master/tf/aws/swisstopo-bgdi-builder/codebuild_projects/doc-tech/buildspec_pr.yml).

By having the formatter ignore `release-sidebar.json` we avoid the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants