knip 2.8.2 → 2.9.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.
package/dist/constants.js CHANGED
@@ -20,6 +20,7 @@ export const IGNORED_GLOBAL_BINARIES = [
20
20
  'cp',
21
21
  'echo',
22
22
  'exit',
23
+ 'grep',
23
24
  'mkdir',
24
25
  'mv',
25
26
  'rm',
package/dist/util/fs.js CHANGED
@@ -30,7 +30,7 @@ export const loadYAML = async (filePath) => {
30
30
  return parseYAML(contents);
31
31
  };
32
32
  export const parseJSON = async (contents) => {
33
- return JSON.parse(stripJsonComments(contents));
33
+ return JSON.parse(stripJsonComments(contents, { trailingCommas: true }));
34
34
  };
35
35
  export const parseYAML = async (contents) => {
36
36
  return yaml.load(contents);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "2.8.2";
1
+ export declare const version = "2.9.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '2.8.2';
1
+ export const version = '2.9.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "2.8.2",
3
+ "version": "2.9.0",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://github.com/webpro/knip",
6
6
  "repository": "github:webpro/knip",