@monorepolint/utils 0.5.0-alpha.1 → 0.5.0-alpha.103

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 (90) 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 +61 -0
  4. package/.turbo/turbo-test.log +26 -0
  5. package/.turbo/turbo-transpile-typescript.log +18 -0
  6. package/build/js/index.cjs +999 -0
  7. package/build/js/index.cjs.map +1 -0
  8. package/build/js/index.js +957 -0
  9. package/build/js/index.js.map +1 -0
  10. package/build/tsconfig.tsbuildinfo +1 -0
  11. package/build/types/AggregateTiming.d.ts +15 -0
  12. package/build/types/AggregateTiming.d.ts.map +1 -0
  13. package/build/types/CachingHost.d.ts +39 -0
  14. package/build/types/CachingHost.d.ts.map +1 -0
  15. package/build/types/Host.d.ts +38 -0
  16. package/build/types/Host.d.ts.map +1 -0
  17. package/{lib → build/types}/PackageJson.d.ts +0 -0
  18. package/build/types/PackageJson.d.ts.map +1 -0
  19. package/build/types/SimpleHost.d.ts +34 -0
  20. package/build/types/SimpleHost.d.ts.map +1 -0
  21. package/build/types/Table.d.ts +53 -0
  22. package/build/types/Table.d.ts.map +1 -0
  23. package/build/types/Timing.d.ts +9 -0
  24. package/build/types/Timing.d.ts.map +1 -0
  25. package/build/types/__tests__/CachingHost.spec.d.ts +2 -0
  26. package/build/types/__tests__/CachingHost.spec.d.ts.map +1 -0
  27. package/build/types/findWorkspaceDir.d.ts +10 -0
  28. package/build/types/findWorkspaceDir.d.ts.map +1 -0
  29. package/{lib → build/types}/getPackageNameToDir.d.ts +2 -1
  30. package/build/types/getPackageNameToDir.d.ts.map +1 -0
  31. package/build/types/getWorkspacePackageDirs.d.ts +9 -0
  32. package/build/types/getWorkspacePackageDirs.d.ts.map +1 -0
  33. package/build/types/index.d.ts +20 -0
  34. package/build/types/index.d.ts.map +1 -0
  35. package/build/types/matchesAnyGlob.d.ts +17 -0
  36. package/build/types/matchesAnyGlob.d.ts.map +1 -0
  37. package/{lib → build/types}/mutateJson.d.ts +2 -1
  38. package/build/types/mutateJson.d.ts.map +1 -0
  39. package/build/types/nanosecondsToSanity.d.ts +8 -0
  40. package/build/types/nanosecondsToSanity.d.ts.map +1 -0
  41. package/{jest.config.js → jest.config.cjs} +0 -0
  42. package/package.json +37 -14
  43. package/src/AggregateTiming.ts +70 -0
  44. package/src/CachingHost.ts +490 -0
  45. package/src/Host.ts +34 -0
  46. package/src/SimpleHost.ts +56 -0
  47. package/src/Table.ts +318 -0
  48. package/src/Timing.ts +54 -0
  49. package/src/__tests__/CachingHost.spec.ts +244 -0
  50. package/src/findWorkspaceDir.ts +25 -7
  51. package/src/getPackageNameToDir.ts +11 -7
  52. package/src/getWorkspacePackageDirs.ts +39 -11
  53. package/src/index.ts +13 -7
  54. package/src/matchesAnyGlob.ts +146 -0
  55. package/src/mutateJson.ts +4 -6
  56. package/src/nanosecondsToSanity.ts +10 -0
  57. package/tsconfig.json +7 -2
  58. package/tsup.config.cjs +11 -0
  59. package/lib/PackageJson.d.ts.map +0 -1
  60. package/lib/PackageJson.js +0 -9
  61. package/lib/PackageJson.js.map +0 -1
  62. package/lib/findWorkspaceDir.d.ts +0 -8
  63. package/lib/findWorkspaceDir.d.ts.map +0 -1
  64. package/lib/findWorkspaceDir.js +0 -28
  65. package/lib/findWorkspaceDir.js.map +0 -1
  66. package/lib/getPackageNameToDir.d.ts.map +0 -1
  67. package/lib/getPackageNameToDir.js +0 -30
  68. package/lib/getPackageNameToDir.js.map +0 -1
  69. package/lib/getWorkspacePackageDirs.d.ts +0 -8
  70. package/lib/getWorkspacePackageDirs.d.ts.map +0 -1
  71. package/lib/getWorkspacePackageDirs.js +0 -39
  72. package/lib/getWorkspacePackageDirs.js.map +0 -1
  73. package/lib/index.d.ts +0 -14
  74. package/lib/index.d.ts.map +0 -1
  75. package/lib/index.js +0 -21
  76. package/lib/index.js.map +0 -1
  77. package/lib/mutateJson.d.ts.map +0 -1
  78. package/lib/mutateJson.js +0 -17
  79. package/lib/mutateJson.js.map +0 -1
  80. package/lib/readJson.d.ts +0 -8
  81. package/lib/readJson.d.ts.map +0 -1
  82. package/lib/readJson.js +0 -15
  83. package/lib/readJson.js.map +0 -1
  84. package/lib/writeJson.d.ts +0 -8
  85. package/lib/writeJson.d.ts.map +0 -1
  86. package/lib/writeJson.js +0 -14
  87. package/lib/writeJson.js.map +0 -1
  88. package/src/readJson.ts +0 -13
  89. package/src/writeJson.ts +0 -12
  90. package/tsconfig.tsbuildinfo +0 -1340
@@ -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,61 @@
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
+ 211:55 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
32
+
33
+ /home/runner/work/monorepolint/monorepolint/packages/utils/src/__tests__/CachingHost.spec.ts
34
+ 69:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
35
+ 76:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
36
+ 91:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
37
+ 100:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
38
+ 109:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
39
+ 134:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
40
+ 160:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
41
+ 187:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
42
+ 207:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
43
+ 222:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
44
+ 238:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
45
+
46
+ /home/runner/work/monorepolint/monorepolint/packages/utils/src/getPackageNameToDir.ts
47
+ 20:3 warning Type boolean trivially inferred from a boolean literal, remove type annotation @typescript-eslint/no-inferrable-types
48
+
49
+ /home/runner/work/monorepolint/monorepolint/packages/utils/src/getWorkspacePackageDirs.ts
50
+ 33:3 warning Type boolean trivially inferred from a boolean literal, remove type annotation @typescript-eslint/no-inferrable-types
51
+
52
+ /home/runner/work/monorepolint/monorepolint/packages/utils/src/matchesAnyGlob.ts
53
+ 51:16 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
54
+ 84:5 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
55
+
56
+ /home/runner/work/monorepolint/monorepolint/packages/utils/src/nanosecondsToSanity.ts
57
+ 8:48 warning Type number trivially inferred from a number literal, remove type annotation @typescript-eslint/no-inferrable-types
58
+
59
+ ✖ 33 problems (0 errors, 33 warnings)
60
+ 0 errors and 4 warnings potentially fixable with the `--fix` option.
61
+
@@ -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:2780) ExperimentalWarning: VM Modules is an experimental feature. This feature could 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 (7 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 (3 ms)
15
+ ✓ handles writing symlinks properly if you read it first (2 ms)
16
+ ✓ handles creating new symlinks (7 ms)
17
+ ✓ makes directories (2 ms)
18
+ ✓ can unlink empty dirs (1 ms)
19
+ ✓ doesnt let you delete a directory with files (31 ms)
20
+ ✓ doesn't let you rmdir() a file (2 ms)
21
+
22
+ Test Suites: 1 passed, 1 total
23
+ Tests: 11 passed, 11 total
24
+ Snapshots: 0 total
25
+ Time: 4.803 s
26
+ Ran all test suites.
@@ -0,0 +1,18 @@
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 v6.5.0
8
+ CLI Using tsup config: /home/runner/work/monorepolint/monorepolint/tsup.config.cjs
9
+ CLI Target: es2020
10
+ CLI Cleaning output folder
11
+ CJS Build start
12
+ ESM Build start
13
+ CJS build/js/index.cjs 33.99 KB
14
+ CJS build/js/index.cjs.map 60.79 KB
15
+ CJS ⚡️ Build success in 133ms
16
+ ESM build/js/index.js 32.10 KB
17
+ ESM build/js/index.js.map 59.84 KB
18
+ ESM ⚡️ Build success in 134ms