get-llms 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -22,7 +22,7 @@ get-llms
22
22
  You can fetch specific packages without needing a `package.json`:
23
23
 
24
24
  ```bash
25
- get-llms zod lodash react
25
+ get-llms zod react-native
26
26
  ```
27
27
 
28
28
  ## CLI Options
@@ -1,3 +1,3 @@
1
- import { CLIOptions } from "./types/types";
1
+ import { CLIOptions } from "./types/types.js";
2
2
  export declare const DEFAULT_OPTIONS: CLIOptions;
3
3
  //# sourceMappingURL=defaults.d.ts.map
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;
@@ -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,4 +1,4 @@
1
- import { logger } from "./logger";
1
+ import { logger } from "./logger.js";
2
2
  /**
3
3
  * Parse dependency types from a comma-separated string
4
4
  */
@@ -1,4 +1,4 @@
1
- import { VerbosityLevel } from "../types/types";
1
+ import { VerbosityLevel } from "../types/types.js";
2
2
  declare class Logger {
3
3
  private verbosity;
4
4
  setVerbosity(level: VerbosityLevel): void;
@@ -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
@@ -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.1",
3
+ "version": "1.0.3",
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,13 +28,15 @@
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",
32
+ "tsx": "^4.21.0",
31
33
  "vitest": "^4.0.16"
32
34
  },
33
35
  "dependencies": {
34
36
  "commander": "^14.0.2"
35
37
  },
36
38
  "engines": {
37
- "node": ">=18.0.0"
39
+ "node": ">=20.0.0"
38
40
  },
39
41
  "keywords": [
40
42
  "get-llms",
package/vitest.config.ts DELETED
@@ -1,17 +0,0 @@
1
- import { defineConfig } from "vitest/config";
2
-
3
- export default defineConfig({
4
- test: {
5
- globals: true,
6
- environment: "node",
7
- include: ["tests/**/*.test.ts"],
8
- setupFiles: ["./tests/setup.ts"],
9
- coverage: {
10
- provider: "v8",
11
- reporter: ["text", "html"],
12
- include: ["bin/**/*.ts"],
13
- exclude: ["bin/index.ts"],
14
- },
15
- testTimeout: 10000,
16
- },
17
- });