mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
refactor: Update import paths in settings-service and security tests
- Changed import statements in settings-service.ts to use @automaker/utils and @automaker/platform for better modularity. - Updated import in security.test.ts to reflect the new path for security.js, enhancing consistency across the codebase.
This commit is contained in:
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
import fs from "fs/promises";
|
import fs from "fs/promises";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { createLogger } from "../lib/logger.js";
|
import { createLogger } from "@automaker/utils";
|
||||||
import {
|
import {
|
||||||
getGlobalSettingsPath,
|
getGlobalSettingsPath,
|
||||||
getCredentialsPath,
|
getCredentialsPath,
|
||||||
getProjectSettingsPath,
|
getProjectSettingsPath,
|
||||||
ensureDataDir,
|
ensureDataDir,
|
||||||
ensureAutomakerDir,
|
ensureAutomakerDir,
|
||||||
} from "../lib/automaker-paths.js";
|
} from "@automaker/platform";
|
||||||
import type {
|
import type {
|
||||||
GlobalSettings,
|
GlobalSettings,
|
||||||
Credentials,
|
Credentials,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ describe("security.ts", () => {
|
|||||||
process.env.WORKSPACE_DIR = "/workspace/dir";
|
process.env.WORKSPACE_DIR = "/workspace/dir";
|
||||||
|
|
||||||
const { initAllowedPaths, getAllowedPaths } = await import(
|
const { initAllowedPaths, getAllowedPaths } = await import(
|
||||||
"@/lib/security.js"
|
"@automaker/platform"
|
||||||
);
|
);
|
||||||
initAllowedPaths();
|
initAllowedPaths();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user