@monorepolint/utils 0.5.0-alpha.13 → 0.5.0-alpha.131
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/.turbo/turbo-clean.log +4 -0
- package/.turbo/turbo-compile-typescript.log +4 -0
- package/.turbo/turbo-lint.log +56 -0
- package/.turbo/turbo-test.log +26 -0
- package/.turbo/turbo-transpile-typescript.log +14 -0
- package/build/js/index.js +893 -0
- package/build/js/index.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/types/AggregateTiming.d.ts +15 -0
- package/build/types/AggregateTiming.d.ts.map +1 -0
- package/build/types/CachingHost.d.ts +39 -0
- package/build/types/CachingHost.d.ts.map +1 -0
- package/build/types/Host.d.ts +38 -0
- package/build/types/Host.d.ts.map +1 -0
- package/build/types/PackageJson.d.ts.map +1 -0
- package/build/types/SimpleHost.d.ts +35 -0
- package/build/types/SimpleHost.d.ts.map +1 -0
- package/build/types/Table.d.ts +53 -0
- package/build/types/Table.d.ts.map +1 -0
- package/build/types/Timing.d.ts +9 -0
- package/build/types/Timing.d.ts.map +1 -0
- package/build/types/__tests__/CachingHost.spec.d.ts +2 -0
- package/build/types/__tests__/CachingHost.spec.d.ts.map +1 -0
- package/build/types/findWorkspaceDir.d.ts +10 -0
- package/build/types/findWorkspaceDir.d.ts.map +1 -0
- package/{lib → build/types}/getPackageNameToDir.d.ts +2 -1
- package/build/types/getPackageNameToDir.d.ts.map +1 -0
- package/build/types/getWorkspacePackageDirs.d.ts +9 -0
- package/build/types/getWorkspacePackageDirs.d.ts.map +1 -0
- package/build/types/index.d.ts +20 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/matchesAnyGlob.d.ts +17 -0
- package/build/types/matchesAnyGlob.d.ts.map +1 -0
- package/{lib → build/types}/mutateJson.d.ts +2 -1
- package/build/types/mutateJson.d.ts.map +1 -0
- package/build/types/nanosecondsToSanity.d.ts +8 -0
- package/build/types/nanosecondsToSanity.d.ts.map +1 -0
- package/package.json +42 -14
- package/src/AggregateTiming.ts +70 -0
- package/src/CachingHost.ts +490 -0
- package/src/Host.ts +34 -0
- package/src/SimpleHost.ts +56 -0
- package/src/Table.ts +318 -0
- package/src/Timing.ts +54 -0
- package/src/__tests__/CachingHost.spec.ts +244 -0
- package/src/findWorkspaceDir.ts +25 -7
- package/src/getPackageNameToDir.ts +11 -7
- package/src/getWorkspacePackageDirs.ts +39 -11
- package/src/index.ts +13 -7
- package/src/matchesAnyGlob.ts +146 -0
- package/src/mutateJson.ts +4 -6
- package/src/nanosecondsToSanity.ts +10 -0
- package/tsconfig.json +7 -2
- package/lib/PackageJson.d.ts.map +0 -1
- package/lib/PackageJson.js +0 -9
- package/lib/PackageJson.js.map +0 -1
- package/lib/findWorkspaceDir.d.ts +0 -8
- package/lib/findWorkspaceDir.d.ts.map +0 -1
- package/lib/findWorkspaceDir.js +0 -28
- package/lib/findWorkspaceDir.js.map +0 -1
- package/lib/getPackageNameToDir.d.ts.map +0 -1
- package/lib/getPackageNameToDir.js +0 -30
- package/lib/getPackageNameToDir.js.map +0 -1
- package/lib/getWorkspacePackageDirs.d.ts +0 -8
- package/lib/getWorkspacePackageDirs.d.ts.map +0 -1
- package/lib/getWorkspacePackageDirs.js +0 -39
- package/lib/getWorkspacePackageDirs.js.map +0 -1
- package/lib/index.d.ts +0 -14
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -21
- package/lib/index.js.map +0 -1
- package/lib/mutateJson.d.ts.map +0 -1
- package/lib/mutateJson.js +0 -17
- package/lib/mutateJson.js.map +0 -1
- package/lib/readJson.d.ts +0 -8
- package/lib/readJson.d.ts.map +0 -1
- package/lib/readJson.js +0 -15
- package/lib/readJson.js.map +0 -1
- package/lib/writeJson.d.ts +0 -8
- package/lib/writeJson.d.ts.map +0 -1
- package/lib/writeJson.js +0 -14
- package/lib/writeJson.js.map +0 -1
- package/src/readJson.ts +0 -13
- package/src/writeJson.ts +0 -12
- package/tsconfig.tsbuildinfo +0 -1586
- /package/{lib → build/types}/PackageJson.d.ts +0 -0
- /package/{jest.config.js → jest.config.cjs} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/utils@0.4.0 lint /home/runner/work/monorepolint/monorepolint/packages/utils
|
|
3
|
+
> eslint .
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/CachingHost.ts
|
|
7
|
+
136:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
8
|
+
242:104 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
9
|
+
261:47 warning Type number trivially inferred from a number literal, remove type annotation @typescript-eslint/no-inferrable-types
|
|
10
|
+
484:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
11
|
+
|
|
12
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/Host.ts
|
|
13
|
+
12:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
14
|
+
|
|
15
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/PackageJson.ts
|
|
16
|
+
20:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
17
|
+
|
|
18
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/SimpleHost.ts
|
|
19
|
+
26:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
20
|
+
26:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
21
|
+
26:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
22
|
+
36:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
23
|
+
|
|
24
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/Table.ts
|
|
25
|
+
44:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
26
|
+
60:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
27
|
+
60:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
28
|
+
60:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
29
|
+
60:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
30
|
+
64:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
31
|
+
|
|
32
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/__tests__/CachingHost.spec.ts
|
|
33
|
+
69:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
34
|
+
76:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
35
|
+
91:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
36
|
+
100:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
37
|
+
109:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
38
|
+
134:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
39
|
+
160:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
40
|
+
187:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
41
|
+
207:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
42
|
+
222:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
43
|
+
238:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
44
|
+
|
|
45
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/getPackageNameToDir.ts
|
|
46
|
+
20:3 warning Type boolean trivially inferred from a boolean literal, remove type annotation @typescript-eslint/no-inferrable-types
|
|
47
|
+
|
|
48
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/getWorkspacePackageDirs.ts
|
|
49
|
+
33:3 warning Type boolean trivially inferred from a boolean literal, remove type annotation @typescript-eslint/no-inferrable-types
|
|
50
|
+
|
|
51
|
+
/home/runner/work/monorepolint/monorepolint/packages/utils/src/nanosecondsToSanity.ts
|
|
52
|
+
8:48 warning Type number trivially inferred from a number literal, remove type annotation @typescript-eslint/no-inferrable-types
|
|
53
|
+
|
|
54
|
+
✖ 30 problems (0 errors, 30 warnings)
|
|
55
|
+
0 errors and 4 warnings potentially fixable with the `--fix` option.
|
|
56
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/utils@0.4.0 test /home/runner/work/monorepolint/monorepolint/packages/utils
|
|
3
|
+
> NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
|
|
4
|
+
|
|
5
|
+
(node:2797) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
|
|
6
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
7
|
+
[0m[7m[1m[32m PASS [39m[22m[27m[0m [2msrc/__tests__/[22m[1mCachingHost.spec.ts[22m
|
|
8
|
+
CachingHost
|
|
9
|
+
fs
|
|
10
|
+
[32m✓[39m [2mAnswers exists() properly (13 ms)[22m
|
|
11
|
+
[32m✓[39m [2mproperly handles deletes (2 ms)[22m
|
|
12
|
+
[32m✓[39m [2mhandles simple read/write workflow (2 ms)[22m
|
|
13
|
+
[32m✓[39m [2mhandles target symlink changing (1 ms)[22m
|
|
14
|
+
[32m✓[39m [2mhandles writing symlinks properly (3 ms)[22m
|
|
15
|
+
[32m✓[39m [2mhandles writing symlinks properly if you read it first (3 ms)[22m
|
|
16
|
+
[32m✓[39m [2mhandles creating new symlinks (3 ms)[22m
|
|
17
|
+
[32m✓[39m [2mmakes directories (3 ms)[22m
|
|
18
|
+
[32m✓[39m [2mcan unlink empty dirs (1 ms)[22m
|
|
19
|
+
[32m✓[39m [2mdoesnt let you delete a directory with files (30 ms)[22m
|
|
20
|
+
[32m✓[39m [2mdoesn't let you rmdir() a file (2 ms)[22m
|
|
21
|
+
|
|
22
|
+
[1mTest Suites: [22m[1m[32m1 passed[39m[22m, 1 total
|
|
23
|
+
[1mTests: [22m[1m[32m11 passed[39m[22m, 11 total
|
|
24
|
+
[1mSnapshots: [22m0 total
|
|
25
|
+
[1mTime:[22m 4.205 s
|
|
26
|
+
[2mRan all test suites[22m[2m.[22m
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
> @monorepolint/utils@0.4.0 transpile-typescript /home/runner/work/monorepolint/monorepolint/packages/utils
|
|
3
|
+
> tsup --config ../../tsup.config.cjs
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.0.1
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/monorepolint/monorepolint/tsup.config.cjs
|
|
9
|
+
[34mCLI[39m Target: node16
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mbuild/js/index.js [22m[32m26.60 KB[39m
|
|
13
|
+
[32mESM[39m [1mbuild/js/index.js.map [22m[32m59.77 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 65ms
|