Skip to content

Latest commit

 

History

History
134 lines (91 loc) · 4.56 KB

CONTRIBUTING.md

File metadata and controls

134 lines (91 loc) · 4.56 KB

Contributing

How to propose changes to the Mapsight monorepo.


Before you start

  1. Read Licensing — MIT for the public tree.
  2. Read Trademark policy — code license does not grant use of the Mapsight name or logo.
  3. Read the Code of Conduct — expected behavior in community spaces.
  4. Read Standards — toolchain, checks, testing expectations.
  5. For map runtime changes, skim Redux architecture and Action guide.

Contributions to the public tree are accepted under MIT. See Decision 011.


Development setup

git clone https://github.com/open-mapsight/mapsight.git
cd mapsight
pnpm install
pnpm typecheck
pnpm test
pnpm run check

Use Node and pnpm versions from root package.json engines.


Pull request workflow

  1. Branch from the current default integration branch (maintainers use public and private branch variants — follow team guidance).
  2. Keep diffs focused; match surrounding style.
  3. Run locally before push:
    • pnpm typecheck
    • pnpm lint
    • pnpm test (or affected packages via turbo filters)
    • pnpm run check
  4. Open a PR with a clear description and test plan.

Husky hooks run leak checks and lint-staged on commit/push.


Adding a decision note

  1. Copy docs/architecture/decisions/template.md to the next number, e.g. 013-short-title.md.
  2. Fill Context, Decision, Alternatives, Consequences — plain language, not formal committee prose.
  3. Add a row to decisions/README.md index.
  4. Link related package docs (Redux, integration guides) in the References section.

Write one for framework choices, public API/config contracts, explicit non-goals, and licensing/ecosystem alignment. Skip routine fixes and dependency bumps.

Status values: Documented · Open · Deprecated · Superseded by Decision NNN


Updating documentation

Change type Update
New integration pattern docs/integration/* + link from docs/README.md
Ecosystem/deployment ECOSYSTEM.md (public patterns only)
Package behavior Package README.md and/or packages/*/docs/

Package layout

Monorepo packages under packages/ and demo apps under apps/:

  • Workspace dependencies use workspace:^
  • Published packages under @mapsight/* scope
  • Build: tsconfig.build.json for emit; tests in main tsconfig.json

Adding a new package: follow an existing package’s package.json, tsconfig split, and turbo pipeline entries.


Releases

Published @mapsight/* packages are versioned from the monorepo root with Changesets.

Contributors: when maintainers request it, add a changeset in your PR:

pnpm changeset

CI verifies pending changesets with pnpm changeset status --since=main.

Maintainers: pushing to main runs the release workflow ( changesets/action):

  1. Opens or updates a “Version Packages” PR (pnpm run version-packages: version bumps, changelogs, refreshed starter @mapsight/* pins, and regenerated vector-style-compiler IDE metadata), or
  2. When that PR merges, runs pnpm run release (turbo build + changeset publish) to publish to npm (OIDC — no manual npm publish from package directories).

Do not use per-package npm version / npm publish.

Before merging a release PR that introduces a new package name, configure the npm package record and trusted publisher first; see npm Trusted Publishing.


Questions

Open a GitHub issue for code, documentation, and integration questions.

For licensing and trademark questions, email contact@open-mapsight.org — see LICENSING.md and TRADEMARK.md.


Related