refactor: adapter 구현중..
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { parseAsync } from "@babel/core";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { mkdir, readFile, readdir, writeFile } from "node:fs/promises";
|
||||
import { mkdir, readFile, readdir } from "node:fs/promises";
|
||||
import { dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
||||
import { fileURLToPath, pathToFileURL } from "node:url";
|
||||
import { createRequire } from "node:module";
|
||||
|
||||
import { architectureDependencyReportArtifactSchema } from "./contracts/release-artifacts.ts";
|
||||
import { writeValidatedJsonArtifact } from "./lib/validated-json-artifact.ts";
|
||||
|
||||
type PathRule = Readonly<{ path?: string; pathNot?: string }>;
|
||||
type ArchitectureRule = Readonly<{
|
||||
name: string;
|
||||
@@ -156,10 +159,11 @@ dependencyReport.staticImportGraph = {
|
||||
typeScriptOnlySourcePolicy: typeScriptOnlyPolicy,
|
||||
};
|
||||
|
||||
await writeFile(
|
||||
qualityArtifact,
|
||||
`${JSON.stringify(dependencyReport, null, 2)}\n`,
|
||||
);
|
||||
await writeValidatedJsonArtifact({
|
||||
path: qualityArtifact,
|
||||
schema: architectureDependencyReportArtifactSchema,
|
||||
value: dependencyReport,
|
||||
});
|
||||
|
||||
let architectureFailed = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user