graph-docs-cli
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -31,4 +31,6 @@ var __create = Object.create; | ||
var import_getContentGraph = require("./getContentGraph"); | ||
var import_chokidarGlob = require("./chokidarGlob"); | ||
const getDotfile = async (glob, cachePath) => { | ||
const db = await (0, import_getContentGraph.getContentGraph)(glob); | ||
const allFiles = await (0, import_chokidarGlob.chokidarGlob)(glob); | ||
const config = await (0, import_getConfig.getConfig)(); | ||
@@ -43,3 +45,5 @@ const getColor = (name) => { | ||
cwd: process.cwd() | ||
}).toString().split("\n").map((item) => item.trim()).filter(Boolean).map((item) => path.parse(item).name); | ||
}).toString().split("\n").map((item) => item.trim()).filter((item) => { | ||
return allFiles.includes(path.resolve(process.cwd(), item)); | ||
}).map((item) => path.parse(item).name); | ||
const dotfileText = ` | ||
@@ -46,0 +50,0 @@ digraph kmap { |
# graph-docs-cli | ||
## 0.0.5 | ||
### Patch Changes | ||
- [`6203fd1`](https://github.com/mattpocock/graph-docs-cli/commit/6203fd1cc3b3ed90ceea198c2b5ed309b140a101) Thanks [@mattpocock](https://github.com/mattpocock)! - Fixed a bug where modules that weren't in the glob would end up in changed files | ||
## 0.0.4 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "graph-docs-cli", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "dist/graph-docs-cli.cjs.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -6,5 +6,7 @@ import { execSync } from 'child_process'; | ||
import { getContentGraph } from './getContentGraph'; | ||
import { chokidarGlob } from './chokidarGlob'; | ||
export const getDotfile = async (glob: string, cachePath: string) => { | ||
const db = await getContentGraph(glob); | ||
const allFiles = await chokidarGlob(glob); | ||
@@ -25,3 +27,5 @@ const config = await getConfig(); | ||
.map((item) => item.trim()) | ||
.filter(Boolean) | ||
.filter((item) => { | ||
return allFiles.includes(path.resolve(process.cwd(), item)); | ||
}) | ||
.map((item) => path.parse(item).name); | ||
@@ -28,0 +32,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51513
1432