knip 5.27.1 → 5.27.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 +6 -4
- package/dist/index.js +2 -2
- package/dist/plugins/postcss/index.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,6 @@ Knip finds **unused files, dependencies and exports** in your JavaScript and
|
|
|
19
19
|
TypeScript projects. Less code and dependencies lead to improved performance,
|
|
20
20
|
less maintenance and easier refactorings.
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
- Website: [knip.dev][3]
|
|
24
23
|
- GitHub repo: [webpro-nl/knip][2]
|
|
25
24
|
- npm package: [knip][1]
|
|
@@ -27,11 +26,13 @@ less maintenance and easier refactorings.
|
|
|
27
26
|
- [Contributing Guide][5]
|
|
28
27
|
- [Sponsor Knip!][6]
|
|
29
28
|
|
|
29
|
+
/'knɪp/ means "(to) cut" and is [pronounced with a hard "K"][7] 🇳🇱
|
|
30
|
+
|
|
30
31
|
## Contributors
|
|
31
32
|
|
|
32
33
|
Special thanks to the wonderful people who have contributed to this project:
|
|
33
34
|
|
|
34
|
-
[![Contributors][
|
|
35
|
+
[![Contributors][9]][8]
|
|
35
36
|
|
|
36
37
|
[1]: https://www.npmjs.com/package/knip
|
|
37
38
|
[2]: https://github.com/webpro-nl/knip
|
|
@@ -39,5 +40,6 @@ Special thanks to the wonderful people who have contributed to this project:
|
|
|
39
40
|
[4]: https://discord.gg/r5uXTtbTpc
|
|
40
41
|
[5]: https://github.com/webpro-nl/knip/blob/main/.github/CONTRIBUTING.md
|
|
41
42
|
[6]: https://knip.dev/sponsors
|
|
42
|
-
[7]: https://
|
|
43
|
-
[8]: https://
|
|
43
|
+
[7]: https://en.wiktionary.org/wiki/knip#Dutch
|
|
44
|
+
[8]: https://github.com/webpro-nl/knip/graphs/contributors
|
|
45
|
+
[9]: https://contrib.rocks/image?repo=webpro-nl/knip
|
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ export const main = async (unresolvedConfiguration) => {
|
|
|
126
126
|
const negatedEntryPatterns = Array.from(entryFilePatterns).map(negate);
|
|
127
127
|
{
|
|
128
128
|
const patterns = worker.getProductionEntryFilePatterns(negatedEntryPatterns);
|
|
129
|
-
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
|
|
129
|
+
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns, gitignore: false });
|
|
130
130
|
debugLogArray(name, 'Entry paths', workspaceEntryPaths);
|
|
131
131
|
principal.addEntryPaths(workspaceEntryPaths);
|
|
132
132
|
}
|
|
@@ -147,7 +147,7 @@ export const main = async (unresolvedConfiguration) => {
|
|
|
147
147
|
else {
|
|
148
148
|
{
|
|
149
149
|
const patterns = worker.getEntryFilePatterns();
|
|
150
|
-
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
|
|
150
|
+
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns, gitignore: false });
|
|
151
151
|
debugLogArray(name, 'Entry paths', workspaceEntryPaths);
|
|
152
152
|
principal.addEntryPaths(workspaceEntryPaths);
|
|
153
153
|
}
|
|
@@ -8,7 +8,7 @@ const config = [
|
|
|
8
8
|
...toLilconfig('postcss', { configDir: false, additionalExtensions: ['ts', 'mts', 'cts', 'yaml', 'yml'] }),
|
|
9
9
|
];
|
|
10
10
|
const resolveConfig = config => {
|
|
11
|
-
|
|
11
|
+
const plugins = config.plugins
|
|
12
12
|
? (Array.isArray(config.plugins) ? config.plugins : Object.keys(config.plugins)).flatMap(plugin => {
|
|
13
13
|
if (typeof plugin === 'string')
|
|
14
14
|
return plugin;
|
|
@@ -17,6 +17,7 @@ const resolveConfig = config => {
|
|
|
17
17
|
return [];
|
|
18
18
|
})
|
|
19
19
|
: [];
|
|
20
|
+
return plugins.includes('tailwindcss') ? [...plugins, 'postcss'] : plugins;
|
|
20
21
|
};
|
|
21
22
|
export default {
|
|
22
23
|
title,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.27.
|
|
1
|
+
export declare const version = "5.27.3";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.27.
|
|
1
|
+
export const version = '5.27.3';
|