jasmine-focused-test-detector 1.0.2 → 1.0.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/.idea/workspace.xml +1 -1
- package/index.js +8 -1
- package/package.json +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<option name="number" value="Default" />
|
|
47
47
|
<option name="presentableId" value="Default" />
|
|
48
48
|
<updated>1767089273794</updated>
|
|
49
|
-
<workItem from="1767089274873" duration="
|
|
49
|
+
<workItem from="1767089274873" duration="4577000" />
|
|
50
50
|
</task>
|
|
51
51
|
<servers />
|
|
52
52
|
</component>
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import fs from 'fs';
|
|
|
3
3
|
import {globby} from 'globby';
|
|
4
4
|
import {hideBin} from 'yargs/helpers';
|
|
5
5
|
import yargs from 'yargs/yargs';
|
|
6
|
-
import {
|
|
6
|
+
import {parse} from '@typescript-eslint/parser';
|
|
7
7
|
|
|
8
8
|
const argv = yargs(hideBin(process.argv))
|
|
9
9
|
.option('files', {
|
|
@@ -15,8 +15,12 @@ const argv = yargs(hideBin(process.argv))
|
|
|
15
15
|
.help()
|
|
16
16
|
.argv;
|
|
17
17
|
|
|
18
|
+
console.log(argv.files);
|
|
19
|
+
|
|
18
20
|
const filePatterns = argv.files.split(',').map(f => f.trim());
|
|
19
21
|
|
|
22
|
+
console.log(filePatterns);
|
|
23
|
+
|
|
20
24
|
(async () => {
|
|
21
25
|
const files = await globby(filePatterns);
|
|
22
26
|
|
|
@@ -47,6 +51,9 @@ const filePatterns = argv.files.split(',').map(f => f.trim());
|
|
|
47
51
|
|
|
48
52
|
for (const filePath of files) {
|
|
49
53
|
const code = fs.readFileSync(filePath, 'utf8');
|
|
54
|
+
|
|
55
|
+
console.log(code);
|
|
56
|
+
|
|
50
57
|
let ast;
|
|
51
58
|
try {
|
|
52
59
|
ast = parse(code, { sourceType: 'module', ecmaVersion: 2020 });
|