@vlandoss/run-run 0.0.4 โ†’ 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/run-run",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "The CLI toolbox to fullstack common scripts in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/run-run#readme",
6
6
  "bugs": {
@@ -6,18 +6,18 @@ exports[`should match command: "help" 1`] = `
6
6
  Usage: rr|run-run [options] [command]
7
7
 
8
8
  Options:
9
- -v, --version output the version number
10
- -h, --help display help for command
9
+ -v, --version output the version number
10
+ -h, --help display help for command
11
11
 
12
12
  Commands:
13
- format|fmt [options] format the code ๐ŸŽจ
14
- lint [options] lint the code ๐Ÿงน
15
- test:static [options] check format and lint issues โœ…
16
- clean [options] delete dirty folders or files such as node_modules, etc
17
- ๐Ÿ—‘๏ธ
18
- typecheck|tsc check if TypeScript code is well typed ๐ŸŽจ
19
- info:pkg [options] display run-run package.json โ„น๏ธ
20
- help [command] display help for command
13
+ format|fmt [options] format the code ๐ŸŽจ
14
+ lint [options] lint the code ๐Ÿงน
15
+ check|test:static [options] check format and lint issues โœ…
16
+ clean [options] delete dirty folders or files such as
17
+ node_modules, etc ๐Ÿ—‘๏ธ
18
+ typecheck|tsc check if TypeScript code is well typed ๐ŸŽจ
19
+ info:pkg [options] display run-run package.json โ„น๏ธ
20
+ help [command] display help for command
21
21
 
22
22
  Acknowledgment:
23
23
  - kcd-scripts: for main inspiration
@@ -34,18 +34,18 @@ exports[`should match command: "--help" 1`] = `
34
34
  Usage: rr|run-run [options] [command]
35
35
 
36
36
  Options:
37
- -v, --version output the version number
38
- -h, --help display help for command
37
+ -v, --version output the version number
38
+ -h, --help display help for command
39
39
 
40
40
  Commands:
41
- format|fmt [options] format the code ๐ŸŽจ
42
- lint [options] lint the code ๐Ÿงน
43
- test:static [options] check format and lint issues โœ…
44
- clean [options] delete dirty folders or files such as node_modules, etc
45
- ๐Ÿ—‘๏ธ
46
- typecheck|tsc check if TypeScript code is well typed ๐ŸŽจ
47
- info:pkg [options] display run-run package.json โ„น๏ธ
48
- help [command] display help for command
41
+ format|fmt [options] format the code ๐ŸŽจ
42
+ lint [options] lint the code ๐Ÿงน
43
+ check|test:static [options] check format and lint issues โœ…
44
+ clean [options] delete dirty folders or files such as
45
+ node_modules, etc ๐Ÿ—‘๏ธ
46
+ typecheck|tsc check if TypeScript code is well typed ๐ŸŽจ
47
+ info:pkg [options] display run-run package.json โ„น๏ธ
48
+ help [command] display help for command
49
49
 
50
50
  Acknowledgment:
51
51
  - kcd-scripts: for main inspiration
@@ -94,8 +94,8 @@ Under the hood, this command uses the biome CLI to lint the code.
94
94
  "
95
95
  `;
96
96
 
97
- exports[`should match help message for command "test:static" 1`] = `
98
- "Usage: rr test:static [options]
97
+ exports[`should match help message for command "check" 1`] = `
98
+ "Usage: rr check|test:static [options]
99
99
 
100
100
  check format and lint issues โœ…
101
101
 
@@ -146,14 +146,6 @@ Options:
146
146
  "
147
147
  `;
148
148
 
149
- exports[`should match "format" command 1`] = `"biome format --no-errors-on-unmatched --colors=force"`;
150
-
151
- exports[`should match "lint" command 1`] = `"biome check --colors=force --formatter-enabled=false"`;
152
-
153
- exports[`should match "test:static" command 1`] = `"biome check --colors=force"`;
154
-
155
- exports[`should match "typecheck" command 1`] = `"tsc --noEmit"`;
156
-
157
149
  exports[`should match help message for command "tools" 1`] = `
158
150
  "Usage: rr tools [options] [command]
159
151
 
@@ -169,3 +161,11 @@ Commands:
169
161
  help [command] display help for command
170
162
  "
171
163
  `;
164
+
165
+ exports[`should match "format" command 1`] = `"biome format --no-errors-on-unmatched --colors=force"`;
166
+
167
+ exports[`should match "lint" command 1`] = `"biome check --colors=force --formatter-enabled=false"`;
168
+
169
+ exports[`should match "check" command 1`] = `"biome check --colors=force"`;
170
+
171
+ exports[`should match "typecheck" command 1`] = `"tsc --noEmit"`;
@@ -3,7 +3,8 @@ import isCI from "is-ci";
3
3
  import type { Context } from "~/services/ctx";
4
4
 
5
5
  export function createTestStaticCommand(ctx: Context) {
6
- return createCommand("test:static")
6
+ return createCommand("check")
7
+ .alias("test:static")
7
8
  .description("check format and lint issues โœ…")
8
9
  .option("-f, --fix", "try to fix issues automatically")
9
10
  .option("--fix-staged", "try to fix staged files only")