Shared TypeScript libraries used across JourneyApps projects, including JourneyApps Platform. Each package is published independently under the @journeyapps/common-* scope.
| Package | Purpose |
|---|---|
| @journeyapps/common-codec | Function, promise and external-type codecs, plus serialization of codec definitions. |
| @journeyapps/common-docs | TypeDoc and Docusaurus documentation helpers. |
| @journeyapps/common-ioc | Inversion of control and dependency injection. |
| @journeyapps/common-logger | Named loggers, inherited configuration, styled values and console transports. |
| @journeyapps/common-router | Composable route trees with in-memory and browser hash routers. |
| @journeyapps/common-sdk | Shared API client, fetch and streaming infrastructure for Node.js and browsers. |
| @journeyapps/common-tree | Observable tree entities and nodes. |
| @journeyapps/common-utils | Shared observer primitives. |
| @journeyapps/common-xml | XML parsing, serialization, element construction and incremental updates. |
Install the packages you need directly. common-sdk provides API client infrastructure; it is not an umbrella export of this workspace.
Use the Node.js version in .nvmrc and the pnpm version declared in package.json.
pnpm install
pnpm build
pnpm testThe root build uses TypeScript project references. Packages extend tsconfig.base.json, and tsconfig.json lists the build projects. Add new packages to that list and declare workspace dependencies in their manifests.
pnpm watch
pnpm format
pnpm --filter @journeyapps/common-codec test
pnpm --filter @journeyapps/common-router testpnpm test runs each package's test script. The XML package includes browser tests as well as Node.js tests. Pull requests run formatting checks, the workspace build and tests.
The initial publish under the @journeyapps scope requires an NPM_TOKEN secret in the npm GitHub environment. After every package has been published once, configure npm trusted publishing for this repository and .github/workflows/release.yml, then remove the NODE_AUTH_TOKEN entries from the workflow and the NPM_TOKEN secret.
- Run
pnpm changesetand select the affected packages. - Run the Release workflow manually on the branch to publish. It creates a
devsnapshot and publishes it with thedevnpm tag.
- Include a changeset with changes that need publishing.
- Merge the pull request into
main. - Review and merge the versioning pull request created by Changesets. The release workflow then publishes the updated packages.