@oneblink/release-cli 1.2.0-beta.3 → 1.2.0-beta.4

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 (398) hide show
  1. package/package.json +1 -2
  2. package/node_modules/@yarnpkg/lockfile/README.md +0 -22
  3. package/node_modules/@yarnpkg/lockfile/index.js +0 -10273
  4. package/node_modules/@yarnpkg/lockfile/package.json +0 -19
  5. package/node_modules/ansi-styles/index.js +0 -165
  6. package/node_modules/ansi-styles/license +0 -9
  7. package/node_modules/ansi-styles/package.json +0 -60
  8. package/node_modules/ansi-styles/readme.md +0 -147
  9. package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  10. package/node_modules/balanced-match/LICENSE.md +0 -21
  11. package/node_modules/balanced-match/README.md +0 -97
  12. package/node_modules/balanced-match/index.js +0 -62
  13. package/node_modules/balanced-match/package.json +0 -52
  14. package/node_modules/brace-expansion/LICENSE +0 -21
  15. package/node_modules/brace-expansion/README.md +0 -129
  16. package/node_modules/brace-expansion/index.js +0 -201
  17. package/node_modules/brace-expansion/package.json +0 -51
  18. package/node_modules/braces/CHANGELOG.md +0 -184
  19. package/node_modules/braces/LICENSE +0 -21
  20. package/node_modules/braces/README.md +0 -593
  21. package/node_modules/braces/index.js +0 -170
  22. package/node_modules/braces/lib/compile.js +0 -57
  23. package/node_modules/braces/lib/constants.js +0 -57
  24. package/node_modules/braces/lib/expand.js +0 -113
  25. package/node_modules/braces/lib/parse.js +0 -333
  26. package/node_modules/braces/lib/stringify.js +0 -32
  27. package/node_modules/braces/lib/utils.js +0 -112
  28. package/node_modules/braces/package.json +0 -81
  29. package/node_modules/chalk/index.js +0 -228
  30. package/node_modules/chalk/index.js.flow +0 -93
  31. package/node_modules/chalk/license +0 -9
  32. package/node_modules/chalk/package.json +0 -75
  33. package/node_modules/chalk/readme.md +0 -314
  34. package/node_modules/chalk/templates.js +0 -128
  35. package/node_modules/chalk/types/index.d.ts +0 -97
  36. package/node_modules/ci-info/CHANGELOG.md +0 -78
  37. package/node_modules/ci-info/LICENSE +0 -21
  38. package/node_modules/ci-info/README.md +0 -108
  39. package/node_modules/ci-info/index.js +0 -66
  40. package/node_modules/ci-info/package.json +0 -40
  41. package/node_modules/ci-info/vendors.json +0 -153
  42. package/node_modules/color-convert/CHANGELOG.md +0 -54
  43. package/node_modules/color-convert/LICENSE +0 -21
  44. package/node_modules/color-convert/README.md +0 -68
  45. package/node_modules/color-convert/conversions.js +0 -868
  46. package/node_modules/color-convert/index.js +0 -78
  47. package/node_modules/color-convert/package.json +0 -50
  48. package/node_modules/color-convert/route.js +0 -97
  49. package/node_modules/color-name/.eslintrc.json +0 -43
  50. package/node_modules/color-name/.npmignore +0 -107
  51. package/node_modules/color-name/LICENSE +0 -8
  52. package/node_modules/color-name/README.md +0 -11
  53. package/node_modules/color-name/index.js +0 -152
  54. package/node_modules/color-name/package.json +0 -29
  55. package/node_modules/color-name/test.js +0 -7
  56. package/node_modules/concat-map/.travis.yml +0 -4
  57. package/node_modules/concat-map/LICENSE +0 -18
  58. package/node_modules/concat-map/README.markdown +0 -62
  59. package/node_modules/concat-map/example/map.js +0 -6
  60. package/node_modules/concat-map/index.js +0 -13
  61. package/node_modules/concat-map/package.json +0 -47
  62. package/node_modules/concat-map/test/map.js +0 -39
  63. package/node_modules/escape-string-regexp/index.js +0 -11
  64. package/node_modules/escape-string-regexp/license +0 -21
  65. package/node_modules/escape-string-regexp/package.json +0 -45
  66. package/node_modules/escape-string-regexp/readme.md +0 -27
  67. package/node_modules/fill-range/LICENSE +0 -21
  68. package/node_modules/fill-range/README.md +0 -237
  69. package/node_modules/fill-range/index.js +0 -249
  70. package/node_modules/fill-range/package.json +0 -73
  71. package/node_modules/find-yarn-workspace-root/CHANGELOG.md +0 -53
  72. package/node_modules/find-yarn-workspace-root/LICENSE +0 -201
  73. package/node_modules/find-yarn-workspace-root/README.md +0 -56
  74. package/node_modules/find-yarn-workspace-root/index.d.ts +0 -3
  75. package/node_modules/find-yarn-workspace-root/index.js +0 -53
  76. package/node_modules/find-yarn-workspace-root/package.json +0 -38
  77. package/node_modules/fs-extra/CHANGELOG.md +0 -842
  78. package/node_modules/fs-extra/LICENSE +0 -15
  79. package/node_modules/fs-extra/README.md +0 -261
  80. package/node_modules/fs-extra/lib/copy/copy.js +0 -246
  81. package/node_modules/fs-extra/lib/copy/index.js +0 -6
  82. package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -193
  83. package/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
  84. package/node_modules/fs-extra/lib/empty/index.js +0 -48
  85. package/node_modules/fs-extra/lib/ensure/file.js +0 -49
  86. package/node_modules/fs-extra/lib/ensure/index.js +0 -23
  87. package/node_modules/fs-extra/lib/ensure/link.js +0 -61
  88. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -99
  89. package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -31
  90. package/node_modules/fs-extra/lib/ensure/symlink.js +0 -63
  91. package/node_modules/fs-extra/lib/fs/index.js +0 -104
  92. package/node_modules/fs-extra/lib/index.js +0 -28
  93. package/node_modules/fs-extra/lib/json/index.js +0 -16
  94. package/node_modules/fs-extra/lib/json/jsonfile.js +0 -12
  95. package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -18
  96. package/node_modules/fs-extra/lib/json/output-json.js +0 -27
  97. package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  98. package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -54
  99. package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -63
  100. package/node_modules/fs-extra/lib/mkdirs/win32.js +0 -25
  101. package/node_modules/fs-extra/lib/move/index.js +0 -82
  102. package/node_modules/fs-extra/lib/move-sync/index.js +0 -117
  103. package/node_modules/fs-extra/lib/output/index.js +0 -40
  104. package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  105. package/node_modules/fs-extra/lib/remove/index.js +0 -9
  106. package/node_modules/fs-extra/lib/remove/rimraf.js +0 -314
  107. package/node_modules/fs-extra/lib/util/buffer.js +0 -12
  108. package/node_modules/fs-extra/lib/util/utimes.js +0 -79
  109. package/node_modules/fs-extra/package.json +0 -72
  110. package/node_modules/fs.realpath/LICENSE +0 -43
  111. package/node_modules/fs.realpath/README.md +0 -33
  112. package/node_modules/fs.realpath/index.js +0 -66
  113. package/node_modules/fs.realpath/old.js +0 -303
  114. package/node_modules/fs.realpath/package.json +0 -30
  115. package/node_modules/glob/LICENSE +0 -21
  116. package/node_modules/glob/README.md +0 -375
  117. package/node_modules/glob/changelog.md +0 -67
  118. package/node_modules/glob/common.js +0 -240
  119. package/node_modules/glob/glob.js +0 -790
  120. package/node_modules/glob/package.json +0 -50
  121. package/node_modules/glob/sync.js +0 -486
  122. package/node_modules/graceful-fs/LICENSE +0 -15
  123. package/node_modules/graceful-fs/README.md +0 -133
  124. package/node_modules/graceful-fs/clone.js +0 -23
  125. package/node_modules/graceful-fs/graceful-fs.js +0 -373
  126. package/node_modules/graceful-fs/legacy-streams.js +0 -118
  127. package/node_modules/graceful-fs/package.json +0 -54
  128. package/node_modules/graceful-fs/polyfills.js +0 -346
  129. package/node_modules/has-flag/index.js +0 -8
  130. package/node_modules/has-flag/license +0 -9
  131. package/node_modules/has-flag/package.json +0 -48
  132. package/node_modules/has-flag/readme.md +0 -70
  133. package/node_modules/inflight/LICENSE +0 -15
  134. package/node_modules/inflight/README.md +0 -37
  135. package/node_modules/inflight/inflight.js +0 -54
  136. package/node_modules/inflight/package.json +0 -33
  137. package/node_modules/inherits/LICENSE +0 -16
  138. package/node_modules/inherits/README.md +0 -42
  139. package/node_modules/inherits/inherits.js +0 -9
  140. package/node_modules/inherits/inherits_browser.js +0 -27
  141. package/node_modules/inherits/package.json +0 -33
  142. package/node_modules/is-ci/CHANGELOG.md +0 -14
  143. package/node_modules/is-ci/LICENSE +0 -21
  144. package/node_modules/is-ci/README.md +0 -50
  145. package/node_modules/is-ci/bin.js +0 -4
  146. package/node_modules/is-ci/index.js +0 -3
  147. package/node_modules/is-ci/package.json +0 -42
  148. package/node_modules/is-docker/cli.js +0 -5
  149. package/node_modules/is-docker/index.d.ts +0 -15
  150. package/node_modules/is-docker/index.js +0 -29
  151. package/node_modules/is-docker/license +0 -9
  152. package/node_modules/is-docker/package.json +0 -46
  153. package/node_modules/is-docker/readme.md +0 -27
  154. package/node_modules/is-number/LICENSE +0 -21
  155. package/node_modules/is-number/README.md +0 -187
  156. package/node_modules/is-number/index.js +0 -18
  157. package/node_modules/is-number/package.json +0 -86
  158. package/node_modules/is-wsl/index.d.ts +0 -15
  159. package/node_modules/is-wsl/index.js +0 -31
  160. package/node_modules/is-wsl/license +0 -9
  161. package/node_modules/is-wsl/package.json +0 -49
  162. package/node_modules/is-wsl/readme.md +0 -36
  163. package/node_modules/isexe/.npmignore +0 -2
  164. package/node_modules/isexe/LICENSE +0 -15
  165. package/node_modules/isexe/README.md +0 -51
  166. package/node_modules/isexe/index.js +0 -57
  167. package/node_modules/isexe/mode.js +0 -41
  168. package/node_modules/isexe/package.json +0 -35
  169. package/node_modules/isexe/test/basic.js +0 -221
  170. package/node_modules/isexe/windows.js +0 -42
  171. package/node_modules/jsonfile/CHANGELOG.md +0 -145
  172. package/node_modules/jsonfile/LICENSE +0 -15
  173. package/node_modules/jsonfile/README.md +0 -168
  174. package/node_modules/jsonfile/index.js +0 -134
  175. package/node_modules/jsonfile/package.json +0 -41
  176. package/node_modules/klaw-sync/CHANGELOG.md +0 -73
  177. package/node_modules/klaw-sync/LICENSE +0 -20
  178. package/node_modules/klaw-sync/README.md +0 -164
  179. package/node_modules/klaw-sync/klaw-sync.js +0 -29
  180. package/node_modules/klaw-sync/package.json +0 -51
  181. package/node_modules/lru-cache/LICENSE +0 -15
  182. package/node_modules/lru-cache/README.md +0 -166
  183. package/node_modules/lru-cache/index.js +0 -334
  184. package/node_modules/lru-cache/package.json +0 -38
  185. package/node_modules/micromatch/CHANGELOG.md +0 -109
  186. package/node_modules/micromatch/LICENSE +0 -21
  187. package/node_modules/micromatch/README.md +0 -1008
  188. package/node_modules/micromatch/index.js +0 -467
  189. package/node_modules/micromatch/package.json +0 -123
  190. package/node_modules/minimatch/LICENSE +0 -15
  191. package/node_modules/minimatch/README.md +0 -209
  192. package/node_modules/minimatch/minimatch.js +0 -923
  193. package/node_modules/minimatch/package.json +0 -34
  194. package/node_modules/minimist/.travis.yml +0 -8
  195. package/node_modules/minimist/LICENSE +0 -18
  196. package/node_modules/minimist/example/parse.js +0 -2
  197. package/node_modules/minimist/index.js +0 -245
  198. package/node_modules/minimist/package.json +0 -49
  199. package/node_modules/minimist/readme.markdown +0 -95
  200. package/node_modules/minimist/test/all_bool.js +0 -32
  201. package/node_modules/minimist/test/bool.js +0 -178
  202. package/node_modules/minimist/test/dash.js +0 -31
  203. package/node_modules/minimist/test/default_bool.js +0 -35
  204. package/node_modules/minimist/test/dotted.js +0 -22
  205. package/node_modules/minimist/test/kv_short.js +0 -16
  206. package/node_modules/minimist/test/long.js +0 -31
  207. package/node_modules/minimist/test/num.js +0 -36
  208. package/node_modules/minimist/test/parse.js +0 -197
  209. package/node_modules/minimist/test/parse_modified.js +0 -9
  210. package/node_modules/minimist/test/proto.js +0 -44
  211. package/node_modules/minimist/test/short.js +0 -67
  212. package/node_modules/minimist/test/stop_early.js +0 -15
  213. package/node_modules/minimist/test/unknown.js +0 -102
  214. package/node_modules/minimist/test/whitespace.js +0 -8
  215. package/node_modules/nice-try/CHANGELOG.md +0 -21
  216. package/node_modules/nice-try/LICENSE +0 -21
  217. package/node_modules/nice-try/README.md +0 -32
  218. package/node_modules/nice-try/package.json +0 -37
  219. package/node_modules/nice-try/src/index.js +0 -12
  220. package/node_modules/once/LICENSE +0 -15
  221. package/node_modules/once/README.md +0 -79
  222. package/node_modules/once/once.js +0 -42
  223. package/node_modules/once/package.json +0 -37
  224. package/node_modules/open/index.d.ts +0 -88
  225. package/node_modules/open/index.js +0 -195
  226. package/node_modules/open/license +0 -9
  227. package/node_modules/open/package.json +0 -64
  228. package/node_modules/open/readme.md +0 -154
  229. package/node_modules/open/xdg-open +0 -1066
  230. package/node_modules/os-tmpdir/index.js +0 -25
  231. package/node_modules/os-tmpdir/license +0 -21
  232. package/node_modules/os-tmpdir/package.json +0 -45
  233. package/node_modules/os-tmpdir/readme.md +0 -32
  234. package/node_modules/patch-package/CHANGELOG.md +0 -389
  235. package/node_modules/patch-package/LICENSE +0 -19
  236. package/node_modules/patch-package/README.md +0 -269
  237. package/node_modules/patch-package/dist/PackageDetails.js +0 -102
  238. package/node_modules/patch-package/dist/PackageDetails.test.js +0 -228
  239. package/node_modules/patch-package/dist/applyPatches.js +0 -261
  240. package/node_modules/patch-package/dist/assertNever.js +0 -8
  241. package/node_modules/patch-package/dist/createIssue.js +0 -83
  242. package/node_modules/patch-package/dist/detectPackageManager.js +0 -64
  243. package/node_modules/patch-package/dist/filterFiles.js +0 -17
  244. package/node_modules/patch-package/dist/getAppRootPath.js +0 -22
  245. package/node_modules/patch-package/dist/getPackageResolution.js +0 -85
  246. package/node_modules/patch-package/dist/getPackageVersion.js +0 -9
  247. package/node_modules/patch-package/dist/index.js +0 -161
  248. package/node_modules/patch-package/dist/makePatch.js +0 -231
  249. package/node_modules/patch-package/dist/makeRegExp.js +0 -28
  250. package/node_modules/patch-package/dist/packageIsDevDependency.js +0 -15
  251. package/node_modules/patch-package/dist/packageIsDevDependency.test.js +0 -32
  252. package/node_modules/patch-package/dist/patch/apply.js +0 -197
  253. package/node_modules/patch-package/dist/patch/parse.js +0 -330
  254. package/node_modules/patch-package/dist/patch/read.js +0 -49
  255. package/node_modules/patch-package/dist/patch/reverse.js +0 -96
  256. package/node_modules/patch-package/dist/patchFs.js +0 -20
  257. package/node_modules/patch-package/dist/path.js +0 -17
  258. package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +0 -21
  259. package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +0 -22
  260. package/node_modules/patch-package/dist/spawnSafe.js +0 -28
  261. package/node_modules/patch-package/index.js +0 -3
  262. package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +0 -100
  263. package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +0 -21
  264. package/node_modules/patch-package/node_modules/cross-spawn/README.md +0 -94
  265. package/node_modules/patch-package/node_modules/cross-spawn/index.js +0 -39
  266. package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +0 -59
  267. package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +0 -125
  268. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +0 -45
  269. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +0 -32
  270. package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -47
  271. package/node_modules/patch-package/node_modules/cross-spawn/package.json +0 -80
  272. package/node_modules/patch-package/node_modules/path-key/index.js +0 -13
  273. package/node_modules/patch-package/node_modules/path-key/license +0 -21
  274. package/node_modules/patch-package/node_modules/path-key/package.json +0 -43
  275. package/node_modules/patch-package/node_modules/path-key/readme.md +0 -51
  276. package/node_modules/patch-package/node_modules/rimraf/LICENSE +0 -15
  277. package/node_modules/patch-package/node_modules/rimraf/README.md +0 -101
  278. package/node_modules/patch-package/node_modules/rimraf/bin.js +0 -50
  279. package/node_modules/patch-package/node_modules/rimraf/package.json +0 -33
  280. package/node_modules/patch-package/node_modules/rimraf/rimraf.js +0 -372
  281. package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +0 -39
  282. package/node_modules/patch-package/node_modules/semver/LICENSE +0 -15
  283. package/node_modules/patch-package/node_modules/semver/README.md +0 -412
  284. package/node_modules/patch-package/node_modules/semver/bin/semver +0 -160
  285. package/node_modules/patch-package/node_modules/semver/package.json +0 -32
  286. package/node_modules/patch-package/node_modules/semver/range.bnf +0 -16
  287. package/node_modules/patch-package/node_modules/semver/semver.js +0 -1483
  288. package/node_modules/patch-package/node_modules/shebang-command/index.js +0 -19
  289. package/node_modules/patch-package/node_modules/shebang-command/license +0 -21
  290. package/node_modules/patch-package/node_modules/shebang-command/package.json +0 -43
  291. package/node_modules/patch-package/node_modules/shebang-command/readme.md +0 -39
  292. package/node_modules/patch-package/node_modules/shebang-regex/index.js +0 -2
  293. package/node_modules/patch-package/node_modules/shebang-regex/license +0 -21
  294. package/node_modules/patch-package/node_modules/shebang-regex/package.json +0 -36
  295. package/node_modules/patch-package/node_modules/shebang-regex/readme.md +0 -29
  296. package/node_modules/patch-package/node_modules/slash/index.js +0 -11
  297. package/node_modules/patch-package/node_modules/slash/license +0 -9
  298. package/node_modules/patch-package/node_modules/slash/package.json +0 -38
  299. package/node_modules/patch-package/node_modules/slash/readme.md +0 -44
  300. package/node_modules/patch-package/node_modules/which/CHANGELOG.md +0 -152
  301. package/node_modules/patch-package/node_modules/which/LICENSE +0 -15
  302. package/node_modules/patch-package/node_modules/which/README.md +0 -51
  303. package/node_modules/patch-package/node_modules/which/bin/which +0 -52
  304. package/node_modules/patch-package/node_modules/which/package.json +0 -34
  305. package/node_modules/patch-package/node_modules/which/which.js +0 -135
  306. package/node_modules/patch-package/package.json +0 -100
  307. package/node_modules/path-is-absolute/index.js +0 -20
  308. package/node_modules/path-is-absolute/license +0 -21
  309. package/node_modules/path-is-absolute/package.json +0 -47
  310. package/node_modules/path-is-absolute/readme.md +0 -59
  311. package/node_modules/picomatch/CHANGELOG.md +0 -120
  312. package/node_modules/picomatch/LICENSE +0 -21
  313. package/node_modules/picomatch/README.md +0 -691
  314. package/node_modules/picomatch/index.js +0 -3
  315. package/node_modules/picomatch/lib/constants.js +0 -179
  316. package/node_modules/picomatch/lib/parse.js +0 -1078
  317. package/node_modules/picomatch/lib/picomatch.js +0 -339
  318. package/node_modules/picomatch/lib/scan.js +0 -385
  319. package/node_modules/picomatch/lib/utils.js +0 -64
  320. package/node_modules/picomatch/package.json +0 -85
  321. package/node_modules/semver/CHANGELOG.md +0 -111
  322. package/node_modules/semver/LICENSE +0 -15
  323. package/node_modules/semver/README.md +0 -566
  324. package/node_modules/semver/bin/semver.js +0 -173
  325. package/node_modules/semver/classes/comparator.js +0 -135
  326. package/node_modules/semver/classes/index.js +0 -5
  327. package/node_modules/semver/classes/range.js +0 -510
  328. package/node_modules/semver/classes/semver.js +0 -287
  329. package/node_modules/semver/functions/clean.js +0 -6
  330. package/node_modules/semver/functions/cmp.js +0 -48
  331. package/node_modules/semver/functions/coerce.js +0 -51
  332. package/node_modules/semver/functions/compare-build.js +0 -7
  333. package/node_modules/semver/functions/compare-loose.js +0 -3
  334. package/node_modules/semver/functions/compare.js +0 -5
  335. package/node_modules/semver/functions/diff.js +0 -23
  336. package/node_modules/semver/functions/eq.js +0 -3
  337. package/node_modules/semver/functions/gt.js +0 -3
  338. package/node_modules/semver/functions/gte.js +0 -3
  339. package/node_modules/semver/functions/inc.js +0 -15
  340. package/node_modules/semver/functions/lt.js +0 -3
  341. package/node_modules/semver/functions/lte.js +0 -3
  342. package/node_modules/semver/functions/major.js +0 -3
  343. package/node_modules/semver/functions/minor.js +0 -3
  344. package/node_modules/semver/functions/neq.js +0 -3
  345. package/node_modules/semver/functions/parse.js +0 -33
  346. package/node_modules/semver/functions/patch.js +0 -3
  347. package/node_modules/semver/functions/prerelease.js +0 -6
  348. package/node_modules/semver/functions/rcompare.js +0 -3
  349. package/node_modules/semver/functions/rsort.js +0 -3
  350. package/node_modules/semver/functions/satisfies.js +0 -10
  351. package/node_modules/semver/functions/sort.js +0 -3
  352. package/node_modules/semver/functions/valid.js +0 -6
  353. package/node_modules/semver/index.js +0 -48
  354. package/node_modules/semver/internal/constants.js +0 -17
  355. package/node_modules/semver/internal/debug.js +0 -9
  356. package/node_modules/semver/internal/identifiers.js +0 -23
  357. package/node_modules/semver/internal/parse-options.js +0 -11
  358. package/node_modules/semver/internal/re.js +0 -182
  359. package/node_modules/semver/package.json +0 -45
  360. package/node_modules/semver/preload.js +0 -2
  361. package/node_modules/semver/range.bnf +0 -16
  362. package/node_modules/semver/ranges/gtr.js +0 -4
  363. package/node_modules/semver/ranges/intersects.js +0 -7
  364. package/node_modules/semver/ranges/ltr.js +0 -4
  365. package/node_modules/semver/ranges/max-satisfying.js +0 -25
  366. package/node_modules/semver/ranges/min-satisfying.js +0 -24
  367. package/node_modules/semver/ranges/min-version.js +0 -60
  368. package/node_modules/semver/ranges/outside.js +0 -80
  369. package/node_modules/semver/ranges/simplify.js +0 -44
  370. package/node_modules/semver/ranges/subset.js +0 -222
  371. package/node_modules/semver/ranges/to-comparators.js +0 -8
  372. package/node_modules/semver/ranges/valid.js +0 -11
  373. package/node_modules/supports-color/browser.js +0 -5
  374. package/node_modules/supports-color/index.js +0 -131
  375. package/node_modules/supports-color/license +0 -9
  376. package/node_modules/supports-color/package.json +0 -57
  377. package/node_modules/supports-color/readme.md +0 -66
  378. package/node_modules/tmp/LICENSE +0 -21
  379. package/node_modules/tmp/README.md +0 -314
  380. package/node_modules/tmp/lib/tmp.js +0 -611
  381. package/node_modules/tmp/package.json +0 -42
  382. package/node_modules/to-regex-range/LICENSE +0 -21
  383. package/node_modules/to-regex-range/README.md +0 -305
  384. package/node_modules/to-regex-range/index.js +0 -288
  385. package/node_modules/to-regex-range/package.json +0 -92
  386. package/node_modules/universalify/LICENSE +0 -20
  387. package/node_modules/universalify/README.md +0 -76
  388. package/node_modules/universalify/index.js +0 -25
  389. package/node_modules/universalify/package.json +0 -38
  390. package/node_modules/wrappy/LICENSE +0 -15
  391. package/node_modules/wrappy/README.md +0 -36
  392. package/node_modules/wrappy/package.json +0 -33
  393. package/node_modules/wrappy/wrappy.js +0 -33
  394. package/node_modules/yallist/LICENSE +0 -15
  395. package/node_modules/yallist/README.md +0 -204
  396. package/node_modules/yallist/iterator.js +0 -8
  397. package/node_modules/yallist/package.json +0 -33
  398. package/node_modules/yallist/yallist.js +0 -426
@@ -1,249 +0,0 @@
1
- /*!
2
- * fill-range <https://github.com/jonschlinkert/fill-range>
3
- *
4
- * Copyright (c) 2014-present, Jon Schlinkert.
5
- * Licensed under the MIT License.
6
- */
7
-
8
- 'use strict';
9
-
10
- const util = require('util');
11
- const toRegexRange = require('to-regex-range');
12
-
13
- const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
14
-
15
- const transform = toNumber => {
16
- return value => toNumber === true ? Number(value) : String(value);
17
- };
18
-
19
- const isValidValue = value => {
20
- return typeof value === 'number' || (typeof value === 'string' && value !== '');
21
- };
22
-
23
- const isNumber = num => Number.isInteger(+num);
24
-
25
- const zeros = input => {
26
- let value = `${input}`;
27
- let index = -1;
28
- if (value[0] === '-') value = value.slice(1);
29
- if (value === '0') return false;
30
- while (value[++index] === '0');
31
- return index > 0;
32
- };
33
-
34
- const stringify = (start, end, options) => {
35
- if (typeof start === 'string' || typeof end === 'string') {
36
- return true;
37
- }
38
- return options.stringify === true;
39
- };
40
-
41
- const pad = (input, maxLength, toNumber) => {
42
- if (maxLength > 0) {
43
- let dash = input[0] === '-' ? '-' : '';
44
- if (dash) input = input.slice(1);
45
- input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0'));
46
- }
47
- if (toNumber === false) {
48
- return String(input);
49
- }
50
- return input;
51
- };
52
-
53
- const toMaxLen = (input, maxLength) => {
54
- let negative = input[0] === '-' ? '-' : '';
55
- if (negative) {
56
- input = input.slice(1);
57
- maxLength--;
58
- }
59
- while (input.length < maxLength) input = '0' + input;
60
- return negative ? ('-' + input) : input;
61
- };
62
-
63
- const toSequence = (parts, options) => {
64
- parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
65
- parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
66
-
67
- let prefix = options.capture ? '' : '?:';
68
- let positives = '';
69
- let negatives = '';
70
- let result;
71
-
72
- if (parts.positives.length) {
73
- positives = parts.positives.join('|');
74
- }
75
-
76
- if (parts.negatives.length) {
77
- negatives = `-(${prefix}${parts.negatives.join('|')})`;
78
- }
79
-
80
- if (positives && negatives) {
81
- result = `${positives}|${negatives}`;
82
- } else {
83
- result = positives || negatives;
84
- }
85
-
86
- if (options.wrap) {
87
- return `(${prefix}${result})`;
88
- }
89
-
90
- return result;
91
- };
92
-
93
- const toRange = (a, b, isNumbers, options) => {
94
- if (isNumbers) {
95
- return toRegexRange(a, b, { wrap: false, ...options });
96
- }
97
-
98
- let start = String.fromCharCode(a);
99
- if (a === b) return start;
100
-
101
- let stop = String.fromCharCode(b);
102
- return `[${start}-${stop}]`;
103
- };
104
-
105
- const toRegex = (start, end, options) => {
106
- if (Array.isArray(start)) {
107
- let wrap = options.wrap === true;
108
- let prefix = options.capture ? '' : '?:';
109
- return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
110
- }
111
- return toRegexRange(start, end, options);
112
- };
113
-
114
- const rangeError = (...args) => {
115
- return new RangeError('Invalid range arguments: ' + util.inspect(...args));
116
- };
117
-
118
- const invalidRange = (start, end, options) => {
119
- if (options.strictRanges === true) throw rangeError([start, end]);
120
- return [];
121
- };
122
-
123
- const invalidStep = (step, options) => {
124
- if (options.strictRanges === true) {
125
- throw new TypeError(`Expected step "${step}" to be a number`);
126
- }
127
- return [];
128
- };
129
-
130
- const fillNumbers = (start, end, step = 1, options = {}) => {
131
- let a = Number(start);
132
- let b = Number(end);
133
-
134
- if (!Number.isInteger(a) || !Number.isInteger(b)) {
135
- if (options.strictRanges === true) throw rangeError([start, end]);
136
- return [];
137
- }
138
-
139
- // fix negative zero
140
- if (a === 0) a = 0;
141
- if (b === 0) b = 0;
142
-
143
- let descending = a > b;
144
- let startString = String(start);
145
- let endString = String(end);
146
- let stepString = String(step);
147
- step = Math.max(Math.abs(step), 1);
148
-
149
- let padded = zeros(startString) || zeros(endString) || zeros(stepString);
150
- let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
151
- let toNumber = padded === false && stringify(start, end, options) === false;
152
- let format = options.transform || transform(toNumber);
153
-
154
- if (options.toRegex && step === 1) {
155
- return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
156
- }
157
-
158
- let parts = { negatives: [], positives: [] };
159
- let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
160
- let range = [];
161
- let index = 0;
162
-
163
- while (descending ? a >= b : a <= b) {
164
- if (options.toRegex === true && step > 1) {
165
- push(a);
166
- } else {
167
- range.push(pad(format(a, index), maxLen, toNumber));
168
- }
169
- a = descending ? a - step : a + step;
170
- index++;
171
- }
172
-
173
- if (options.toRegex === true) {
174
- return step > 1
175
- ? toSequence(parts, options)
176
- : toRegex(range, null, { wrap: false, ...options });
177
- }
178
-
179
- return range;
180
- };
181
-
182
- const fillLetters = (start, end, step = 1, options = {}) => {
183
- if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
184
- return invalidRange(start, end, options);
185
- }
186
-
187
-
188
- let format = options.transform || (val => String.fromCharCode(val));
189
- let a = `${start}`.charCodeAt(0);
190
- let b = `${end}`.charCodeAt(0);
191
-
192
- let descending = a > b;
193
- let min = Math.min(a, b);
194
- let max = Math.max(a, b);
195
-
196
- if (options.toRegex && step === 1) {
197
- return toRange(min, max, false, options);
198
- }
199
-
200
- let range = [];
201
- let index = 0;
202
-
203
- while (descending ? a >= b : a <= b) {
204
- range.push(format(a, index));
205
- a = descending ? a - step : a + step;
206
- index++;
207
- }
208
-
209
- if (options.toRegex === true) {
210
- return toRegex(range, null, { wrap: false, options });
211
- }
212
-
213
- return range;
214
- };
215
-
216
- const fill = (start, end, step, options = {}) => {
217
- if (end == null && isValidValue(start)) {
218
- return [start];
219
- }
220
-
221
- if (!isValidValue(start) || !isValidValue(end)) {
222
- return invalidRange(start, end, options);
223
- }
224
-
225
- if (typeof step === 'function') {
226
- return fill(start, end, 1, { transform: step });
227
- }
228
-
229
- if (isObject(step)) {
230
- return fill(start, end, 0, step);
231
- }
232
-
233
- let opts = { ...options };
234
- if (opts.capture === true) opts.wrap = true;
235
- step = step || opts.step || 1;
236
-
237
- if (!isNumber(step)) {
238
- if (step != null && !isObject(step)) return invalidStep(step, opts);
239
- return fill(start, end, 1, step);
240
- }
241
-
242
- if (isNumber(start) && isNumber(end)) {
243
- return fillNumbers(start, end, step, opts);
244
- }
245
-
246
- return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
247
- };
248
-
249
- module.exports = fill;
@@ -1,73 +0,0 @@
1
- {
2
- "name": "fill-range",
3
- "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`",
4
- "version": "7.0.1",
5
- "homepage": "https://github.com/jonschlinkert/fill-range",
6
- "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
- "contributors": [
8
- "Edo Rivai (edo.rivai.nl)",
9
- "Jon Schlinkert (http://twitter.com/jonschlinkert)",
10
- "Paul Miller (paulmillr.com)",
11
- "Rouven Weßling (www.rouvenwessling.de)",
12
- "(https://github.com/wtgtybhertgeghgtwtg)"
13
- ],
14
- "repository": "jonschlinkert/fill-range",
15
- "bugs": {
16
- "url": "https://github.com/jonschlinkert/fill-range/issues"
17
- },
18
- "license": "MIT",
19
- "files": [
20
- "index.js"
21
- ],
22
- "main": "index.js",
23
- "engines": {
24
- "node": ">=8"
25
- },
26
- "scripts": {
27
- "test": "mocha"
28
- },
29
- "dependencies": {
30
- "to-regex-range": "^5.0.1"
31
- },
32
- "devDependencies": {
33
- "gulp-format-md": "^2.0.0",
34
- "mocha": "^6.1.1"
35
- },
36
- "keywords": [
37
- "alpha",
38
- "alphabetical",
39
- "array",
40
- "bash",
41
- "brace",
42
- "expand",
43
- "expansion",
44
- "fill",
45
- "glob",
46
- "match",
47
- "matches",
48
- "matching",
49
- "number",
50
- "numerical",
51
- "range",
52
- "ranges",
53
- "regex",
54
- "sh"
55
- ],
56
- "verb": {
57
- "toc": false,
58
- "layout": "default",
59
- "tasks": [
60
- "readme"
61
- ],
62
- "plugins": [
63
- "gulp-format-md"
64
- ],
65
- "lint": {
66
- "reflinks": true
67
- }
68
- }
69
-
70
- ,"_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
71
- ,"_integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ=="
72
- ,"_from": "fill-range@7.0.1"
73
- }
@@ -1,53 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- <a name="2.0.0"></a>
6
- # [2.0.0](https://github.com/square/find-yarn-workspace-root/compare/v1.2.1...v2.0.0) (2020-06-11)
7
-
8
-
9
- ### Chores
10
-
11
- * **deps:** update micromatch to v4 ([c7e8189](https://github.com/square/find-yarn-workspace-root/commit/c7e8189))
12
-
13
-
14
- ### BREAKING CHANGES
15
-
16
- * **deps:** requires Node >= 8.6
17
-
18
-
19
-
20
- <a name="1.2.1"></a>
21
- ## [1.2.1](https://github.com/square/find-yarn-workspace-root/compare/v1.2.0...v1.2.1) (2018-08-30)
22
-
23
-
24
- ### Bug Fixes
25
-
26
- * add typescript declaration ([7c9c96f](https://github.com/square/find-yarn-workspace-root/commit/7c9c96f))
27
-
28
-
29
-
30
- <a name="1.2.0"></a>
31
- # [1.2.0](https://github.com/square/find-yarn-workspace-root/compare/v1.0.0...v1.2.0) (2018-08-09)
32
-
33
-
34
- ### Features
35
-
36
- * allow new `manifest.workspaces.packages` format ([5521d97](https://github.com/square/find-yarn-workspace-root/commit/5521d97))
37
- * make initial path optional ([475aaff](https://github.com/square/find-yarn-workspace-root/commit/475aaff))
38
-
39
-
40
-
41
- <a name="1.1.0"></a>
42
- # [1.1.0](https://github.com/square/find-yarn-workspace-root/compare/v1.0.0...v1.1.0) (2018-03-23)
43
-
44
-
45
- ### Features
46
-
47
- * allow new `manifest.workspaces.packages` format ([5521d97](https://github.com/square/find-yarn-workspace-root/commit/5521d97))
48
-
49
-
50
-
51
- # Change Log
52
-
53
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2017 Square, Inc.
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,56 +0,0 @@
1
- # find-yarn-workspace-root
2
-
3
- ![CI](https://github.com/square/find-yarn-workspace-root/workflows/CI/badge.svg)
4
-
5
- Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com
6
-
7
- ## Installation
8
-
9
- ```bash
10
- yarn add find-yarn-workspace-root
11
- ```
12
-
13
- ## Usage
14
-
15
- ```js
16
- const findWorkspaceRoot = require('find-yarn-workspace-root');
17
-
18
- const workspaceRoot = findWorkspaceRoot(__dirname); // Absolute path or null
19
- ```
20
-
21
- ## Contributing
22
-
23
- Contributions are welcome! Just clone this repository and install the dependencies:
24
-
25
- ```bash
26
- git clone https://github.com/square/find-yarn-workspace-root.git
27
- cd find-yarn-workspace-root
28
- yarn
29
- ```
30
-
31
- Note that you'll need `node` and `yarn` installed. Next, verify the tests all pass:
32
-
33
- ```bash
34
- yarn test
35
- ```
36
-
37
- Then create a branch for your bugfix/feature, make changes and update the tests, and submit a pull request. Please do not change the version in `package.json` when submitting a pull request. We determine the next version automatically based on the commits since the last release.
38
-
39
- > *NOTE*: Commit messages follow the [Angular commit message guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits).
40
-
41
- ## Releases
42
-
43
- To trigger a release, bump the version using `standard-version`:
44
-
45
- 1. To update the CHANGELOG, bump the version in `package.json`, and create a git tag, run:
46
-
47
- ```bash
48
- $(yarn bin)/standard-version
49
- ```
50
-
51
- 2. `git push && git push --tags`
52
-
53
- 3. `npm publish`
54
-
55
- ---
56
- Copyright 2017 Square, Inc.
@@ -1,3 +0,0 @@
1
- declare function findWorkspaceRoot(initial?: string | null | undefined): string | null;
2
- declare namespace findWorkspaceRoot {}
3
- export = findWorkspaceRoot;
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- const fs = require('fs');
4
- const micromatch = require('micromatch');
5
- const path = require('path');
6
-
7
- module.exports = findWorkspaceRoot;
8
-
9
- /**
10
- * Adapted from:
11
- * https://github.com/yarnpkg/yarn/blob/ddf2f9ade211195372236c2f39a75b00fa18d4de/src/config.js#L612
12
- * @param {string} [initial]
13
- * @return {string|null}
14
- */
15
- function findWorkspaceRoot(initial) {
16
- if (!initial) {
17
- initial = process.cwd();
18
- }
19
- let previous = null;
20
- let current = path.normalize(initial);
21
-
22
- do {
23
- const manifest = readPackageJSON(current);
24
- const workspaces = extractWorkspaces(manifest);
25
-
26
- if (workspaces) {
27
- const relativePath = path.relative(current, initial);
28
- if (relativePath === '' || micromatch([relativePath], workspaces).length > 0) {
29
- return current;
30
- } else {
31
- return null;
32
- }
33
- }
34
-
35
- previous = current;
36
- current = path.dirname(current);
37
- } while (current !== previous);
38
-
39
- return null;
40
- }
41
-
42
- function extractWorkspaces(manifest) {
43
- const workspaces = (manifest || {}).workspaces;
44
- return (workspaces && workspaces.packages) || (Array.isArray(workspaces) ? workspaces : null);
45
- }
46
-
47
- function readPackageJSON(dir) {
48
- const file = path.join(dir, 'package.json');
49
- if (fs.existsSync(file)) {
50
- return JSON.parse(fs.readFileSync(file, 'utf8'));
51
- }
52
- return null;
53
- }