Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-node:24",
"image": "mcr.microsoft.com/devcontainers/typescript-node:24",
"name": "node:25",
"image": "mcr.microsoft.com/devcontainers/base:trixie",
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
],
Expand Down Expand Up @@ -51,6 +51,9 @@
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "25"
}
}
}
9 changes: 5 additions & 4 deletions .devcontainer/postCreateCommand.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

set -eux pipefail
set -euxo pipefail

git config --global --add safe.directory /workspaces/terraform-modules-releaser
sudo chown node:node node_modules
npm install --no-fund
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
git config --global --add safe.directory "${REPO_ROOT}"
sudo chown "$(id -u):$(id -g)" node_modules
npm ci --no-fund
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For detailed architecture, testing patterns, and design context, see the `docs/`
## Tech Stack

- **TypeScript 5.9+** strict mode, ES modules (`"type": "module"` in package.json)
- **Node.js 24+** local dev (`.node-version`); compiles to Node.js 20+ for GitHub Actions runtime (`action.yml` →
- **Node.js 25+** local dev (`.node-version`); compiles to Node.js 20+ for GitHub Actions runtime (`action.yml` →
`node20`)
- **Vitest** for testing with V8 coverage
- **Biome** for linting/formatting — NOT ESLint/Prettier (except Prettier for Markdown/YAML only)
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
25
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm run package # Build dist/ via ncc (auto-generated, never edit manual

## Environment

- **Node.js 24+** locally (`.node-version`); compiled output targets Node.js 20+ (`action.yml` → `node20`)
- **Node.js 25+** locally (`.node-version`); compiled output targets Node.js 20+ (`action.yml` → `node20`)
- **GITHUB_TOKEN** required for integration tests — tests skip gracefully without it
- Path aliases: `@/` → `src/`, `@/tests/` → `__tests__/`, `@/mocks/` → `__mocks__/`

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Before contributing, please:

### Prerequisites

- **Node.js**: Version 24 or higher (see [.node-version](./.node-version) for the exact version)
- **Node.js**: Version 25 or higher (see [.node-version](./.node-version) for the exact version)
- **npm**: Comes with Node.js
- **Git**: For version control

Expand Down
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Releaser project.

The repository includes a pre-configured devcontainer with:

- **Base image**: `mcr.microsoft.com/devcontainers/typescript-node:24` (Node.js 24)
- **Base image**: `mcr.microsoft.com/devcontainers/base:trixie` with Node.js 25 feature
- **Named volume**: `node_modules` volume persists across container rebuilds
- **Post-create script**: Sets Git safe directory, fixes node_modules ownership, runs `npm install`
- **Visual Studio Code extensions**: Biome, Prettier, GitHub Actions, Markdown tools, GitHub PR extension
Expand All @@ -18,7 +18,7 @@ The repository includes a pre-configured devcontainer with:

### Manual Setup

1. Install Node.js 24+ (see `.node-version`)
1. Install Node.js 25+ (see `.node-version`)
2. Run `npm ci --no-fund`
3. Export `GITHUB_TOKEN` for integration tests

Expand Down
Loading