@monorepolint/utils 0.5.0-alpha.12 → 0.5.0-alpha.124

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.
Files changed (87) hide show
  1. package/.turbo/turbo-clean.log +4 -0
  2. package/.turbo/turbo-compile-typescript.log +4 -0
  3. package/.turbo/turbo-lint.log +56 -0
  4. package/.turbo/turbo-test.log +26 -0
  5. package/.turbo/turbo-transpile-typescript.log +14 -0
  6. package/build/js/index.js +893 -0
  7. package/build/js/index.js.map +1 -0
  8. package/build/tsconfig.tsbuildinfo +1 -0
  9. package/build/types/AggregateTiming.d.ts +15 -0
  10. package/build/types/AggregateTiming.d.ts.map +1 -0
  11. package/build/types/CachingHost.d.ts +39 -0
  12. package/build/types/CachingHost.d.ts.map +1 -0
  13. package/build/types/Host.d.ts +38 -0
  14. package/build/types/Host.d.ts.map +1 -0
  15. package/build/types/PackageJson.d.ts.map +1 -0
  16. package/build/types/SimpleHost.d.ts +35 -0
  17. package/build/types/SimpleHost.d.ts.map +1 -0
  18. package/build/types/Table.d.ts +53 -0
  19. package/build/types/Table.d.ts.map +1 -0
  20. package/build/types/Timing.d.ts +9 -0
  21. package/build/types/Timing.d.ts.map +1 -0
  22. package/build/types/__tests__/CachingHost.spec.d.ts +2 -0
  23. package/build/types/__tests__/CachingHost.spec.d.ts.map +1 -0
  24. package/build/types/findWorkspaceDir.d.ts +10 -0
  25. package/build/types/findWorkspaceDir.d.ts.map +1 -0
  26. package/{lib → build/types}/getPackageNameToDir.d.ts +2 -1
  27. package/build/types/getPackageNameToDir.d.ts.map +1 -0
  28. package/build/types/getWorkspacePackageDirs.d.ts +9 -0
  29. package/build/types/getWorkspacePackageDirs.d.ts.map +1 -0
  30. package/build/types/index.d.ts +20 -0
  31. package/build/types/index.d.ts.map +1 -0
  32. package/build/types/matchesAnyGlob.d.ts +17 -0
  33. package/build/types/matchesAnyGlob.d.ts.map +1 -0
  34. package/{lib → build/types}/mutateJson.d.ts +2 -1
  35. package/build/types/mutateJson.d.ts.map +1 -0
  36. package/build/types/nanosecondsToSanity.d.ts +8 -0
  37. package/build/types/nanosecondsToSanity.d.ts.map +1 -0
  38. package/package.json +42 -14
  39. package/src/AggregateTiming.ts +70 -0
  40. package/src/CachingHost.ts +490 -0
  41. package/src/Host.ts +34 -0
  42. package/src/SimpleHost.ts +56 -0
  43. package/src/Table.ts +318 -0
  44. package/src/Timing.ts +54 -0
  45. package/src/__tests__/CachingHost.spec.ts +244 -0
  46. package/src/findWorkspaceDir.ts +25 -7
  47. package/src/getPackageNameToDir.ts +11 -7
  48. package/src/getWorkspacePackageDirs.ts +39 -11
  49. package/src/index.ts +13 -7
  50. package/src/matchesAnyGlob.ts +146 -0
  51. package/src/mutateJson.ts +4 -6
  52. package/src/nanosecondsToSanity.ts +10 -0
  53. package/tsconfig.json +7 -2
  54. package/lib/PackageJson.d.ts.map +0 -1
  55. package/lib/PackageJson.js +0 -9
  56. package/lib/PackageJson.js.map +0 -1
  57. package/lib/findWorkspaceDir.d.ts +0 -8
  58. package/lib/findWorkspaceDir.d.ts.map +0 -1
  59. package/lib/findWorkspaceDir.js +0 -28
  60. package/lib/findWorkspaceDir.js.map +0 -1
  61. package/lib/getPackageNameToDir.d.ts.map +0 -1
  62. package/lib/getPackageNameToDir.js +0 -30
  63. package/lib/getPackageNameToDir.js.map +0 -1
  64. package/lib/getWorkspacePackageDirs.d.ts +0 -8
  65. package/lib/getWorkspacePackageDirs.d.ts.map +0 -1
  66. package/lib/getWorkspacePackageDirs.js +0 -39
  67. package/lib/getWorkspacePackageDirs.js.map +0 -1
  68. package/lib/index.d.ts +0 -14
  69. package/lib/index.d.ts.map +0 -1
  70. package/lib/index.js +0 -21
  71. package/lib/index.js.map +0 -1
  72. package/lib/mutateJson.d.ts.map +0 -1
  73. package/lib/mutateJson.js +0 -17
  74. package/lib/mutateJson.js.map +0 -1
  75. package/lib/readJson.d.ts +0 -8
  76. package/lib/readJson.d.ts.map +0 -1
  77. package/lib/readJson.js +0 -15
  78. package/lib/readJson.js.map +0 -1
  79. package/lib/writeJson.d.ts +0 -8
  80. package/lib/writeJson.d.ts.map +0 -1
  81. package/lib/writeJson.js +0 -14
  82. package/lib/writeJson.js.map +0 -1
  83. package/src/readJson.ts +0 -13
  84. package/src/writeJson.ts +0 -12
  85. package/tsconfig.tsbuildinfo +0 -1586
  86. /package/{lib → build/types}/PackageJson.d.ts +0 -0
  87. /package/{jest.config.js → jest.config.cjs} +0 -0
@@ -0,0 +1,4 @@
1
+
2
+ > @monorepolint/utils@0.4.0 clean /home/runner/work/monorepolint/monorepolint/packages/utils
3
+ > rm -rf build dist lib node_modules *.tgz tsconfig.tsbuildinfo
4
+
@@ -0,0 +1,4 @@
1
+
2
+ > @monorepolint/utils@0.4.0 compile-typescript /home/runner/work/monorepolint/monorepolint/packages/utils
3
+ > tsc --build
4
+
@@ -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:2715) 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
+  PASS  src/__tests__/CachingHost.spec.ts
8
+ CachingHost
9
+ fs
10
+ ✓ Answers exists() properly (13 ms)
11
+ ✓ properly handles deletes (2 ms)
12
+ ✓ handles simple read/write workflow (2 ms)
13
+ ✓ handles target symlink changing (1 ms)
14
+ ✓ handles writing symlinks properly (4 ms)
15
+ ✓ handles writing symlinks properly if you read it first (2 ms)
16
+ ✓ handles creating new symlinks (2 ms)
17
+ ✓ makes directories (4 ms)
18
+ ✓ can unlink empty dirs (2 ms)
19
+ ✓ doesnt let you delete a directory with files (32 ms)
20
+ ✓ doesn't let you rmdir() a file (1 ms)
21
+
22
+ Test Suites: 1 passed, 1 total
23
+ Tests: 11 passed, 11 total
24
+ Snapshots: 0 total
25
+ Time: 4.356 s
26
+ Ran all test suites.
@@ -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
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.0.1
8
+ CLI Using tsup config: /home/runner/work/monorepolint/monorepolint/tsup.config.cjs
9
+ CLI Target: node16
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ ESM build/js/index.js 26.60 KB
13
+ ESM build/js/index.js.map 59.77 KB
14
+ ESM ⚡️ Build success in 58ms