view-ignored 0.4.0 → 0.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.
- package/bin/viewig +1 -1
- package/out/{src/browser → browser}/binds/index.d.ts +0 -19
- package/out/{src/browser → browser}/binds/index.js +1 -8
- package/out/browser/binds/plugins/git.d.ts +3 -0
- package/out/{src/browser → browser}/binds/plugins/git.js +3 -3
- package/out/browser/binds/plugins/npm.d.ts +3 -0
- package/out/{src/browser → browser}/binds/plugins/npm.js +6 -6
- package/out/browser/binds/plugins/vsce.d.ts +3 -0
- package/out/{src/browser → browser}/binds/plugins/vsce.js +3 -3
- package/out/browser/binds/plugins/yarn.d.ts +3 -0
- package/out/{src/browser → browser}/binds/plugins/yarn.js +2 -2
- package/out/{src/browser → browser}/binds/scanner.d.ts +0 -12
- package/out/{src/browser → browser}/binds/scanner.js +0 -6
- package/out/{src/browser → browser}/binds/targets.d.ts +0 -11
- package/out/{src/browser → browser}/binds/targets.js +1 -6
- package/out/{src/browser → browser}/errors.d.ts +0 -15
- package/out/{src/browser → browser}/errors.js +0 -15
- package/out/{src/browser → browser}/filtering.d.ts +0 -3
- package/out/{src/browser → browser}/filtering.js +0 -2
- package/out/{src/browser → browser}/fs/directory.d.ts +0 -53
- package/out/{src/browser → browser}/fs/directory.js +1 -4
- package/out/{src/browser → browser}/fs/file-info.d.ts +0 -5
- package/out/{src/browser → browser}/fs/file-info.js +0 -1
- package/out/{src/browser → browser}/fs/file.d.ts +0 -3
- package/out/{src/browser → browser}/fs/file.js +0 -3
- package/out/{src/browser → browser}/fs/source-info.d.ts +0 -1
- package/out/{src/browser → browser}/fs/source-info.js +0 -1
- package/out/{src/browser → browser}/lib.d.ts +1 -12
- package/out/{src/browser → browser}/lib.js +1 -4
- package/out/{src/browser → browser}/sorting.d.ts +0 -10
- package/out/{src/browser → browser}/sorting.js +0 -8
- package/out/{src/browser → browser}/styling.d.ts +0 -14
- package/out/{src/browser → browser}/styling.js +0 -7
- package/out/{src/cli.d.ts → cli.d.ts} +0 -47
- package/out/{src/cli.js → cli.js} +2 -37
- package/out/{src/config.d.ts → config.d.ts} +0 -57
- package/out/{src/config.js → config.js} +3 -45
- package/out/{src/errors.d.ts → errors.d.ts} +0 -1
- package/out/{src/styling.d.ts → styling.d.ts} +0 -6
- package/out/{src/styling.js → styling.js} +0 -6
- package/package.json +27 -35
- package/out/package.json +0 -122
- package/out/src/browser/binds/plugins/git.d.ts +0 -22
- package/out/src/browser/binds/plugins/npm.d.ts +0 -38
- package/out/src/browser/binds/plugins/vsce.d.ts +0 -25
- package/out/src/browser/binds/plugins/yarn.d.ts +0 -11
- /package/out/{src/browser → browser}/fs/index.d.ts +0 -0
- /package/out/{src/browser → browser}/fs/index.js +0 -0
- /package/out/{src/browser → browser}/index.d.ts +0 -0
- /package/out/{src/browser → browser}/index.js +0 -0
- /package/out/{src/errors.js → errors.js} +0 -0
- /package/out/{src/index.d.ts → index.d.ts} +0 -0
- /package/out/{src/index.js → index.js} +0 -0
- /package/out/{src/lib.d.ts → lib.d.ts} +0 -0
- /package/out/{src/lib.js → lib.js} +0 -0
|
@@ -6,40 +6,26 @@ import { type SortName } from './browser/sorting.js';
|
|
|
6
6
|
import { type FilterName } from './browser/filtering.js';
|
|
7
7
|
/**
|
|
8
8
|
* The full config file name - `".view-ignored"`.
|
|
9
|
-
* @public
|
|
10
9
|
*/
|
|
11
10
|
export declare const configFileName = ".view-ignored";
|
|
12
11
|
/**
|
|
13
12
|
* Command-line configuration property list.
|
|
14
|
-
* @public
|
|
15
13
|
*/
|
|
16
14
|
export declare const configKeyList: readonly ["posix", "noColor", "target", "filter", "sort", "style", "decor", "depth", "showSources", "plugins", "parsable", "concurrency"];
|
|
17
15
|
/**
|
|
18
16
|
* Command-line configuration's property type.
|
|
19
|
-
* @public
|
|
20
17
|
*/
|
|
21
18
|
export type ConfigKey = typeof configKeyList[number] & keyof Config;
|
|
22
|
-
/**
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
19
|
export type ConfigValue<KeyT extends ConfigKey = ConfigKey> = Config[KeyT];
|
|
26
|
-
/**
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
20
|
export type ShowSourcesType = boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
21
|
export declare function isShowSources(value: unknown): value is ShowSourcesType;
|
|
34
22
|
/**
|
|
35
23
|
* Represents array with the key nad the value.
|
|
36
|
-
* @public
|
|
37
24
|
*/
|
|
38
25
|
export type ConfigPair<KeyT extends ConfigKey = ConfigKey> = [key: KeyT, value: ConfigValue<KeyT>];
|
|
39
26
|
/**
|
|
40
27
|
* Command-line configuration structure.
|
|
41
28
|
* @see {@link configKeyList} Before adding new properties.
|
|
42
|
-
* @public
|
|
43
29
|
*/
|
|
44
30
|
export type Config = {
|
|
45
31
|
[key: string]: unknown;
|
|
@@ -58,63 +44,25 @@ export type Config = {
|
|
|
58
44
|
};
|
|
59
45
|
/**
|
|
60
46
|
* Command-line default config values.
|
|
61
|
-
* @public
|
|
62
47
|
*/
|
|
63
48
|
export declare const configDefault: Readonly<Config>;
|
|
64
49
|
/**
|
|
65
50
|
* @returns Error message and parsed value.
|
|
66
|
-
* @public
|
|
67
51
|
*/
|
|
68
52
|
export type ConfigValidator = ((value: unknown) => string | undefined) & {
|
|
69
53
|
typeName: string;
|
|
70
54
|
};
|
|
71
|
-
/**
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
55
|
export declare const configValueArray: <T extends ConfigValidator>(type?: T) => ConfigValidator;
|
|
75
|
-
/**
|
|
76
|
-
* @public
|
|
77
|
-
*/
|
|
78
56
|
export declare const configValueLiteral: (choices: readonly unknown[]) => ConfigValidator;
|
|
79
|
-
/**
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
57
|
export declare const switchTrueValues: string[];
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
58
|
export declare const switchFalseValues: string[];
|
|
87
|
-
/**
|
|
88
|
-
* @public
|
|
89
|
-
*/
|
|
90
59
|
export declare const booleanValues: string[];
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
60
|
export declare const configValueSwitch: () => ConfigValidator;
|
|
95
|
-
/**
|
|
96
|
-
* @public
|
|
97
|
-
*/
|
|
98
61
|
export declare const configValueBoolean: () => ConfigValidator;
|
|
99
|
-
/**
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
62
|
export declare const configValueObject: () => ConfigValidator;
|
|
103
|
-
/**
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
63
|
export declare const configValueString: () => ConfigValidator;
|
|
107
|
-
/**
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
64
|
export declare const configValueNumber: () => ConfigValidator;
|
|
111
|
-
/**
|
|
112
|
-
* @public
|
|
113
|
-
*/
|
|
114
65
|
export declare const configValueInteger: () => ConfigValidator;
|
|
115
|
-
/**
|
|
116
|
-
* @public
|
|
117
|
-
*/
|
|
118
66
|
export type ConfigManagerGetOptions = {
|
|
119
67
|
/**
|
|
120
68
|
* Use default value as fallback.
|
|
@@ -122,9 +70,6 @@ export type ConfigManagerGetOptions = {
|
|
|
122
70
|
*/
|
|
123
71
|
real?: boolean;
|
|
124
72
|
};
|
|
125
|
-
/**
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
73
|
export type ConfigManagerGetPairStringOptions = ConfigManagerGetOptions & {
|
|
129
74
|
/**
|
|
130
75
|
* Add the type postfix.
|
|
@@ -144,7 +89,6 @@ export type ConfigManagerGetPairStringOptions = ConfigManagerGetOptions & {
|
|
|
144
89
|
};
|
|
145
90
|
/**
|
|
146
91
|
* File-specific actions container.
|
|
147
|
-
* @public
|
|
148
92
|
*/
|
|
149
93
|
export declare class ConfigManager<ConfigType extends Config = Config> {
|
|
150
94
|
readonly path: string;
|
|
@@ -234,6 +178,5 @@ export declare class ConfigManager<ConfigType extends Config = Config> {
|
|
|
234
178
|
}
|
|
235
179
|
/**
|
|
236
180
|
* File-specific actions container. Contains get, set, unset, save, load and other configuration actions.
|
|
237
|
-
* @public
|
|
238
181
|
*/
|
|
239
182
|
export declare const configManager: ConfigManager<Config>;
|
|
@@ -8,18 +8,16 @@ import { sortNameList } from './browser/sorting.js';
|
|
|
8
8
|
import { filterNameList } from './browser/filtering.js';
|
|
9
9
|
/**
|
|
10
10
|
* The full config file name - `".view-ignored"`.
|
|
11
|
-
* @public
|
|
12
11
|
*/
|
|
13
12
|
export const configFileName = '.view-ignored';
|
|
14
13
|
/**
|
|
15
14
|
* The user's home directory + the config file name.
|
|
16
15
|
* @see {@link os.homedir}
|
|
17
|
-
* @
|
|
16
|
+
* @internal
|
|
18
17
|
*/
|
|
19
18
|
const configFilePath = path.join(os.homedir(), configFileName);
|
|
20
19
|
/**
|
|
21
20
|
* Command-line configuration property list.
|
|
22
|
-
* @public
|
|
23
21
|
*/
|
|
24
22
|
export const configKeyList = [
|
|
25
23
|
'posix',
|
|
@@ -35,15 +33,11 @@ export const configKeyList = [
|
|
|
35
33
|
'parsable',
|
|
36
34
|
'concurrency',
|
|
37
35
|
];
|
|
38
|
-
/**
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
36
|
export function isShowSources(value) {
|
|
42
37
|
return typeof value === 'boolean';
|
|
43
38
|
}
|
|
44
39
|
/**
|
|
45
40
|
* Command-line default config values.
|
|
46
|
-
* @public
|
|
47
41
|
*/
|
|
48
42
|
export const configDefault = {
|
|
49
43
|
parsable: false,
|
|
@@ -59,9 +53,6 @@ export const configDefault = {
|
|
|
59
53
|
showSources: false,
|
|
60
54
|
concurrency: 8,
|
|
61
55
|
};
|
|
62
|
-
/**
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
56
|
export const configValueArray = (type) => {
|
|
66
57
|
const validator = value => {
|
|
67
58
|
if (Array.isArray(value)) {
|
|
@@ -80,9 +71,6 @@ export const configValueArray = (type) => {
|
|
|
80
71
|
validator.typeName = `${type?.typeName ?? 'any'}[]`;
|
|
81
72
|
return validator;
|
|
82
73
|
};
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
74
|
export const configValueLiteral = (choices) => {
|
|
87
75
|
const validator = value => {
|
|
88
76
|
if (choices.includes(value)) {
|
|
@@ -93,21 +81,9 @@ export const configValueLiteral = (choices) => {
|
|
|
93
81
|
validator.typeName = choices.map(choice => format('%o', choice)).join('|');
|
|
94
82
|
return validator;
|
|
95
83
|
};
|
|
96
|
-
/**
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
84
|
export const switchTrueValues = ['true', 'on', 'yes', 'y', 'enable', 'enabled', '1'];
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
85
|
export const switchFalseValues = ['false', 'off', 'no', 'n', 'disable', 'disabled', '0'];
|
|
104
|
-
/**
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
86
|
export const booleanValues = [...switchTrueValues, ...switchFalseValues];
|
|
108
|
-
/**
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
87
|
export const configValueSwitch = () => {
|
|
112
88
|
const validator = value => {
|
|
113
89
|
if (booleanValues.includes(value)) {
|
|
@@ -118,9 +94,6 @@ export const configValueSwitch = () => {
|
|
|
118
94
|
validator.typeName = 'switch';
|
|
119
95
|
return validator;
|
|
120
96
|
};
|
|
121
|
-
/**
|
|
122
|
-
* @public
|
|
123
|
-
*/
|
|
124
97
|
export const configValueBoolean = () => {
|
|
125
98
|
const validator = value => {
|
|
126
99
|
if (typeof value === 'boolean') {
|
|
@@ -131,9 +104,6 @@ export const configValueBoolean = () => {
|
|
|
131
104
|
validator.typeName = 'boolean';
|
|
132
105
|
return validator;
|
|
133
106
|
};
|
|
134
|
-
/**
|
|
135
|
-
* @public
|
|
136
|
-
*/
|
|
137
107
|
export const configValueObject = () => {
|
|
138
108
|
const validator = value => {
|
|
139
109
|
if (value?.constructor === Object) {
|
|
@@ -144,9 +114,6 @@ export const configValueObject = () => {
|
|
|
144
114
|
validator.typeName = 'object';
|
|
145
115
|
return validator;
|
|
146
116
|
};
|
|
147
|
-
/**
|
|
148
|
-
* @public
|
|
149
|
-
*/
|
|
150
117
|
export const configValueString = () => {
|
|
151
118
|
const validator = value => {
|
|
152
119
|
if (typeof value === 'string') {
|
|
@@ -157,9 +124,6 @@ export const configValueString = () => {
|
|
|
157
124
|
validator.typeName = 'string';
|
|
158
125
|
return validator;
|
|
159
126
|
};
|
|
160
|
-
/**
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
127
|
export const configValueNumber = () => {
|
|
164
128
|
const validator = value => {
|
|
165
129
|
if (typeof value === 'number') {
|
|
@@ -170,9 +134,6 @@ export const configValueNumber = () => {
|
|
|
170
134
|
validator.typeName = 'number';
|
|
171
135
|
return validator;
|
|
172
136
|
};
|
|
173
|
-
/**
|
|
174
|
-
* @public
|
|
175
|
-
*/
|
|
176
137
|
export const configValueInteger = () => {
|
|
177
138
|
const validator = value => {
|
|
178
139
|
if (typeof value === 'number' && (Number.isSafeInteger(value) || Math.abs(value) === Infinity)) {
|
|
@@ -185,7 +146,6 @@ export const configValueInteger = () => {
|
|
|
185
146
|
};
|
|
186
147
|
/**
|
|
187
148
|
* File-specific actions container.
|
|
188
|
-
* @public
|
|
189
149
|
*/
|
|
190
150
|
export class ConfigManager {
|
|
191
151
|
path;
|
|
@@ -323,11 +283,11 @@ export class ConfigManager {
|
|
|
323
283
|
unset(key) {
|
|
324
284
|
if (key === undefined) {
|
|
325
285
|
for (const key of Object.keys(this.data)) {
|
|
326
|
-
delete this.data[key];
|
|
286
|
+
delete this.data[key];
|
|
327
287
|
}
|
|
328
288
|
return this;
|
|
329
289
|
}
|
|
330
|
-
delete this.data[key];
|
|
290
|
+
delete this.data[key];
|
|
331
291
|
return this;
|
|
332
292
|
}
|
|
333
293
|
/**
|
|
@@ -366,7 +326,6 @@ export class ConfigManager {
|
|
|
366
326
|
return `${key}\n${value}`;
|
|
367
327
|
}).join('\n');
|
|
368
328
|
}
|
|
369
|
-
// eslint-disable-next-line unicorn/no-array-reduce
|
|
370
329
|
const keyMaxLength = keys.reduce((maxLength, key) => Math.max(maxLength, key.length), 0);
|
|
371
330
|
return keys.map((key) => {
|
|
372
331
|
const value = format('%o', this.get(key, options));
|
|
@@ -381,6 +340,5 @@ export class ConfigManager {
|
|
|
381
340
|
}
|
|
382
341
|
/**
|
|
383
342
|
* File-specific actions container. Contains get, set, unset, save, load and other configuration actions.
|
|
384
|
-
* @public
|
|
385
343
|
*/
|
|
386
344
|
export const configManager = new ConfigManager(configFilePath);
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { type ChalkInstance } from 'chalk';
|
|
2
2
|
export * from './browser/styling.js';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
3
|
export declare function highlight(text: string, chalk?: ChalkInstance): string;
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
4
|
export declare function stringTime(time: number, chalk: ChalkInstance): string;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import ansiRegex from 'ansi-regex';
|
|
2
2
|
export * from './browser/styling.js';
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
3
|
export function highlight(text, chalk) {
|
|
7
4
|
if (chalk === undefined) {
|
|
8
5
|
return text;
|
|
@@ -42,9 +39,6 @@ export function highlight(text, chalk) {
|
|
|
42
39
|
});
|
|
43
40
|
return colored;
|
|
44
41
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
42
|
export function stringTime(time, chalk) {
|
|
49
43
|
if (time < 1000) {
|
|
50
44
|
return `${highlight(String(time), chalk)} milliseconds`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "view-ignored",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Retrieve list of files ignored/included by Git, NPM, Yarn and VSC Extension.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,24 +8,24 @@
|
|
|
8
8
|
"view-ignored": "./bin/viewig"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"prerelease": "
|
|
12
|
-
"test": "
|
|
13
|
-
"build": "
|
|
14
|
-
"build:pub": "
|
|
15
|
-
"build:watch": "
|
|
16
|
-
"
|
|
17
|
-
"lint
|
|
18
|
-
"release:major": "
|
|
19
|
-
"release:minor": "
|
|
20
|
-
"release:patch": "
|
|
11
|
+
"prerelease": "bun run lint && bun run build:pub && bun run test",
|
|
12
|
+
"test": "bun run node --test out/**/*.test.js",
|
|
13
|
+
"build": "bun run build:clean && bun run tsc -p src",
|
|
14
|
+
"build:pub": "bun run build:clean && bun run tsc -p src --sourceMap false && rm **/*.test.d.ts",
|
|
15
|
+
"build:watch": "bun run build:clean && bun run tsc -p src --watch",
|
|
16
|
+
"build:clean": "rm -rf out",
|
|
17
|
+
"lint": "bun run eslint .",
|
|
18
|
+
"release:major": "bun run release-it --increment=major",
|
|
19
|
+
"release:minor": "bun run release-it --increment=minor",
|
|
20
|
+
"release:patch": "bun run release-it --increment=patch"
|
|
21
21
|
},
|
|
22
22
|
"author": "Mopsgamer",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"main": "./out/src/index.js",
|
|
25
25
|
"files": [
|
|
26
26
|
"/bin",
|
|
27
|
-
"/out
|
|
28
|
-
"
|
|
27
|
+
"/out",
|
|
28
|
+
"!**/*.test.js"
|
|
29
29
|
],
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
@@ -36,8 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/Mopsgamer/view-ignored",
|
|
38
38
|
"exports": {
|
|
39
|
-
".":
|
|
40
|
-
|
|
39
|
+
".": {
|
|
40
|
+
"default": "./out/index.js",
|
|
41
|
+
"types": "./out/index.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./browser": {
|
|
44
|
+
"default": "./out/browser/index.js",
|
|
45
|
+
"types": "./out/browser/index.d.ts"
|
|
46
|
+
}
|
|
41
47
|
},
|
|
42
48
|
"release-it": {
|
|
43
49
|
"hooks": {
|
|
@@ -57,24 +63,11 @@
|
|
|
57
63
|
"publish": true
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
|
-
"xo": {
|
|
61
|
-
"ignores": "/out/",
|
|
62
|
-
"rules": {
|
|
63
|
-
"@typescript-eslint/promise-function-async": "off",
|
|
64
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
65
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
66
|
-
"n/no-unpublished-bin": "off",
|
|
67
|
-
"linebreak-style": [
|
|
68
|
-
"error",
|
|
69
|
-
"unix"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
66
|
"publishConfig": {
|
|
74
67
|
"access": "public"
|
|
75
68
|
},
|
|
76
69
|
"directories": {
|
|
77
|
-
"lib": "out
|
|
70
|
+
"lib": "out"
|
|
78
71
|
},
|
|
79
72
|
"dependencies": {
|
|
80
73
|
"@humanwhocodes/gitignore-to-minimatch": "^1.0.2",
|
|
@@ -93,17 +86,16 @@
|
|
|
93
86
|
"yaml": "^2.8.0"
|
|
94
87
|
},
|
|
95
88
|
"devDependencies": {
|
|
89
|
+
"@eslint/js": "^9.30.1",
|
|
96
90
|
"@release-it/keep-a-changelog": "^7.0.0",
|
|
97
|
-
"@types/
|
|
98
|
-
"@types/node": "^24.0.3",
|
|
91
|
+
"@types/node": "^24.0.10",
|
|
99
92
|
"@types/treeify": "^1.0.3",
|
|
93
|
+
"eslint": "^9.30.1",
|
|
100
94
|
"fs-fixture": "^2.8.1",
|
|
101
|
-
"globals": "^16.
|
|
102
|
-
"mocha": "^11.7.0",
|
|
95
|
+
"globals": "^16.3.0",
|
|
103
96
|
"release-it": "^19.0.3",
|
|
104
|
-
"shx": "^0.4.0",
|
|
105
97
|
"typescript": "^5.8.3",
|
|
106
|
-
"
|
|
98
|
+
"typescript-eslint": "^8.35.1"
|
|
107
99
|
},
|
|
108
100
|
"keywords": [
|
|
109
101
|
"tree",
|
package/out/package.json
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "view-ignored",
|
|
3
|
-
"version": "0.3.2",
|
|
4
|
-
"description": "Retrieve list of files ignored/included by Git, NPM, Yarn and VSC Extension.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"viewig": "./bin/viewig",
|
|
8
|
-
"view-ignored": "./bin/viewig"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"prerelease": "pnpm lint && pnpm build:pub && pnpm test",
|
|
12
|
-
"test": "pnpm mocha ./out/test/**/*.test.js",
|
|
13
|
-
"build": "pnpm shx rm -rf out && pnpm tsc",
|
|
14
|
-
"build:pub": "pnpm shx rm -rf out && pnpm tsc --sourceMap false",
|
|
15
|
-
"build:watch": "pnpm shx rm -rf out && pnpm tsc --watch",
|
|
16
|
-
"lint": "pnpm xo",
|
|
17
|
-
"lint:fix": "pnpm xo --fix",
|
|
18
|
-
"release:major": "pnpm release-it --increment=major",
|
|
19
|
-
"release:minor": "pnpm release-it --increment=minor",
|
|
20
|
-
"release:patch": "pnpm release-it --increment=patch"
|
|
21
|
-
},
|
|
22
|
-
"author": "Mopsgamer",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"main": "./out/src/index.js",
|
|
25
|
-
"files": [
|
|
26
|
-
"/bin",
|
|
27
|
-
"/out/src",
|
|
28
|
-
"/out/package.json"
|
|
29
|
-
],
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "https://github.com/Mopsgamer/view-ignored.git"
|
|
33
|
-
},
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/Mopsgamer/view-ignored/issues"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/Mopsgamer/view-ignored",
|
|
38
|
-
"exports": {
|
|
39
|
-
".": "./out/src/index.js",
|
|
40
|
-
"./browser": "./out/src/browser/index.js"
|
|
41
|
-
},
|
|
42
|
-
"release-it": {
|
|
43
|
-
"hooks": {
|
|
44
|
-
"before:init": "pnpm prerelease"
|
|
45
|
-
},
|
|
46
|
-
"plugins": {
|
|
47
|
-
"@release-it/keep-a-changelog": {
|
|
48
|
-
"filename": "CHANGELOG.md"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"github": {
|
|
52
|
-
"release": true,
|
|
53
|
-
"draft": false,
|
|
54
|
-
"releaseName": "${version}"
|
|
55
|
-
},
|
|
56
|
-
"npm": {
|
|
57
|
-
"publish": true
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"xo": {
|
|
61
|
-
"ignores": "/out/",
|
|
62
|
-
"rules": {
|
|
63
|
-
"@typescript-eslint/promise-function-async": "off",
|
|
64
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
65
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
66
|
-
"n/no-unpublished-bin": "off",
|
|
67
|
-
"linebreak-style": [
|
|
68
|
-
"error",
|
|
69
|
-
"unix"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"publishConfig": {
|
|
74
|
-
"access": "public"
|
|
75
|
-
},
|
|
76
|
-
"directories": {
|
|
77
|
-
"lib": "out/src"
|
|
78
|
-
},
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"@humanwhocodes/gitignore-to-minimatch": "^1.0.2",
|
|
81
|
-
"@m234/nerd-fonts": "^0.3.0",
|
|
82
|
-
"ansi-regex": "^6.1.0",
|
|
83
|
-
"boxen": "^8.0.1",
|
|
84
|
-
"chalk": "^5.4.1",
|
|
85
|
-
"commander": "^14.0.0",
|
|
86
|
-
"jsonify-paths": "^1.1.0",
|
|
87
|
-
"listr2": "^8.3.3",
|
|
88
|
-
"load-plugin": "^6.0.3",
|
|
89
|
-
"minimatch": "^10.0.3",
|
|
90
|
-
"p-limit": "^6.2.0",
|
|
91
|
-
"treeify": "^1.1.0",
|
|
92
|
-
"tslib": "^2.8.1",
|
|
93
|
-
"yaml": "^2.8.0"
|
|
94
|
-
},
|
|
95
|
-
"devDependencies": {
|
|
96
|
-
"@release-it/keep-a-changelog": "^7.0.0",
|
|
97
|
-
"@types/mocha": "^10.0.10",
|
|
98
|
-
"@types/node": "^24.0.3",
|
|
99
|
-
"@types/treeify": "^1.0.3",
|
|
100
|
-
"fs-fixture": "^2.8.1",
|
|
101
|
-
"globals": "^16.2.0",
|
|
102
|
-
"mocha": "^11.7.0",
|
|
103
|
-
"release-it": "^19.0.3",
|
|
104
|
-
"shx": "^0.4.0",
|
|
105
|
-
"typescript": "^5.8.3",
|
|
106
|
-
"xo": "^1.1.0"
|
|
107
|
-
},
|
|
108
|
-
"keywords": [
|
|
109
|
-
"tree",
|
|
110
|
-
"ls-tree",
|
|
111
|
-
"ignore",
|
|
112
|
-
"gitignore",
|
|
113
|
-
"npmignore",
|
|
114
|
-
"vscodeignore",
|
|
115
|
-
"cli",
|
|
116
|
-
"fs",
|
|
117
|
-
"file-system",
|
|
118
|
-
"output",
|
|
119
|
-
"project",
|
|
120
|
-
"migration"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Plugins, type Methodology, File, SourceInfo, type Scanner } from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
5
|
-
export declare const matcherExclude: string[];
|
|
6
|
-
/**
|
|
7
|
-
* For the source file parent directory we are getting all the cache recursively for all files.
|
|
8
|
-
* @param map The output.
|
|
9
|
-
* @param scanner The scanner.
|
|
10
|
-
* @param sourceFile This file will be converted to a {@link SourceInfo}.
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
export declare function useSourceFile(map: Map<File, SourceInfo>, sourceFile: File, scanner: Scanner & {
|
|
14
|
-
pattern: string | string[];
|
|
15
|
-
}): Map<File, SourceInfo>;
|
|
16
|
-
/**
|
|
17
|
-
* @param base The name for gitignore-like file.
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
export declare const methodologyGitignoreLike: (base: string) => Methodology;
|
|
21
|
-
declare const git: Plugins.PluginExport;
|
|
22
|
-
export default git;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type Plugins, type Methodology, type File, Directory, type SourceInfo } from '../../index.js';
|
|
2
|
-
import { type PatternScanner } from '../scanner.js';
|
|
3
|
-
/**
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
6
|
-
export declare const matcherExclude: string[];
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
export declare const matcherInclude: string[];
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
export type ValidManifestNpm = {
|
|
15
|
-
name: string;
|
|
16
|
-
version: string;
|
|
17
|
-
files?: string[];
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
export declare function isValidManifest(value: unknown): value is ValidManifestNpm;
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
export declare function useChildren(tree: Directory, map: Map<File, SourceInfo>, getMap: (child: Directory) => Map<File, SourceInfo>): Map<File, SourceInfo>;
|
|
27
|
-
/**
|
|
28
|
-
* @private
|
|
29
|
-
*/
|
|
30
|
-
export declare const sourceSearch: (priority: string[], scanner: PatternScanner) => Methodology;
|
|
31
|
-
/**
|
|
32
|
-
* @param priority The list of file names from highest to lowest priority.
|
|
33
|
-
* @param scanner The pattern scanner.
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
export declare const methodologyManifestNpmLike: (priority: string[], scanner: PatternScanner) => Methodology;
|
|
37
|
-
declare const npm: Plugins.PluginExport;
|
|
38
|
-
export default npm;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type Plugins, type Methodology } from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
5
|
-
export declare const matcherExclude: string[];
|
|
6
|
-
/**
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
export type ValidManifestVsce = {
|
|
10
|
-
name: string;
|
|
11
|
-
version: string;
|
|
12
|
-
engines: {
|
|
13
|
-
vscode: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
export declare function isValidManifest(value: unknown): value is ValidManifestVsce;
|
|
20
|
-
/**
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
export declare const methodologyManifestVsce: Methodology;
|
|
24
|
-
declare const vsce: Plugins.PluginExport;
|
|
25
|
-
export default vsce;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Plugins } from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*/
|
|
5
|
-
export declare const matcherExclude: string[];
|
|
6
|
-
/**
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
export declare const matcherInclude: string[];
|
|
10
|
-
declare const yarn: Plugins.PluginExport;
|
|
11
|
-
export default yarn;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|