make typescript-*TypeScript commands
TypeScript targets manage pnpm generation, builds, strict checks, diagnostics, profiling and standalone packaging.
When to use
Use this reference when generating, reviewing or operating a Service Architect project.
Behavior
- The root workspace uses one frozen pnpm lock where available.
- Generated package scripts build services and independent contract/model packages.
- Debug targets expose the Node inspector and retain source maps.
TypeScript workspace commands
Public root targets and generated TypeScript orchestration.
make typecheckWorkspaceType-check every workspace package.
make coverageWorkspaceRun service tests with Node coverage.
make typescript-toolsWorkspaceInstall pinned TypeScript schema-generation tools.
make typescript-docker-buildWorkspaceBuild production service images.
make typescript-packageWorkspacePackage every service as a standalone repository.
make typescript-package-<service-name>ServicePackage one selected service. <service-name> is derived from Service.name.
make debug-<service-name>ServiceStart the selected service with the Node inspector on its generated debug port.
make benchmarkWorkspaceCompare the generated framework service with its native baseline; pass BENCHMARK_ARGS for options.
make profileWorkspaceCollect framework/native profiles; pass PROFILING_ARGS for options.
Standalone TypeScript service commands
Targets inside an extracted service package.
make buildServiceInstall dependencies and build TypeScript output.
make test / coverageServiceRun tests, optionally collecting coverage.
make typecheckServiceRun the TypeScript project build in check mode.
make lintServiceType-check then run ESLint with zero warnings.
make fmtServiceFormat the package with Prettier.
make cleanServiceRemove dist, dist-test, node_modules and tsbuildinfo.
make hooksServiceInstall generated pre-commit and pre-push quality gates.
make docker-build / docker-upServiceBuild and start the standalone image.
make debugServiceUse the development image and expose the Node inspector.
make docker-down / docker-cleanServiceStop standalone Compose, optionally removing volumes.
Contract/model package commands
Targets emitted for independent npm schema packages.
make installPackageInstall from the frozen pnpm lock when present.
make generatePackageRun sorted generate-*.generated.sh schema scripts.
make buildPackageGenerate then compile the package.
make testPackageBuild and run package tests.
make docker-buildPackageVerify the independent package in a generated Docker build.
make cleanPackageRemove dist and TypeScript build state.
TypeScript workflow
make typecheck
make coverage
make debug-<service-name>
make benchmark BENCHMARK_ARGS="--help"
make typescript-package