view-ignored 0.4.0 → 0.4.2
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 +3 -4
- package/bin/viewig +1 -1
- package/out/{src/browser → browser}/binds/index.d.ts +1 -20
- package/out/{src/browser → browser}/binds/index.js +3 -9
- 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/jsr.d.ts +3 -0
- package/out/browser/binds/plugins/jsr.js +96 -0
- package/out/browser/binds/plugins/npm.d.ts +3 -0
- package/out/{src/browser → browser}/binds/plugins/npm.js +15 -16
- 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 +3 -6
- package/out/{src/browser → browser}/fs/file-info.d.ts +1 -6
- package/out/{src/browser → browser}/fs/file-info.js +1 -2
- 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 +2 -16
- 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} +4 -39
- package/out/{src/config.d.ts → config.d.ts} +0 -57
- package/out/{src/config.js → config.js} +11 -53
- 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} +1 -7
- package/package.json +32 -39
- 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
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "view-ignored",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Retrieve list of files ignored/included by Git, NPM, Yarn
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "Retrieve list of files ignored/included by Git, NPM, Yarn, JSR, VSCE or other tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"viewig": "./bin/viewig",
|
|
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 build:pub && bun run lint",
|
|
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,28 +63,15 @@
|
|
|
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",
|
|
81
|
-
"@m234/nerd-fonts": "^0.3.
|
|
74
|
+
"@m234/nerd-fonts": "^0.3.1",
|
|
82
75
|
"ansi-regex": "^6.1.0",
|
|
83
76
|
"boxen": "^8.0.1",
|
|
84
77
|
"chalk": "^5.4.1",
|
|
@@ -89,21 +82,21 @@
|
|
|
89
82
|
"minimatch": "^10.0.3",
|
|
90
83
|
"p-limit": "^6.2.0",
|
|
91
84
|
"treeify": "^1.1.0",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
85
|
+
"yaml": "^2.8.0",
|
|
86
|
+
"zod": "^3.25.71"
|
|
94
87
|
},
|
|
95
88
|
"devDependencies": {
|
|
89
|
+
"@eslint/js": "^9.30.1",
|
|
96
90
|
"@release-it/keep-a-changelog": "^7.0.0",
|
|
97
|
-
"@
|
|
98
|
-
"@types/node": "^24.0.
|
|
91
|
+
"@stylistic/eslint-plugin": "^5.1.0",
|
|
92
|
+
"@types/node": "^24.0.10",
|
|
99
93
|
"@types/treeify": "^1.0.3",
|
|
94
|
+
"eslint": "^9.30.1",
|
|
100
95
|
"fs-fixture": "^2.8.1",
|
|
101
|
-
"globals": "^16.
|
|
102
|
-
"mocha": "^11.7.0",
|
|
96
|
+
"globals": "^16.3.0",
|
|
103
97
|
"release-it": "^19.0.3",
|
|
104
|
-
"shx": "^0.4.0",
|
|
105
98
|
"typescript": "^5.8.3",
|
|
106
|
-
"
|
|
99
|
+
"typescript-eslint": "^8.35.1"
|
|
107
100
|
},
|
|
108
101
|
"keywords": [
|
|
109
102
|
"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
|