rename to core
This commit is contained in:
@@ -20,17 +20,17 @@ interface TsFile {
|
||||
function classifyFile(filePath: string): PackageKind {
|
||||
const normalized = filePath.replace(/\\/g, '/');
|
||||
|
||||
// Bounded-context domain lives under packages/racing/domain
|
||||
if (normalized.includes('/packages/racing/domain/')) {
|
||||
// Bounded-context domain lives under core/racing/domain
|
||||
if (normalized.includes('/core/racing/domain/')) {
|
||||
return 'racing-domain';
|
||||
}
|
||||
if (normalized.includes('/packages/racing-application/')) {
|
||||
if (normalized.includes('/core/racing-application/')) {
|
||||
return 'racing-application';
|
||||
}
|
||||
if (normalized.includes('/packages/racing-infrastructure/')) {
|
||||
if (normalized.includes('/core/racing-infrastructure/')) {
|
||||
return 'racing-infrastructure';
|
||||
}
|
||||
if (normalized.includes('/packages/racing-demo-infrastructure/')) {
|
||||
if (normalized.includes('/core/racing-demo-infrastructure/')) {
|
||||
return 'racing-demo-infrastructure';
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ describe('Package dependency structure for racing slice', () => {
|
||||
|
||||
if (violations.length > 0) {
|
||||
const message =
|
||||
'Found forbidden imports in racing domain layer (packages/racing/domain):\n' +
|
||||
'Found forbidden imports in racing domain layer (core/racing/domain):\n' +
|
||||
violations
|
||||
.map(
|
||||
(v) =>
|
||||
@@ -197,7 +197,7 @@ describe('Package dependency structure for racing slice', () => {
|
||||
|
||||
if (violations.length > 0) {
|
||||
const message =
|
||||
'Found forbidden imports in packages/racing-application:\n' +
|
||||
'Found forbidden imports in core/racing-application:\n' +
|
||||
violations
|
||||
.map(
|
||||
(v) =>
|
||||
|
||||
Reference in New Issue
Block a user