Skip to content

About

Digitraffic CDK apps

Resources

Stars

5 stars

Watchers

3 watching

Forks

Latest commit

 

History

4,737 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digitraffic AWS CDK projects

This project contains CDK applications for the Digitraffic project.

Projects are categorized as:

  • projects under other are generic, e.g. swagger-joiner
  • projects under road or marine are related to a mode of transport, e.g. road/variable-signs

Links

Digitraffic is operated by Fintraffic

TL;DR

Init rush, (e.g., installs Git hooks).

rush install
rush update-autoinstaller --name rush-command-line-tools
rush update

Update dependencies for all projects

All dependency updates use ./update-deps.sh which automatically runs: rush update --full, rush update-autoinstaller, rush install

Update all dependencies (recommended)

# Updates all dependencies with 7-day cooldown (excludes typescript and @types/node)
./update-deps.sh

# Audit dependency vulnerabilities
rush audit

# Verify everything builds
rush rebuild

Update CDK dependencies only

# Update only AWS CDK packages (aws-cdk, aws-cdk-lib, @aws-cdk/*)
./update-deps.sh '/^@?aws-cdk/'

# Audit dependency vulnerabilities
rush audit

# Verify everything builds
rush rebuild

Update specific packages

# Update only vitest-related packages
./update-deps.sh '/^@?vitest|^vitest$/'

# Audit dependency vulnerabilities
rush audit

# Update only AWS SDK packages
./update-deps.sh '/^@aws-sdk\//'

# Audit dependency vulnerabilities
rush audit

# Update multiple specific packages
./update-deps.sh '/^(vitest|esbuild)$/'

# Audit dependency vulnerabilities
rush audit

# Verify everything builds
rush rebuild

Check global overrides still needed

./check-global-overrides.sh

See DEPENDENCY_OVERRIDES.md for the full review flow.

Advanced: Environment variables

# Customize cooldown and target strategy for update-deps.sh
COOLDOWN_DAYS=7 TARGET=greatest ./update-deps.sh

Advanced: Rush commands (for CI/automation)

# Update with SKIP_RUSH_UPDATE=1 (doesn't run final steps automatically)
rush repo:update-deps-mature

# Then manually run:
rush update --full
rush update-autoinstaller --name rush-command-line-tools
rush rebuild

Update toolchain (Node, Rush, pnpm, CDK CLI)

When updating the toolchain versions, update these files manually:

1. Node.js version

Check latest versions with individual release dates:

Edit .node-version:

node/24.18.1

2. Rush and pnpm versions

Check latest versions with release dates:

Edit rush.json:

{
  "nodeSupportedVersionRange": ">=24.0.0 <25.0.0",
  "rushVersion": "5.178.0",
  "pnpmVersion": "10.33.0"
}

3. CDK CLI version

Check latest versions with release dates:

Note: This is only for the CLI tool used in deployment scripts. The CDK library (aws-cdk-lib) in package.json is updated automatically via ./update-deps.sh.

Edit scripts/cdk-diff-and-deploy.sh for CLI version:

CDK_VERSION=2.1134.0

4. After toolchain updates

rush update --full
rush update-autoinstaller --name rush-command-line-tools
rush rebuild

Update digitraffic-common subtree

The lib/digitraffic-common is a git subtree from the digitraffic-common repository.

Note: Projects consume @digitraffic/common as an npm package, not directly from the subtree.

Pull latest changes from common repository:

# Pull latest common changes
rush common-subtree -c pull -r master

# Commit the subtree update
git add lib/digitraffic-common
git commit -m "Update digitraffic-common subtree"

Push changes to common repository:

If you made changes to files under lib/digitraffic-common:

# Push changes back to common repository
rush common-subtree -c push -r master

See full guide: Digitraffic-common maintenance

Format

rush format:package-json
rush format:fix

Rush commands

Global Rush commands are configured in command-line.json

You can list them with:

rush --help

About

Digitraffic CDK apps

Resources

Stars

5 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages