diff --git a/src/lib/lockfile/helpers/generate-npm-lockfile.ts b/src/lib/lockfile/helpers/generate-npm-lockfile.ts index b41f185..8faaa8b 100644 --- a/src/lib/lockfile/helpers/generate-npm-lockfile.ts +++ b/src/lib/lockfile/helpers/generate-npm-lockfile.ts @@ -1,7 +1,7 @@ import Arborist from "@npmcli/arborist"; import fs from "node:fs/promises"; import path from "node:path"; -import { useLogger } from "src/lib/logger"; +import { useLogger } from "~/lib/logger"; /** * Generate an isolated lockfile, based on the contents of node_modules in the diff --git a/src/lib/lockfile/helpers/generate-pnpm-lockfile.ts b/src/lib/lockfile/helpers/generate-pnpm-lockfile.ts index bde1b32..5a39d33 100644 --- a/src/lib/lockfile/helpers/generate-pnpm-lockfile.ts +++ b/src/lib/lockfile/helpers/generate-pnpm-lockfile.ts @@ -6,9 +6,9 @@ import { import assert from "node:assert"; import path from "node:path"; import { pick } from "ramda"; -import { useConfig } from "src/lib/config"; -import { useLogger } from "src/lib/logger"; -import type { PackagesRegistry } from "src/lib/types"; +import { useConfig } from "~/lib/config"; +import { useLogger } from "~/lib/logger"; +import type { PackagesRegistry } from "~/lib/types"; import { pnpmMapImporter } from "../process-lockfile"; export async function generatePnpmLockfile({ @@ -27,7 +27,7 @@ export async function generatePnpmLockfile({ const { includeDevDependencies } = useConfig(); const log = useLogger(); - log.debug("Generating PNPM lockfile..."); + log.info("Generating PNPM lockfile..."); const lockfile = await readWantedLockfile(workspaceRootDir, { ignoreIncompatible: false, diff --git a/src/lib/manifest/helpers/adapt-internal-package-manifests.ts b/src/lib/manifest/helpers/adapt-internal-package-manifests.ts index 01b8d5e..1c20a5f 100644 --- a/src/lib/manifest/helpers/adapt-internal-package-manifests.ts +++ b/src/lib/manifest/helpers/adapt-internal-package-manifests.ts @@ -1,9 +1,9 @@ import fs from "fs-extra"; import path from "node:path"; import { omit } from "ramda"; -import { useConfig } from "src/lib/config"; -import { usePackageManager } from "src/lib/package-manager"; -import type { PackagesRegistry } from "src/lib/types"; +import { useConfig } from "~/lib/config"; +import { usePackageManager } from "~/lib/package-manager"; +import type { PackagesRegistry } from "~/lib/types"; import { adaptManifestInternalDeps } from "./adapt-manifest-internal-deps"; /** diff --git a/src/lib/manifest/helpers/adapt-manifest-internal-deps.ts b/src/lib/manifest/helpers/adapt-manifest-internal-deps.ts index 2d17a0a..0778adf 100644 --- a/src/lib/manifest/helpers/adapt-manifest-internal-deps.ts +++ b/src/lib/manifest/helpers/adapt-manifest-internal-deps.ts @@ -1,6 +1,6 @@ import { omit } from "ramda"; -import type { PackageManifest, PackagesRegistry } from "src/lib/types"; -import { filterObjectUndefined } from "src/lib/utils"; +import type { PackageManifest, PackagesRegistry } from "~/lib/types"; +import { filterObjectUndefined } from "~/lib/utils"; import { patchInternalEntries } from "./patch-internal-entries"; /** diff --git a/src/lib/package-manager/helpers/infer-from-manifest.ts b/src/lib/package-manager/helpers/infer-from-manifest.ts index eaadb90..28eaf24 100644 --- a/src/lib/package-manager/helpers/infer-from-manifest.ts +++ b/src/lib/package-manager/helpers/infer-from-manifest.ts @@ -1,7 +1,7 @@ import fs from "fs-extra"; import assert from "node:assert"; import path from "node:path"; -import { useLogger } from "src/lib/logger"; +import { useLogger } from "~/lib/logger"; import type { PackageManifest } from "../../types"; import { readTypedJsonSync } from "../../utils"; import type { PackageManagerName } from "../names"; diff --git a/tsconfig.json b/tsconfig.json index 037813c..e5bb48f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,10 @@ "skipLibCheck": true, "rootDir": "src", "outDir": "dist", - "baseUrl": "." + "baseUrl": ".", + "paths": { + "~/*": ["src/*"] + } }, "include": ["src"], "exclude": ["dist", "node_modules"]