knip 1.4.0 → 1.4.1

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.
@@ -1,4 +1,3 @@
1
- import { EOL } from 'os';
2
1
  import { getBinariesFromScripts } from '../../util/binaries/index.js';
3
2
  import { _firstGlob } from '../../util/glob.js';
4
3
  import { _load } from '../../util/loader.js';
@@ -14,7 +13,7 @@ const findGithubActionsDependencies = async (configFilePath, { manifest, rootCon
14
13
  return [];
15
14
  const scripts = getValuesByKeyDeep(config, 'run')
16
15
  .filter((value) => typeof value === 'string')
17
- .flatMap(script => script.split(EOL))
16
+ .flatMap(script => script.split('\n'))
18
17
  .map(script => script.trim());
19
18
  const binaries = getBinariesFromScripts(scripts, {
20
19
  manifest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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",