@eslint-config-snapshot/cli 0.1.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/index.cjs +720 -0
- package/dist/index.js +697 -0
- package/package.json +26 -0
- package/project.json +35 -0
- package/src/index.ts +861 -0
- package/test/cli.integration.test.ts +247 -0
- package/test/cli.npm-isolated.integration.test.ts +109 -0
- package/test/cli.pnpm-isolated.integration.test.ts +140 -0
- package/test/cli.terminal.integration.test.ts +370 -0
- package/test/fixtures/npm-isolated-template/eslint-config-snapshot.config.mjs +16 -0
- package/test/fixtures/npm-isolated-template/package.json +7 -0
- package/test/fixtures/npm-isolated-template/packages/ws-a/.eslintrc.cjs +7 -0
- package/test/fixtures/npm-isolated-template/packages/ws-a/package.json +7 -0
- package/test/fixtures/npm-isolated-template/packages/ws-a/src/index.ts +1 -0
- package/test/fixtures/npm-isolated-template/packages/ws-b/.eslintrc.cjs +7 -0
- package/test/fixtures/npm-isolated-template/packages/ws-b/package.json +7 -0
- package/test/fixtures/npm-isolated-template/packages/ws-b/src/index.ts +1 -0
- package/test/fixtures/repo/eslint-config-snapshot.config.mjs +16 -0
- package/test/fixtures/repo/package.json +7 -0
- package/test/fixtures/repo/packages/ws-a/node_modules/eslint/bin/eslint.js +1 -0
- package/test/fixtures/repo/packages/ws-a/node_modules/eslint/package.json +4 -0
- package/test/fixtures/repo/packages/ws-a/package.json +4 -0
- package/test/fixtures/repo/packages/ws-a/src/index.ts +1 -0
- package/test/fixtures/repo/packages/ws-b/node_modules/eslint/bin/eslint.js +1 -0
- package/test/fixtures/repo/packages/ws-b/node_modules/eslint/package.json +4 -0
- package/test/fixtures/repo/packages/ws-b/package.json +4 -0
- package/test/fixtures/repo/packages/ws-b/src/index.ts +1 -0
- package/tsconfig.json +12 -0
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eslint-config-snapshot/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"bin": {
|
|
9
|
+
"eslint-config-snapshot": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"main": "dist/index.cjs",
|
|
12
|
+
"module": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"commander": "^14.0.3",
|
|
23
|
+
"fast-glob": "^3.3.3",
|
|
24
|
+
"@eslint-config-snapshot/api": "0.1.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/project.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cli",
|
|
3
|
+
"sourceRoot": "packages/cli/src",
|
|
4
|
+
"targets": {
|
|
5
|
+
"build": {
|
|
6
|
+
"executor": "nx:run-commands",
|
|
7
|
+
"options": {
|
|
8
|
+
"cwd": "packages/cli",
|
|
9
|
+
"command": "pnpm tsup src/index.ts --format esm,cjs --out-dir dist --clean"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"typecheck": {
|
|
13
|
+
"executor": "nx:run-commands",
|
|
14
|
+
"options": {
|
|
15
|
+
"cwd": "packages/cli",
|
|
16
|
+
"command": "pnpm tsc -p tsconfig.json --noEmit"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"lint": {
|
|
20
|
+
"executor": "nx:run-commands",
|
|
21
|
+
"options": {
|
|
22
|
+
"cwd": "packages/cli",
|
|
23
|
+
"command": "pnpm eslint ."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"test": {
|
|
27
|
+
"executor": "nx:run-commands",
|
|
28
|
+
"options": {
|
|
29
|
+
"cwd": "packages/cli",
|
|
30
|
+
"command": "pnpm vitest run"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|