@kaynooo/cli-pkg 0.11.0 → 0.12.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1667,6 +1667,12 @@ var init_cli = __esm(() => {
1667
1667
  };
1668
1668
  TOP_OPTIONS = { ...LEVEL_OPTIONS, version: { type: "boolean", short: "v", description: "print the version" } };
1669
1669
  });
1670
+ // ../kit/src/folders.ts
1671
+ var SKIPPED_FOLDERS;
1672
+ var init_folders = __esm(() => {
1673
+ SKIPPED_FOLDERS = new Set(["node_modules", "vendor", "dist", "build", "target", "coverage", "venv", "__pycache__"]);
1674
+ });
1675
+
1670
1676
  // ../kit/src/git.ts
1671
1677
  var init_git = __esm(() => {
1672
1678
  init_args();
@@ -1774,6 +1780,7 @@ var init_src = __esm(() => {
1774
1780
  init_ci();
1775
1781
  init_cli();
1776
1782
  init_config();
1783
+ init_folders();
1777
1784
  init_format();
1778
1785
  init_git();
1779
1786
  init_limit();
@@ -2879,7 +2886,7 @@ function packageFiles(dir, depth, found) {
2879
2886
  for (const entry of entries) {
2880
2887
  if (entry.isFile() && entry.name === "package.json")
2881
2888
  found.push(join8(dir, entry.name));
2882
- else if (entry.isDirectory() && depth < MAX_DEPTH && !entry.name.startsWith(".") && !SKIPPED.has(entry.name))
2889
+ else if (entry.isDirectory() && depth < MAX_DEPTH && !entry.name.startsWith(".") && !SKIPPED_FOLDERS.has(entry.name))
2883
2890
  packageFiles(join8(dir, entry.name), depth + 1, found);
2884
2891
  }
2885
2892
  return found;
@@ -2959,12 +2966,11 @@ function registryDependencies(text) {
2959
2966
  }
2960
2967
  return REGISTRY_KINDS.flatMap((kind) => Object.entries(manifest?.[kind] ?? {}).flatMap(([name, spec]) => typeof spec === "string" && !LOCAL_SPEC.test(spec) ? [{ name, kind, spec }] : []));
2961
2968
  }
2962
- var KINDS, SKIPPED, MAX_DEPTH = 5, LOCAL_SPEC, ALIAS, MIN_SIMILAR = 3, KIND_FLAGS, RANGE_PREFIX, REGISTRY_KINDS;
2969
+ var KINDS, MAX_DEPTH = 5, LOCAL_SPEC, ALIAS, MIN_SIMILAR = 3, KIND_FLAGS, RANGE_PREFIX, REGISTRY_KINDS;
2963
2970
  var init_consumers = __esm(() => {
2964
2971
  init_src();
2965
2972
  init_pin();
2966
2973
  KINDS = ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"];
2967
- SKIPPED = new Set(["node_modules", "dist", "build", "vendor", "target", "coverage"]);
2968
2974
  LOCAL_SPEC = /[:/]/;
2969
2975
  ALIAS = /^npm:(@[^@/]+\/[^@/]+|[^@/]+)@(.+)$/;
2970
2976
  KIND_FLAGS = { dependencies: [], devDependencies: ["--dev"], optionalDependencies: ["--optional"], peerDependencies: ["--peer"] };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaynooo/cli-pkg",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.12.0",
5
5
  "description": "pkg: check an npm package before it is added, for a guessed name, a version under two weeks old and install scripts.",
6
6
  "author": "Kaynooo <contact@kaynooo.fr>",
7
7
  "license": "MIT",
@@ -30,6 +30,6 @@
30
30
  "record": "$npm_execpath scripts/record.ts"
31
31
  },
32
32
  "devDependencies": {
33
- "@kaynooo/cli-kit": "0.26.0"
33
+ "@kaynooo/cli-kit": "0.27.0"
34
34
  }
35
35
  }