get-llms 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/defaults.d.ts +1 -1
- package/dist/bin/index.js +5 -5
- package/dist/bin/llmsFetcher.d.ts +2 -2
- package/dist/bin/llmsFetcher.js +2 -2
- package/dist/bin/utils/cliHelpers.d.ts +2 -2
- package/dist/bin/utils/cliHelpers.js +1 -1
- package/dist/bin/utils/logger.d.ts +1 -1
- package/dist/bin/utils/utils.d.ts +2 -2
- package/dist/bin/utils/utils.js +1 -1
- package/package.json +3 -2
package/dist/bin/defaults.d.ts
CHANGED
package/dist/bin/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { Command } from "commander";
|
|
5
|
-
import { findLLMsTxt } from "./llmsFetcher";
|
|
6
|
-
import { generateFilename } from "./utils/utils";
|
|
7
|
-
import { logger } from "./utils/logger";
|
|
8
|
-
import { parseDeps, getDependencies } from "./utils/cliHelpers";
|
|
9
|
-
import { DEFAULT_OPTIONS } from "./defaults";
|
|
5
|
+
import { findLLMsTxt } from "./llmsFetcher.js";
|
|
6
|
+
import { generateFilename } from "./utils/utils.js";
|
|
7
|
+
import { logger } from "./utils/logger.js";
|
|
8
|
+
import { parseDeps, getDependencies } from "./utils/cliHelpers.js";
|
|
9
|
+
import { DEFAULT_OPTIONS } from "./defaults.js";
|
|
10
10
|
const currentDir = process.cwd();
|
|
11
11
|
const main = async (packages, options) => {
|
|
12
12
|
// Set verbosity first
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NpmRegistry } from "./types/npmRegistryType";
|
|
2
|
-
import { FallbackStrategy } from "./types/types";
|
|
1
|
+
import { NpmRegistry } from "./types/npmRegistryType.js";
|
|
2
|
+
import { FallbackStrategy } from "./types/types.js";
|
|
3
3
|
export interface FetchResult {
|
|
4
4
|
location: string;
|
|
5
5
|
content: string;
|
package/dist/bin/llmsFetcher.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getPackageInfo } from "./utils/utils";
|
|
2
|
-
import { logger } from "./utils/logger";
|
|
1
|
+
import { getPackageInfo } from "./utils/utils.js";
|
|
2
|
+
import { logger } from "./utils/logger.js";
|
|
3
3
|
/**
|
|
4
4
|
* Clean up a GitHub URL to extract owner/repo
|
|
5
5
|
* Handles various formats:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PackageJson } from "../types/packageJsonType";
|
|
2
|
-
import { DependencyType } from "../types/types";
|
|
1
|
+
import { PackageJson } from "../types/packageJsonType.js";
|
|
2
|
+
import { DependencyType } from "../types/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Parse dependency types from a comma-separated string
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NpmRegistry } from "../types/npmRegistryType";
|
|
2
|
-
import { SanitizerOptions } from "../types/types";
|
|
1
|
+
import { NpmRegistry } from "../types/npmRegistryType.js";
|
|
2
|
+
import { SanitizerOptions } from "../types/types.js";
|
|
3
3
|
export declare const getPackageInfo: (packageName: string) => Promise<NpmRegistry>;
|
|
4
4
|
/**
|
|
5
5
|
* Sanitize a package name for use as a filename
|
package/dist/bin/utils/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_OPTIONS } from "../defaults";
|
|
1
|
+
import { DEFAULT_OPTIONS } from "../defaults.js";
|
|
2
2
|
export const getPackageInfo = async (packageName) => {
|
|
3
3
|
const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
|
|
4
4
|
const data = (await response.json());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-llms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI tool for fetching llms.txt files for all of your dependencies",
|
|
5
5
|
"homepage": "https://github.com/balazshevesi/llms-fetcher#readme",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "Balazs Hevesi",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "tsc",
|
|
22
|
+
"build": "tsc && tsc-alias --resolve-full-paths",
|
|
23
23
|
"test": "vitest run",
|
|
24
24
|
"test:watch": "vitest",
|
|
25
25
|
"test:coverage": "vitest run --coverage"
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@types/node": "^25.0.3",
|
|
29
29
|
"@vitest/coverage-v8": "^4.0.16",
|
|
30
30
|
"msw": "^2.12.7",
|
|
31
|
+
"tsc-alias": "^1.8.16",
|
|
31
32
|
"vitest": "^4.0.16"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|