Skip to content

feat: standardize package configuration and workflows#1

Merged
Zaiidmo merged 6 commits intomasterfrom
develop
Mar 2, 2026
Merged

feat: standardize package configuration and workflows#1
Zaiidmo merged 6 commits intomasterfrom
develop

Conversation

@Zaiidmo
Copy link
Contributor

@Zaiidmo Zaiidmo commented Mar 1, 2026

Standardization Pull Request

Changes

  • ✅ Added standardized GitHub workflows (pr-validation, release-check, publish)
  • ✅ Updated SONAR_PROJECT_KEY to CISCODE-MA_AuditKit
  • ✅ All checks passing: format, lint, typecheck, build

Status

  • ✅ Format: Passing
  • ✅ Lint: Passing
  • ✅ Typecheck: Passing
  • ✅ Build: Passing

All 7 packages now have identical standardized configuration and workflows.

@Zaiidmo Zaiidmo requested review from a team and Copilot March 1, 2026 23:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Standardizes repository/package configuration by aligning lockfile metadata with the @ciscode/audit-kit package and adding a project-specific Copilot contributor guide to support consistent development across the codebase.

Changes:

  • Updated package-lock.json to reflect the @ciscode/audit-kit package name and refreshed dependency lock data.
  • Added .github/copilot-instructions.md contributor guidance for project structure, testing, versioning, and workflows.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
package-lock.json Aligns lockfile package metadata with @ciscode/audit-kit and updates locked dependency entries.
.github/copilot-instructions.md Adds a Copilot-oriented developer guide intended to standardize contribution patterns and practices.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +25 to +40
## 🏗️ AuditKit Project Structure

AuditKit uses the CSR pattern for all modules. All code is in `src/` and organized for maximum reusability and testability.

```
src/
index.ts # Public API exports (only services, DTOs, guards, decorators, types)
core/ # Core logic, base types, and utilities
index.ts
infra/ # Infrastructure helpers (internal)
nest/ # NestJS-specific modules and adapters
index.ts
module.ts # Main NestJS module
# Add new modules as needed (e.g., audit/, logging/, etc.)
```

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project structure example references src/core/infra/ and multiple directories (controllers/, dto/, guards/, decorators/) that don't exist in this repo (currently there is src/infra/, and only src/core, src/infra, src/nest). This makes the guide misleading for contributors—please update the structure section to match the actual folder layout (or clearly label it as aspirational and point to the real paths).

Copilot uses AI. Check for mistakes.
Comment on lines +119 to +140
### Path Aliases

Configured in `tsconfig.json`:

```json
"@core/*" : ["src/core/*"],
"@nest/*" : ["src/nest/*"],
"@dto/*" : ["src/dto/*"],
"@guards/*" : ["src/guards/*"],
"@decorators/*": ["src/decorators/*"],
"@config/*" : ["src/config/*"],
"@utils/*" : ["src/core/utils/*"]
```

Use aliases for imports:

```typescript
import { AuditService } from "@core/audit.service";
import { AuditModule } from "@nest/module";
import { CreateAuditDto } from "@dto/create-audit.dto";
```

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guide claims TypeScript path aliases are configured in tsconfig.json (and lists @core/*, @nest/*, etc.), but the current tsconfig.json in this repo does not define any compilerOptions.paths. Either add the actual path alias configuration or adjust/remove this section to avoid sending contributors down a dead end.

Copilot uses AI. Check for mistakes.

- Modular CSR (Controller-Service-Repository) architecture
- TypeScript strict mode, path aliases, and project references
- Jest and Vitest testing with 80%+ coverage required
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overview states "Jest and Vitest testing" but vitest is not present in package.json/package-lock.json (only Jest is installed). Please either add Vitest as a dependency + scripts, or update this doc to reflect the actual test runner(s) used so contributors don’t try to run non-existent tooling.

Suggested change
- Jest and Vitest testing with 80%+ coverage required
- Jest testing with 80%+ coverage required

Copilot uses AI. Check for mistakes.
Comment on lines +435 to +439
npm link @ciscode/example-kit

# Develop and test
# Unlink when done
npm unlink @ciscode/example-kit
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are several remaining template placeholders referencing a different package name (e.g., changeset example uses "@ciscode/example-kit", and the npm link example links @ciscode/example-kit). These should be updated to @ciscode/audit-kit (or made intentionally generic) to prevent incorrect copy/paste during releases and local testing.

Suggested change
npm link @ciscode/example-kit
# Develop and test
# Unlink when done
npm unlink @ciscode/example-kit
npm link @ciscode/audit-kit
# Develop and test
# Unlink when done
npm unlink @ciscode/audit-kit

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

@Zaiidmo Zaiidmo merged commit 2d081ba into master Mar 2, 2026
2 checks passed
@Zaiidmo Zaiidmo deleted the develop branch March 2, 2026 09:08
@Zaiidmo Zaiidmo restored the develop branch March 2, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants