dep 0.18.2 → 1.0.0

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 (3378) hide show
  1. package/.claude/settings.local.json +41 -0
  2. package/.github/workflows/nodejs.yml +20 -0
  3. package/CHANGELOG.md +7 -0
  4. package/README.md +12 -40
  5. package/bin/dep.js +24 -20
  6. package/lib/install/installer/bin.js +28 -24
  7. package/lib/install/installer/git.js +7 -7
  8. package/lib/install/installer/local.js +2 -2
  9. package/lib/install/installer/registry.js +5 -5
  10. package/lib/install/installer/remote.js +5 -5
  11. package/lib/install/installer.js +18 -17
  12. package/lib/install/resolver/fetcher.js +6 -6
  13. package/lib/install/resolver/fetchers/git.js +7 -7
  14. package/lib/install/resolver/fetchers/local.js +4 -3
  15. package/lib/install/resolver/fetchers/registry.js +12 -12
  16. package/lib/install/resolver/fetchers/remote.js +6 -6
  17. package/lib/install/resolver/tree.js +9 -12
  18. package/lib/install/resolver.js +7 -7
  19. package/lib/install/saver.js +8 -8
  20. package/lib/install.js +13 -13
  21. package/lib/lock/locker.js +114 -6
  22. package/lib/lock/resolver/fetcher.js +29 -0
  23. package/lib/lock/resolver/fetchers/git.js +76 -0
  24. package/lib/lock/resolver/fetchers/local.js +19 -0
  25. package/lib/lock/resolver/fetchers/registry.js +51 -0
  26. package/lib/lock/resolver/fetchers/remote.js +43 -0
  27. package/lib/lock/resolver/tree.js +43 -0
  28. package/lib/lock/resolver.js +43 -74
  29. package/lib/lock.js +16 -15
  30. package/lib/run/list.js +1 -1
  31. package/lib/run/runner.js +24 -20
  32. package/lib/run.js +10 -6
  33. package/lib/utils/drop-privilege.js +7 -4
  34. package/lib/utils/git.js +12 -11
  35. package/lib/utils/is-root.js +1 -1
  36. package/lib/utils/nm.js +2 -2
  37. package/lib/utils/node-gyp.js +5 -4
  38. package/lib/utils/npmrc.js +8 -5
  39. package/lib/utils/pick-version.js +15 -0
  40. package/node_modules/@isaacs/fs-minipass/README.md +71 -0
  41. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
  42. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  43. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  44. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  45. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  46. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
  47. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  48. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  49. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  50. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  51. package/node_modules/@isaacs/fs-minipass/package.json +72 -0
  52. package/node_modules/@pnpm/config.env-replace/dist/env-replace.d.ts +2 -0
  53. package/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx +18 -0
  54. package/node_modules/@pnpm/config.env-replace/dist/env-replace.js +30 -0
  55. package/node_modules/@pnpm/config.env-replace/dist/env-replace.js.map +1 -0
  56. package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.d.ts +1 -0
  57. package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js +26 -0
  58. package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js.map +1 -0
  59. package/node_modules/@pnpm/config.env-replace/dist/index.d.ts +1 -0
  60. package/node_modules/@pnpm/config.env-replace/dist/index.js +6 -0
  61. package/node_modules/@pnpm/config.env-replace/dist/index.js.map +1 -0
  62. package/node_modules/@pnpm/config.env-replace/dist/preview-1680634751300.js +7 -0
  63. package/node_modules/@pnpm/config.env-replace/dist/tsconfig.json +32 -0
  64. package/node_modules/@pnpm/config.env-replace/env-replace.docs.mdx +18 -0
  65. package/node_modules/@pnpm/config.env-replace/env-replace.spec.ts +27 -0
  66. package/node_modules/@pnpm/config.env-replace/env-replace.ts +28 -0
  67. package/node_modules/@pnpm/config.env-replace/index.ts +1 -0
  68. package/node_modules/@pnpm/config.env-replace/package-tar/pnpm-config.env-replace-1.1.0.tgz +0 -0
  69. package/node_modules/@pnpm/config.env-replace/package.json +31 -0
  70. package/node_modules/@pnpm/config.env-replace/tsconfig.json +32 -0
  71. package/node_modules/@pnpm/config.env-replace/types/asset.d.ts +29 -0
  72. package/node_modules/@pnpm/config.env-replace/types/style.d.ts +42 -0
  73. package/node_modules/@pnpm/network.ca-file/ca-file.docs.mdx +12 -0
  74. package/node_modules/@pnpm/network.ca-file/ca-file.spec.ts +20 -0
  75. package/node_modules/@pnpm/network.ca-file/ca-file.ts +16 -0
  76. package/node_modules/@pnpm/network.ca-file/dist/ca-file.d.ts +1 -0
  77. package/node_modules/@pnpm/network.ca-file/dist/ca-file.docs.mdx +12 -0
  78. package/node_modules/@pnpm/network.ca-file/dist/ca-file.js +25 -0
  79. package/node_modules/@pnpm/network.ca-file/dist/ca-file.js.map +1 -0
  80. package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.d.ts +1 -0
  81. package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js +24 -0
  82. package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js.map +1 -0
  83. package/node_modules/@pnpm/network.ca-file/dist/fixtures/ca-file1.txt +14 -0
  84. package/node_modules/@pnpm/network.ca-file/dist/index.d.ts +1 -0
  85. package/node_modules/@pnpm/network.ca-file/dist/index.js +18 -0
  86. package/node_modules/@pnpm/network.ca-file/dist/index.js.map +1 -0
  87. package/node_modules/@pnpm/network.ca-file/dist/tsconfig.json +32 -0
  88. package/node_modules/@pnpm/network.ca-file/fixtures/ca-file1.txt +14 -0
  89. package/node_modules/@pnpm/network.ca-file/index.ts +1 -0
  90. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/LICENSE +15 -0
  91. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/README.md +143 -0
  92. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/clone.js +23 -0
  93. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/graceful-fs.js +448 -0
  94. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/legacy-streams.js +118 -0
  95. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/package.json +50 -0
  96. package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/polyfills.js +355 -0
  97. package/node_modules/@pnpm/network.ca-file/package-tar/pnpm-network.ca-file-1.0.2.tgz +0 -0
  98. package/node_modules/@pnpm/network.ca-file/package.json +34 -0
  99. package/node_modules/@pnpm/network.ca-file/preview-1668994697977.js +7 -0
  100. package/node_modules/@pnpm/network.ca-file/tsconfig.json +32 -0
  101. package/node_modules/@pnpm/network.ca-file/types/asset.d.ts +29 -0
  102. package/node_modules/@pnpm/network.ca-file/types/style.d.ts +42 -0
  103. package/node_modules/@pnpm/npm-conf/index.js +96 -0
  104. package/node_modules/@pnpm/npm-conf/lib/conf.js +196 -0
  105. package/node_modules/@pnpm/npm-conf/lib/defaults.js +176 -0
  106. package/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js +19 -0
  107. package/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js +50 -0
  108. package/node_modules/@pnpm/npm-conf/lib/make.js +99 -0
  109. package/node_modules/@pnpm/npm-conf/lib/tsconfig.make-out.json +14 -0
  110. package/node_modules/@pnpm/npm-conf/lib/types.d.ts +122 -0
  111. package/node_modules/@pnpm/npm-conf/lib/types.js +134 -0
  112. package/node_modules/@pnpm/npm-conf/lib/util.js +145 -0
  113. package/node_modules/@pnpm/npm-conf/lib/util.test.js +8 -0
  114. package/node_modules/@pnpm/npm-conf/license +9 -0
  115. package/node_modules/@pnpm/npm-conf/package.json +45 -0
  116. package/node_modules/@pnpm/npm-conf/readme.md +47 -0
  117. package/node_modules/abbrev/lib/index.js +53 -0
  118. package/node_modules/abbrev/package.json +33 -47
  119. package/node_modules/ajv/README.md +224 -78
  120. package/node_modules/ajv/dist/ajv.bundle.js +187 -158
  121. package/node_modules/ajv/dist/ajv.min.js +2 -2
  122. package/node_modules/ajv/dist/ajv.min.js.map +1 -1
  123. package/node_modules/ajv/lib/ajv.d.ts +16 -4
  124. package/node_modules/ajv/lib/ajv.js +9 -0
  125. package/node_modules/ajv/lib/compile/equal.js +1 -1
  126. package/node_modules/ajv/lib/compile/formats.js +10 -17
  127. package/node_modules/ajv/lib/compile/index.js +9 -7
  128. package/node_modules/ajv/lib/compile/util.js +9 -44
  129. package/node_modules/ajv/lib/data.js +1 -1
  130. package/node_modules/ajv/lib/definition_schema.js +1 -1
  131. package/node_modules/ajv/lib/dot/_limit.jst +9 -0
  132. package/node_modules/ajv/lib/dot/_limitItems.jst +2 -0
  133. package/node_modules/ajv/lib/dot/_limitLength.jst +2 -0
  134. package/node_modules/ajv/lib/dot/_limitProperties.jst +2 -0
  135. package/node_modules/ajv/lib/dot/allOf.jst +0 -2
  136. package/node_modules/ajv/lib/dot/anyOf.jst +0 -2
  137. package/node_modules/ajv/lib/dot/coerce.def +18 -28
  138. package/node_modules/ajv/lib/dot/contains.jst +0 -2
  139. package/node_modules/ajv/lib/dot/definitions.def +9 -7
  140. package/node_modules/ajv/lib/dot/dependencies.jst +1 -2
  141. package/node_modules/ajv/lib/dot/if.jst +0 -2
  142. package/node_modules/ajv/lib/dot/items.jst +0 -2
  143. package/node_modules/ajv/lib/dot/multipleOf.jst +2 -0
  144. package/node_modules/ajv/lib/dot/pattern.jst +15 -4
  145. package/node_modules/ajv/lib/dot/properties.jst +6 -5
  146. package/node_modules/ajv/lib/dot/propertyNames.jst +0 -2
  147. package/node_modules/ajv/lib/dot/uniqueItems.jst +1 -1
  148. package/node_modules/ajv/lib/dot/validate.jst +3 -9
  149. package/node_modules/ajv/lib/dotjs/_limit.js +6 -0
  150. package/node_modules/ajv/lib/dotjs/_limitItems.js +3 -0
  151. package/node_modules/ajv/lib/dotjs/_limitLength.js +3 -0
  152. package/node_modules/ajv/lib/dotjs/_limitProperties.js +3 -0
  153. package/node_modules/ajv/lib/dotjs/allOf.js +1 -2
  154. package/node_modules/ajv/lib/dotjs/anyOf.js +1 -2
  155. package/node_modules/ajv/lib/dotjs/contains.js +1 -2
  156. package/node_modules/ajv/lib/dotjs/dependencies.js +2 -2
  157. package/node_modules/ajv/lib/dotjs/if.js +2 -3
  158. package/node_modules/ajv/lib/dotjs/items.js +3 -4
  159. package/node_modules/ajv/lib/dotjs/multipleOf.js +3 -0
  160. package/node_modules/ajv/lib/dotjs/not.js +1 -1
  161. package/node_modules/ajv/lib/dotjs/oneOf.js +1 -1
  162. package/node_modules/ajv/lib/dotjs/pattern.js +14 -4
  163. package/node_modules/ajv/lib/dotjs/properties.js +11 -6
  164. package/node_modules/ajv/lib/dotjs/propertyNames.js +1 -2
  165. package/node_modules/ajv/lib/dotjs/required.js +1 -1
  166. package/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -1
  167. package/node_modules/ajv/lib/dotjs/validate.js +13 -25
  168. package/node_modules/ajv/lib/keyword.js +1 -1
  169. package/node_modules/ajv/lib/refs/data.json +1 -1
  170. package/node_modules/ajv/lib/refs/json-schema-secure.json +1 -1
  171. package/node_modules/ajv/package.json +77 -97
  172. package/node_modules/ajv/scripts/publish-built-version +1 -1
  173. package/node_modules/ajv/scripts/travis-gh-pages +1 -1
  174. package/node_modules/ansi-align/CHANGELOG.md +8 -1
  175. package/node_modules/ansi-align/node_modules/emoji-regex/package.json +50 -0
  176. package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.js +25 -21
  177. package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/license +4 -16
  178. package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +40 -75
  179. package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/readme.md +6 -6
  180. package/node_modules/ansi-align/node_modules/string-width/index.js +15 -7
  181. package/node_modules/ansi-align/node_modules/string-width/package.json +54 -86
  182. package/node_modules/ansi-align/node_modules/string-width/readme.md +15 -10
  183. package/node_modules/ansi-align/package.json +26 -55
  184. package/node_modules/ansi-regex/index.js +8 -2
  185. package/node_modules/ansi-regex/license +4 -16
  186. package/node_modules/ansi-regex/package.json +53 -107
  187. package/node_modules/ansi-regex/readme.md +48 -9
  188. package/node_modules/any-promise/package.json +24 -51
  189. package/node_modules/asn1/Jenkinsfile +65 -0
  190. package/node_modules/asn1/package.json +19 -63
  191. package/node_modules/assert-plus/package.json +14 -78
  192. package/node_modules/asynckit/package.json +40 -68
  193. package/node_modules/atomically/dist/constants.d.ts +15 -0
  194. package/node_modules/atomically/dist/constants.js +19 -0
  195. package/node_modules/atomically/dist/index.d.ts +15 -0
  196. package/node_modules/atomically/dist/index.js +209 -0
  197. package/node_modules/atomically/dist/types.d.ts +27 -0
  198. package/node_modules/atomically/dist/types.js +2 -0
  199. package/node_modules/atomically/dist/utils/lang.d.ts +6 -0
  200. package/node_modules/atomically/dist/utils/lang.js +16 -0
  201. package/node_modules/atomically/dist/utils/scheduler.d.ts +6 -0
  202. package/node_modules/atomically/dist/utils/scheduler.js +34 -0
  203. package/node_modules/atomically/dist/utils/temp.d.ts +11 -0
  204. package/node_modules/atomically/dist/utils/temp.js +59 -0
  205. package/node_modules/atomically/license +21 -0
  206. package/node_modules/atomically/package.json +42 -0
  207. package/node_modules/atomically/readme.md +147 -0
  208. package/node_modules/aws-sign2/package.json +10 -43
  209. package/node_modules/aws4/README.md +68 -380
  210. package/node_modules/aws4/aws4.js +71 -29
  211. package/node_modules/aws4/package.json +14 -97
  212. package/node_modules/bare-events/LICENSE +201 -0
  213. package/node_modules/bare-events/README.md +25 -0
  214. package/node_modules/bare-events/global.d.ts +15 -0
  215. package/node_modules/bare-events/global.js +5 -0
  216. package/node_modules/bare-events/index.d.ts +85 -0
  217. package/node_modules/bare-events/index.js +378 -0
  218. package/node_modules/bare-events/lib/errors.js +26 -0
  219. package/node_modules/bare-events/package.json +63 -0
  220. package/node_modules/bare-events/web.d.ts +79 -0
  221. package/node_modules/bare-events/web.js +353 -0
  222. package/node_modules/bare-fs/CMakeLists.txt +13 -0
  223. package/node_modules/bare-fs/LICENSE +201 -0
  224. package/node_modules/bare-fs/README.md +989 -0
  225. package/node_modules/bare-fs/binding.c +2889 -0
  226. package/node_modules/bare-fs/binding.js +1 -0
  227. package/node_modules/bare-fs/index.d.ts +1232 -0
  228. package/node_modules/bare-fs/index.js +2842 -0
  229. package/node_modules/bare-fs/lib/constants.d.ts +49 -0
  230. package/node_modules/bare-fs/lib/constants.js +49 -0
  231. package/node_modules/bare-fs/lib/errors.d.ts +11 -0
  232. package/node_modules/bare-fs/lib/errors.js +55 -0
  233. package/node_modules/bare-fs/package.json +74 -0
  234. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  235. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  236. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  237. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  238. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  239. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  240. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  241. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  242. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  243. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  244. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  245. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  246. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  247. package/node_modules/bare-fs/promises.d.ts +313 -0
  248. package/node_modules/bare-fs/promises.js +119 -0
  249. package/node_modules/bare-os/CMakeLists.txt +13 -0
  250. package/node_modules/bare-os/LICENSE +201 -0
  251. package/node_modules/bare-os/README.md +252 -0
  252. package/node_modules/bare-os/binding.c +1538 -0
  253. package/node_modules/bare-os/binding.js +1 -0
  254. package/node_modules/bare-os/index.d.ts +150 -0
  255. package/node_modules/bare-os/index.js +131 -0
  256. package/node_modules/bare-os/lib/constants.d.ts +7 -0
  257. package/node_modules/bare-os/lib/constants.js +7 -0
  258. package/node_modules/bare-os/lib/errors.d.ts +5 -0
  259. package/node_modules/bare-os/lib/errors.js +22 -0
  260. package/node_modules/bare-os/package.json +55 -0
  261. package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
  262. package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
  263. package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
  264. package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
  265. package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
  266. package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
  267. package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
  268. package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
  269. package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
  270. package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
  271. package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
  272. package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
  273. package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
  274. package/node_modules/bare-path/LICENSE +201 -0
  275. package/node_modules/bare-path/NOTICE +28 -0
  276. package/node_modules/bare-path/README.md +19 -0
  277. package/node_modules/bare-path/index.d.ts +27 -0
  278. package/node_modules/bare-path/index.js +9 -0
  279. package/node_modules/bare-path/lib/constants.js +11 -0
  280. package/node_modules/bare-path/lib/posix.js +246 -0
  281. package/node_modules/bare-path/lib/shared.js +73 -0
  282. package/node_modules/bare-path/lib/win32.js +547 -0
  283. package/node_modules/bare-path/package.json +44 -0
  284. package/node_modules/bare-stream/LICENSE +201 -0
  285. package/node_modules/bare-stream/README.md +354 -0
  286. package/node_modules/bare-stream/global.d.ts +31 -0
  287. package/node_modules/bare-stream/global.js +15 -0
  288. package/node_modules/bare-stream/index.d.ts +235 -0
  289. package/node_modules/bare-stream/index.js +493 -0
  290. package/node_modules/bare-stream/node_modules/b4a/LICENSE +201 -0
  291. package/node_modules/bare-stream/node_modules/b4a/README.md +153 -0
  292. package/node_modules/bare-stream/node_modules/b4a/browser.js +541 -0
  293. package/node_modules/bare-stream/node_modules/b4a/index.js +188 -0
  294. package/node_modules/bare-stream/node_modules/b4a/lib/ascii.js +31 -0
  295. package/node_modules/bare-stream/node_modules/b4a/lib/base64.js +64 -0
  296. package/node_modules/bare-stream/node_modules/b4a/lib/hex.js +51 -0
  297. package/node_modules/bare-stream/node_modules/b4a/lib/latin1.js +31 -0
  298. package/node_modules/bare-stream/node_modules/b4a/lib/utf16le.js +40 -0
  299. package/node_modules/bare-stream/node_modules/b4a/lib/utf8.js +144 -0
  300. package/node_modules/bare-stream/node_modules/b4a/package.json +51 -0
  301. package/node_modules/bare-stream/node_modules/b4a/react-native.js +5 -0
  302. package/node_modules/bare-stream/package.json +75 -0
  303. package/node_modules/bare-stream/promises.js +3 -0
  304. package/node_modules/bare-stream/web.d.ts +152 -0
  305. package/node_modules/bare-stream/web.js +607 -0
  306. package/node_modules/bare-url/CMakeLists.txt +27 -0
  307. package/node_modules/bare-url/LICENSE +201 -0
  308. package/node_modules/bare-url/README.md +172 -0
  309. package/node_modules/bare-url/binding.c +186 -0
  310. package/node_modules/bare-url/binding.js +1 -0
  311. package/node_modules/bare-url/global.d.ts +12 -0
  312. package/node_modules/bare-url/global.js +2 -0
  313. package/node_modules/bare-url/index.d.ts +41 -0
  314. package/node_modules/bare-url/index.js +411 -0
  315. package/node_modules/bare-url/lib/errors.d.ts +10 -0
  316. package/node_modules/bare-url/lib/errors.js +33 -0
  317. package/node_modules/bare-url/lib/url-search-params.d.ts +23 -0
  318. package/node_modules/bare-url/lib/url-search-params.js +194 -0
  319. package/node_modules/bare-url/package.json +54 -0
  320. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  321. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  322. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  323. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  324. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  325. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  326. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  327. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  328. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  329. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  330. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  331. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  332. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  333. package/node_modules/bcrypt-pbkdf/package.json +8 -37
  334. package/node_modules/boxen/index.d.ts +246 -157
  335. package/node_modules/boxen/index.js +327 -92
  336. package/node_modules/boxen/license +1 -1
  337. package/node_modules/boxen/node_modules/camelcase/index.d.ts +102 -0
  338. package/node_modules/boxen/node_modules/camelcase/index.js +110 -0
  339. package/node_modules/boxen/node_modules/camelcase/license +9 -0
  340. package/node_modules/boxen/node_modules/camelcase/package.json +47 -0
  341. package/node_modules/boxen/node_modules/camelcase/readme.md +135 -0
  342. package/node_modules/boxen/node_modules/chalk/license +1 -1
  343. package/node_modules/boxen/node_modules/chalk/package.json +81 -101
  344. package/node_modules/boxen/node_modules/chalk/readme.md +87 -104
  345. package/node_modules/boxen/node_modules/chalk/source/index.d.ts +325 -0
  346. package/node_modules/boxen/node_modules/chalk/source/index.js +225 -0
  347. package/node_modules/boxen/node_modules/chalk/source/utilities.js +33 -0
  348. package/node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  349. package/node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  350. package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  351. package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  352. package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  353. package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  354. package/node_modules/boxen/node_modules/type-fest/index.d.ts +178 -0
  355. package/node_modules/boxen/node_modules/type-fest/license-cc0 +121 -0
  356. package/node_modules/boxen/node_modules/type-fest/license-mit +9 -0
  357. package/node_modules/boxen/node_modules/type-fest/package.json +91 -0
  358. package/node_modules/boxen/node_modules/type-fest/readme.md +1060 -0
  359. package/node_modules/boxen/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
  360. package/node_modules/boxen/node_modules/type-fest/source/and.d.ts +25 -0
  361. package/node_modules/boxen/node_modules/type-fest/source/array-indices.d.ts +23 -0
  362. package/node_modules/boxen/node_modules/type-fest/source/array-slice.d.ts +109 -0
  363. package/node_modules/boxen/node_modules/type-fest/source/array-splice.d.ts +99 -0
  364. package/node_modules/boxen/node_modules/type-fest/source/array-tail.d.ts +76 -0
  365. package/node_modules/boxen/node_modules/type-fest/source/array-values.d.ts +22 -0
  366. package/node_modules/boxen/node_modules/type-fest/source/arrayable.d.ts +29 -0
  367. package/node_modules/boxen/node_modules/type-fest/source/async-return-type.d.ts +23 -0
  368. package/node_modules/boxen/node_modules/type-fest/source/asyncify.d.ts +32 -0
  369. package/node_modules/boxen/node_modules/type-fest/source/basic.d.ts +68 -0
  370. package/node_modules/boxen/node_modules/type-fest/source/camel-case.d.ts +89 -0
  371. package/node_modules/boxen/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
  372. package/node_modules/boxen/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
  373. package/node_modules/boxen/node_modules/type-fest/source/conditional-except.d.ts +45 -0
  374. package/node_modules/boxen/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
  375. package/node_modules/boxen/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
  376. package/node_modules/boxen/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
  377. package/node_modules/boxen/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
  378. package/node_modules/boxen/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
  379. package/node_modules/boxen/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
  380. package/node_modules/boxen/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
  381. package/node_modules/boxen/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
  382. package/node_modules/boxen/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
  383. package/node_modules/boxen/node_modules/type-fest/source/empty-object.d.ts +46 -0
  384. package/node_modules/boxen/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
  385. package/node_modules/boxen/node_modules/type-fest/source/entries.d.ts +62 -0
  386. package/node_modules/boxen/node_modules/type-fest/source/entry.d.ts +65 -0
  387. package/node_modules/boxen/node_modules/type-fest/source/exact.d.ts +68 -0
  388. package/node_modules/boxen/node_modules/type-fest/source/except.d.ts +108 -0
  389. package/node_modules/boxen/node_modules/type-fest/source/find-global-type.d.ts +64 -0
  390. package/node_modules/boxen/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
  391. package/node_modules/boxen/node_modules/type-fest/source/get.d.ts +219 -0
  392. package/node_modules/boxen/node_modules/type-fest/source/global-this.d.ts +21 -0
  393. package/node_modules/boxen/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
  394. package/node_modules/boxen/node_modules/type-fest/source/greater-than.d.ts +56 -0
  395. package/node_modules/boxen/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
  396. package/node_modules/boxen/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
  397. package/node_modules/boxen/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
  398. package/node_modules/boxen/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
  399. package/node_modules/boxen/node_modules/type-fest/source/if-any.d.ts +24 -0
  400. package/node_modules/boxen/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
  401. package/node_modules/boxen/node_modules/type-fest/source/if-never.d.ts +24 -0
  402. package/node_modules/boxen/node_modules/type-fest/source/if-null.d.ts +24 -0
  403. package/node_modules/boxen/node_modules/type-fest/source/if-unknown.d.ts +24 -0
  404. package/node_modules/boxen/node_modules/type-fest/source/includes.d.ts +22 -0
  405. package/node_modules/boxen/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
  406. package/node_modules/boxen/node_modules/type-fest/source/int-range.d.ts +55 -0
  407. package/node_modules/boxen/node_modules/type-fest/source/internal/array.d.ts +126 -0
  408. package/node_modules/boxen/node_modules/type-fest/source/internal/characters.d.ts +67 -0
  409. package/node_modules/boxen/node_modules/type-fest/source/internal/index.d.ts +8 -0
  410. package/node_modules/boxen/node_modules/type-fest/source/internal/keys.d.ts +97 -0
  411. package/node_modules/boxen/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
  412. package/node_modules/boxen/node_modules/type-fest/source/internal/object.d.ts +236 -0
  413. package/node_modules/boxen/node_modules/type-fest/source/internal/string.d.ts +210 -0
  414. package/node_modules/boxen/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
  415. package/node_modules/boxen/node_modules/type-fest/source/internal/type.d.ts +139 -0
  416. package/node_modules/boxen/node_modules/type-fest/source/invariant-of.d.ts +76 -0
  417. package/node_modules/boxen/node_modules/type-fest/source/is-any.d.ts +33 -0
  418. package/node_modules/boxen/node_modules/type-fest/source/is-equal.d.ts +31 -0
  419. package/node_modules/boxen/node_modules/type-fest/source/is-float.d.ts +41 -0
  420. package/node_modules/boxen/node_modules/type-fest/source/is-integer.d.ts +58 -0
  421. package/node_modules/boxen/node_modules/type-fest/source/is-literal.d.ts +296 -0
  422. package/node_modules/boxen/node_modules/type-fest/source/is-never.d.ts +42 -0
  423. package/node_modules/boxen/node_modules/type-fest/source/is-null.d.ts +20 -0
  424. package/node_modules/boxen/node_modules/type-fest/source/is-tuple.d.ts +89 -0
  425. package/node_modules/boxen/node_modules/type-fest/source/is-unknown.d.ts +52 -0
  426. package/node_modules/boxen/node_modules/type-fest/source/iterable-element.d.ts +64 -0
  427. package/node_modules/boxen/node_modules/type-fest/source/join.d.ts +68 -0
  428. package/node_modules/boxen/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  429. package/node_modules/boxen/node_modules/type-fest/source/jsonify.d.ts +122 -0
  430. package/node_modules/boxen/node_modules/type-fest/source/kebab-case.d.ts +44 -0
  431. package/node_modules/boxen/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
  432. package/node_modules/boxen/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
  433. package/node_modules/boxen/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
  434. package/node_modules/boxen/node_modules/type-fest/source/last-array-element.d.ts +38 -0
  435. package/node_modules/boxen/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
  436. package/node_modules/boxen/node_modules/type-fest/source/less-than.d.ts +26 -0
  437. package/node_modules/boxen/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
  438. package/node_modules/boxen/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
  439. package/node_modules/boxen/node_modules/type-fest/source/literal-union.d.ts +37 -0
  440. package/node_modules/boxen/node_modules/type-fest/source/merge-deep.d.ts +486 -0
  441. package/node_modules/boxen/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
  442. package/node_modules/boxen/node_modules/type-fest/source/merge.d.ts +48 -0
  443. package/node_modules/boxen/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
  444. package/node_modules/boxen/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
  445. package/node_modules/boxen/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
  446. package/node_modules/boxen/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
  447. package/node_modules/boxen/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
  448. package/node_modules/boxen/node_modules/type-fest/source/numeric.d.ts +222 -0
  449. package/node_modules/boxen/node_modules/type-fest/source/observable-like.d.ts +63 -0
  450. package/node_modules/boxen/node_modules/type-fest/source/omit-deep.d.ts +167 -0
  451. package/node_modules/boxen/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
  452. package/node_modules/boxen/node_modules/type-fest/source/opaque.d.ts +1 -0
  453. package/node_modules/boxen/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
  454. package/node_modules/boxen/node_modules/type-fest/source/or.d.ts +25 -0
  455. package/node_modules/boxen/node_modules/type-fest/source/override-properties.d.ts +36 -0
  456. package/node_modules/boxen/node_modules/type-fest/source/package-json.d.ts +676 -0
  457. package/node_modules/boxen/node_modules/type-fest/source/partial-deep.d.ts +151 -0
  458. package/node_modules/boxen/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
  459. package/node_modules/boxen/node_modules/type-fest/source/pascal-case.d.ts +42 -0
  460. package/node_modules/boxen/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
  461. package/node_modules/boxen/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
  462. package/node_modules/boxen/node_modules/type-fest/source/paths.d.ts +262 -0
  463. package/node_modules/boxen/node_modules/type-fest/source/pick-deep.d.ts +149 -0
  464. package/node_modules/boxen/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
  465. package/node_modules/boxen/node_modules/type-fest/source/primitive.d.ts +13 -0
  466. package/node_modules/boxen/node_modules/type-fest/source/promisable.d.ts +25 -0
  467. package/node_modules/boxen/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
  468. package/node_modules/boxen/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
  469. package/node_modules/boxen/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
  470. package/node_modules/boxen/node_modules/type-fest/source/replace.d.ts +85 -0
  471. package/node_modules/boxen/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
  472. package/node_modules/boxen/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
  473. package/node_modules/boxen/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
  474. package/node_modules/boxen/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
  475. package/node_modules/boxen/node_modules/type-fest/source/required-deep.d.ts +78 -0
  476. package/node_modules/boxen/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
  477. package/node_modules/boxen/node_modules/type-fest/source/schema.d.ts +114 -0
  478. package/node_modules/boxen/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
  479. package/node_modules/boxen/node_modules/type-fest/source/set-field-type.d.ts +65 -0
  480. package/node_modules/boxen/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
  481. package/node_modules/boxen/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
  482. package/node_modules/boxen/node_modules/type-fest/source/set-optional.d.ts +38 -0
  483. package/node_modules/boxen/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
  484. package/node_modules/boxen/node_modules/type-fest/source/set-readonly.d.ts +39 -0
  485. package/node_modules/boxen/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
  486. package/node_modules/boxen/node_modules/type-fest/source/set-required.d.ts +70 -0
  487. package/node_modules/boxen/node_modules/type-fest/source/set-return-type.d.ts +29 -0
  488. package/node_modules/boxen/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
  489. package/node_modules/boxen/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
  490. package/node_modules/boxen/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
  491. package/node_modules/boxen/node_modules/type-fest/source/simplify.d.ts +58 -0
  492. package/node_modules/boxen/node_modules/type-fest/source/single-key-object.d.ts +29 -0
  493. package/node_modules/boxen/node_modules/type-fest/source/snake-case.d.ts +45 -0
  494. package/node_modules/boxen/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
  495. package/node_modules/boxen/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
  496. package/node_modules/boxen/node_modules/type-fest/source/split.d.ts +88 -0
  497. package/node_modules/boxen/node_modules/type-fest/source/spread.d.ts +84 -0
  498. package/node_modules/boxen/node_modules/type-fest/source/string-key-of.d.ts +25 -0
  499. package/node_modules/boxen/node_modules/type-fest/source/string-repeat.d.ts +47 -0
  500. package/node_modules/boxen/node_modules/type-fest/source/string-slice.d.ts +37 -0
  501. package/node_modules/boxen/node_modules/type-fest/source/stringified.d.ts +23 -0
  502. package/node_modules/boxen/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
  503. package/node_modules/boxen/node_modules/type-fest/source/subtract.d.ts +83 -0
  504. package/node_modules/boxen/node_modules/type-fest/source/sum.d.ts +78 -0
  505. package/node_modules/boxen/node_modules/type-fest/source/tagged-union.d.ts +51 -0
  506. package/node_modules/boxen/node_modules/type-fest/source/tagged.d.ts +256 -0
  507. package/node_modules/boxen/node_modules/type-fest/source/trim.d.ts +27 -0
  508. package/node_modules/boxen/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
  509. package/node_modules/boxen/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
  510. package/node_modules/boxen/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
  511. package/node_modules/boxen/node_modules/type-fest/source/typed-array.d.ts +17 -0
  512. package/node_modules/boxen/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
  513. package/node_modules/boxen/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
  514. package/node_modules/boxen/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
  515. package/node_modules/boxen/node_modules/type-fest/source/unknown-array.d.ts +25 -0
  516. package/node_modules/boxen/node_modules/type-fest/source/unknown-map.d.ts +24 -0
  517. package/node_modules/boxen/node_modules/type-fest/source/unknown-record.d.ts +31 -0
  518. package/node_modules/boxen/node_modules/type-fest/source/unknown-set.d.ts +24 -0
  519. package/node_modules/boxen/node_modules/type-fest/source/value-of.d.ts +42 -0
  520. package/node_modules/boxen/node_modules/type-fest/source/words.d.ts +118 -0
  521. package/node_modules/boxen/node_modules/type-fest/source/writable-deep.d.ts +83 -0
  522. package/node_modules/boxen/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
  523. package/node_modules/boxen/node_modules/type-fest/source/writable.d.ts +68 -0
  524. package/node_modules/boxen/package.json +67 -85
  525. package/node_modules/boxen/readme.md +156 -44
  526. package/node_modules/browserify-zlib/package.json +19 -53
  527. package/node_modules/buffer-from/index.js +3 -0
  528. package/node_modules/buffer-from/package.json +10 -45
  529. package/node_modules/caseless/package.json +16 -45
  530. package/node_modules/chownr/LICENSE.md +63 -0
  531. package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
  532. package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  533. package/node_modules/chownr/dist/commonjs/index.js +93 -0
  534. package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  535. package/node_modules/chownr/dist/commonjs/package.json +3 -0
  536. package/node_modules/chownr/dist/esm/index.d.ts +3 -0
  537. package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  538. package/node_modules/chownr/dist/esm/index.js +85 -0
  539. package/node_modules/chownr/dist/esm/index.js.map +1 -0
  540. package/node_modules/chownr/dist/esm/package.json +3 -0
  541. package/node_modules/chownr/package.json +59 -50
  542. package/node_modules/cli-boxes/boxes.json +38 -14
  543. package/node_modules/cli-boxes/index.d.ts +19 -5
  544. package/node_modules/cli-boxes/license +1 -1
  545. package/node_modules/cli-boxes/package.json +40 -71
  546. package/node_modules/cli-boxes/readme.md +27 -14
  547. package/node_modules/cliui/CHANGELOG.md +81 -0
  548. package/node_modules/cliui/README.md +51 -5
  549. package/node_modules/cliui/build/lib/index.js +287 -0
  550. package/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
  551. package/node_modules/cliui/index.mjs +15 -0
  552. package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +9 -13
  553. package/node_modules/cliui/node_modules/ansi-regex/index.js +11 -7
  554. package/node_modules/cliui/node_modules/ansi-regex/license +1 -1
  555. package/node_modules/cliui/node_modules/ansi-regex/package.json +59 -85
  556. package/node_modules/cliui/node_modules/ansi-regex/readme.md +10 -22
  557. package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +2 -4
  558. package/node_modules/cliui/node_modules/strip-ansi/index.js +18 -3
  559. package/node_modules/cliui/node_modules/strip-ansi/license +1 -1
  560. package/node_modules/cliui/node_modules/strip-ansi/package.json +57 -85
  561. package/node_modules/cliui/node_modules/strip-ansi/readme.md +6 -15
  562. package/node_modules/cliui/package.json +55 -80
  563. package/node_modules/cmd-shim/README.md +34 -0
  564. package/node_modules/cmd-shim/lib/index.js +283 -0
  565. package/node_modules/cmd-shim/lib/to-batch-syntax.js +49 -0
  566. package/node_modules/cmd-shim/package.json +48 -0
  567. package/node_modules/combined-stream/package.json +14 -47
  568. package/node_modules/config-chain/LICENCE +22 -0
  569. package/node_modules/config-chain/index.js +282 -0
  570. package/node_modules/config-chain/package.json +28 -0
  571. package/node_modules/config-chain/readme.markdown +257 -0
  572. package/node_modules/configstore/index.d.ts +94 -0
  573. package/node_modules/configstore/index.js +62 -45
  574. package/node_modules/configstore/node_modules/dot-prop/index.d.ts +164 -0
  575. package/node_modules/configstore/node_modules/dot-prop/index.js +337 -0
  576. package/node_modules/configstore/node_modules/dot-prop/license +9 -0
  577. package/node_modules/configstore/node_modules/dot-prop/package.json +53 -0
  578. package/node_modules/configstore/node_modules/dot-prop/readme.md +168 -0
  579. package/node_modules/configstore/node_modules/type-fest/index.d.ts +178 -0
  580. package/node_modules/configstore/node_modules/type-fest/license-cc0 +121 -0
  581. package/node_modules/configstore/node_modules/type-fest/license-mit +9 -0
  582. package/node_modules/configstore/node_modules/type-fest/package.json +91 -0
  583. package/node_modules/configstore/node_modules/type-fest/readme.md +1060 -0
  584. package/node_modules/configstore/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
  585. package/node_modules/configstore/node_modules/type-fest/source/and.d.ts +25 -0
  586. package/node_modules/configstore/node_modules/type-fest/source/array-indices.d.ts +23 -0
  587. package/node_modules/configstore/node_modules/type-fest/source/array-slice.d.ts +109 -0
  588. package/node_modules/configstore/node_modules/type-fest/source/array-splice.d.ts +99 -0
  589. package/node_modules/configstore/node_modules/type-fest/source/array-tail.d.ts +76 -0
  590. package/node_modules/configstore/node_modules/type-fest/source/array-values.d.ts +22 -0
  591. package/node_modules/configstore/node_modules/type-fest/source/arrayable.d.ts +29 -0
  592. package/node_modules/configstore/node_modules/type-fest/source/async-return-type.d.ts +23 -0
  593. package/node_modules/configstore/node_modules/type-fest/source/asyncify.d.ts +32 -0
  594. package/node_modules/configstore/node_modules/type-fest/source/basic.d.ts +68 -0
  595. package/node_modules/configstore/node_modules/type-fest/source/camel-case.d.ts +89 -0
  596. package/node_modules/configstore/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
  597. package/node_modules/configstore/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
  598. package/node_modules/configstore/node_modules/type-fest/source/conditional-except.d.ts +45 -0
  599. package/node_modules/configstore/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
  600. package/node_modules/configstore/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
  601. package/node_modules/configstore/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
  602. package/node_modules/configstore/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
  603. package/node_modules/configstore/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
  604. package/node_modules/configstore/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
  605. package/node_modules/configstore/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
  606. package/node_modules/configstore/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
  607. package/node_modules/configstore/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
  608. package/node_modules/configstore/node_modules/type-fest/source/empty-object.d.ts +46 -0
  609. package/node_modules/configstore/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
  610. package/node_modules/configstore/node_modules/type-fest/source/entries.d.ts +62 -0
  611. package/node_modules/configstore/node_modules/type-fest/source/entry.d.ts +65 -0
  612. package/node_modules/configstore/node_modules/type-fest/source/exact.d.ts +68 -0
  613. package/node_modules/configstore/node_modules/type-fest/source/except.d.ts +108 -0
  614. package/node_modules/configstore/node_modules/type-fest/source/find-global-type.d.ts +64 -0
  615. package/node_modules/configstore/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
  616. package/node_modules/configstore/node_modules/type-fest/source/get.d.ts +219 -0
  617. package/node_modules/configstore/node_modules/type-fest/source/global-this.d.ts +21 -0
  618. package/node_modules/configstore/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
  619. package/node_modules/configstore/node_modules/type-fest/source/greater-than.d.ts +56 -0
  620. package/node_modules/configstore/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
  621. package/node_modules/configstore/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
  622. package/node_modules/configstore/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
  623. package/node_modules/configstore/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
  624. package/node_modules/configstore/node_modules/type-fest/source/if-any.d.ts +24 -0
  625. package/node_modules/configstore/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
  626. package/node_modules/configstore/node_modules/type-fest/source/if-never.d.ts +24 -0
  627. package/node_modules/configstore/node_modules/type-fest/source/if-null.d.ts +24 -0
  628. package/node_modules/configstore/node_modules/type-fest/source/if-unknown.d.ts +24 -0
  629. package/node_modules/configstore/node_modules/type-fest/source/includes.d.ts +22 -0
  630. package/node_modules/configstore/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
  631. package/node_modules/configstore/node_modules/type-fest/source/int-range.d.ts +55 -0
  632. package/node_modules/configstore/node_modules/type-fest/source/internal/array.d.ts +126 -0
  633. package/node_modules/configstore/node_modules/type-fest/source/internal/characters.d.ts +67 -0
  634. package/node_modules/configstore/node_modules/type-fest/source/internal/index.d.ts +8 -0
  635. package/node_modules/configstore/node_modules/type-fest/source/internal/keys.d.ts +97 -0
  636. package/node_modules/configstore/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
  637. package/node_modules/configstore/node_modules/type-fest/source/internal/object.d.ts +236 -0
  638. package/node_modules/configstore/node_modules/type-fest/source/internal/string.d.ts +210 -0
  639. package/node_modules/configstore/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
  640. package/node_modules/configstore/node_modules/type-fest/source/internal/type.d.ts +139 -0
  641. package/node_modules/configstore/node_modules/type-fest/source/invariant-of.d.ts +76 -0
  642. package/node_modules/configstore/node_modules/type-fest/source/is-any.d.ts +33 -0
  643. package/node_modules/configstore/node_modules/type-fest/source/is-equal.d.ts +31 -0
  644. package/node_modules/configstore/node_modules/type-fest/source/is-float.d.ts +41 -0
  645. package/node_modules/configstore/node_modules/type-fest/source/is-integer.d.ts +58 -0
  646. package/node_modules/configstore/node_modules/type-fest/source/is-literal.d.ts +296 -0
  647. package/node_modules/configstore/node_modules/type-fest/source/is-never.d.ts +42 -0
  648. package/node_modules/configstore/node_modules/type-fest/source/is-null.d.ts +20 -0
  649. package/node_modules/configstore/node_modules/type-fest/source/is-tuple.d.ts +89 -0
  650. package/node_modules/configstore/node_modules/type-fest/source/is-unknown.d.ts +52 -0
  651. package/node_modules/configstore/node_modules/type-fest/source/iterable-element.d.ts +64 -0
  652. package/node_modules/configstore/node_modules/type-fest/source/join.d.ts +68 -0
  653. package/node_modules/configstore/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
  654. package/node_modules/configstore/node_modules/type-fest/source/jsonify.d.ts +122 -0
  655. package/node_modules/configstore/node_modules/type-fest/source/kebab-case.d.ts +44 -0
  656. package/node_modules/configstore/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
  657. package/node_modules/configstore/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
  658. package/node_modules/configstore/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
  659. package/node_modules/configstore/node_modules/type-fest/source/last-array-element.d.ts +38 -0
  660. package/node_modules/configstore/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
  661. package/node_modules/configstore/node_modules/type-fest/source/less-than.d.ts +26 -0
  662. package/node_modules/configstore/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
  663. package/node_modules/configstore/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
  664. package/node_modules/configstore/node_modules/type-fest/source/literal-union.d.ts +37 -0
  665. package/node_modules/configstore/node_modules/type-fest/source/merge-deep.d.ts +486 -0
  666. package/node_modules/configstore/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
  667. package/node_modules/configstore/node_modules/type-fest/source/merge.d.ts +48 -0
  668. package/node_modules/configstore/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
  669. package/node_modules/configstore/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
  670. package/node_modules/configstore/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
  671. package/node_modules/configstore/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
  672. package/node_modules/configstore/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
  673. package/node_modules/configstore/node_modules/type-fest/source/numeric.d.ts +222 -0
  674. package/node_modules/configstore/node_modules/type-fest/source/observable-like.d.ts +63 -0
  675. package/node_modules/configstore/node_modules/type-fest/source/omit-deep.d.ts +167 -0
  676. package/node_modules/configstore/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
  677. package/node_modules/configstore/node_modules/type-fest/source/opaque.d.ts +1 -0
  678. package/node_modules/configstore/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
  679. package/node_modules/configstore/node_modules/type-fest/source/or.d.ts +25 -0
  680. package/node_modules/configstore/node_modules/type-fest/source/override-properties.d.ts +36 -0
  681. package/node_modules/configstore/node_modules/type-fest/source/package-json.d.ts +676 -0
  682. package/node_modules/configstore/node_modules/type-fest/source/partial-deep.d.ts +151 -0
  683. package/node_modules/configstore/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
  684. package/node_modules/configstore/node_modules/type-fest/source/pascal-case.d.ts +42 -0
  685. package/node_modules/configstore/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
  686. package/node_modules/configstore/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
  687. package/node_modules/configstore/node_modules/type-fest/source/paths.d.ts +262 -0
  688. package/node_modules/configstore/node_modules/type-fest/source/pick-deep.d.ts +149 -0
  689. package/node_modules/configstore/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
  690. package/node_modules/configstore/node_modules/type-fest/source/primitive.d.ts +13 -0
  691. package/node_modules/configstore/node_modules/type-fest/source/promisable.d.ts +25 -0
  692. package/node_modules/configstore/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
  693. package/node_modules/configstore/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
  694. package/node_modules/configstore/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
  695. package/node_modules/configstore/node_modules/type-fest/source/replace.d.ts +85 -0
  696. package/node_modules/configstore/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
  697. package/node_modules/configstore/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
  698. package/node_modules/configstore/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
  699. package/node_modules/configstore/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
  700. package/node_modules/configstore/node_modules/type-fest/source/required-deep.d.ts +78 -0
  701. package/node_modules/configstore/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
  702. package/node_modules/configstore/node_modules/type-fest/source/schema.d.ts +114 -0
  703. package/node_modules/configstore/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
  704. package/node_modules/configstore/node_modules/type-fest/source/set-field-type.d.ts +65 -0
  705. package/node_modules/configstore/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
  706. package/node_modules/configstore/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
  707. package/node_modules/configstore/node_modules/type-fest/source/set-optional.d.ts +38 -0
  708. package/node_modules/configstore/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
  709. package/node_modules/configstore/node_modules/type-fest/source/set-readonly.d.ts +39 -0
  710. package/node_modules/configstore/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
  711. package/node_modules/configstore/node_modules/type-fest/source/set-required.d.ts +70 -0
  712. package/node_modules/configstore/node_modules/type-fest/source/set-return-type.d.ts +29 -0
  713. package/node_modules/configstore/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
  714. package/node_modules/configstore/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
  715. package/node_modules/configstore/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
  716. package/node_modules/configstore/node_modules/type-fest/source/simplify.d.ts +58 -0
  717. package/node_modules/configstore/node_modules/type-fest/source/single-key-object.d.ts +29 -0
  718. package/node_modules/configstore/node_modules/type-fest/source/snake-case.d.ts +45 -0
  719. package/node_modules/configstore/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
  720. package/node_modules/configstore/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
  721. package/node_modules/configstore/node_modules/type-fest/source/split.d.ts +88 -0
  722. package/node_modules/configstore/node_modules/type-fest/source/spread.d.ts +84 -0
  723. package/node_modules/configstore/node_modules/type-fest/source/string-key-of.d.ts +25 -0
  724. package/node_modules/configstore/node_modules/type-fest/source/string-repeat.d.ts +47 -0
  725. package/node_modules/configstore/node_modules/type-fest/source/string-slice.d.ts +37 -0
  726. package/node_modules/configstore/node_modules/type-fest/source/stringified.d.ts +23 -0
  727. package/node_modules/configstore/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
  728. package/node_modules/configstore/node_modules/type-fest/source/subtract.d.ts +83 -0
  729. package/node_modules/configstore/node_modules/type-fest/source/sum.d.ts +78 -0
  730. package/node_modules/configstore/node_modules/type-fest/source/tagged-union.d.ts +51 -0
  731. package/node_modules/configstore/node_modules/type-fest/source/tagged.d.ts +256 -0
  732. package/node_modules/configstore/node_modules/type-fest/source/trim.d.ts +27 -0
  733. package/node_modules/configstore/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
  734. package/node_modules/configstore/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
  735. package/node_modules/configstore/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
  736. package/node_modules/configstore/node_modules/type-fest/source/typed-array.d.ts +17 -0
  737. package/node_modules/configstore/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
  738. package/node_modules/configstore/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
  739. package/node_modules/configstore/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
  740. package/node_modules/configstore/node_modules/type-fest/source/unknown-array.d.ts +25 -0
  741. package/node_modules/configstore/node_modules/type-fest/source/unknown-map.d.ts +24 -0
  742. package/node_modules/configstore/node_modules/type-fest/source/unknown-record.d.ts +31 -0
  743. package/node_modules/configstore/node_modules/type-fest/source/unknown-set.d.ts +24 -0
  744. package/node_modules/configstore/node_modules/type-fest/source/value-of.d.ts +42 -0
  745. package/node_modules/configstore/node_modules/type-fest/source/words.d.ts +118 -0
  746. package/node_modules/configstore/node_modules/type-fest/source/writable-deep.d.ts +83 -0
  747. package/node_modules/configstore/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
  748. package/node_modules/configstore/node_modules/type-fest/source/writable.d.ts +68 -0
  749. package/node_modules/configstore/node_modules/xdg-basedir/index.d.ts +90 -0
  750. package/node_modules/configstore/node_modules/xdg-basedir/index.js +30 -0
  751. package/node_modules/configstore/node_modules/xdg-basedir/license +9 -0
  752. package/node_modules/configstore/node_modules/xdg-basedir/package.json +47 -0
  753. package/node_modules/configstore/node_modules/xdg-basedir/readme.md +70 -0
  754. package/node_modules/configstore/package.json +51 -77
  755. package/node_modules/configstore/readme.md +52 -32
  756. package/node_modules/core-util-is/lib/util.js +1 -1
  757. package/node_modules/core-util-is/package.json +19 -44
  758. package/node_modules/dashdash/package.json +23 -64
  759. package/node_modules/deep-extend/package.json +33 -63
  760. package/node_modules/delayed-stream/package.json +14 -49
  761. package/node_modules/duplexify/package.json +15 -43
  762. package/node_modules/ecc-jsbn/package.json +19 -44
  763. package/node_modules/emoji-regex/README.md +48 -14
  764. package/node_modules/emoji-regex/index.d.ts +1 -3
  765. package/node_modules/emoji-regex/index.js +3 -5
  766. package/node_modules/emoji-regex/index.mjs +4 -0
  767. package/node_modules/emoji-regex/package.json +43 -80
  768. package/node_modules/end-of-stream/index.js +3 -1
  769. package/node_modules/end-of-stream/package.json +17 -50
  770. package/node_modules/env-paths/index.d.ts +32 -0
  771. package/node_modules/env-paths/package.json +43 -75
  772. package/node_modules/env-paths/readme.md +44 -5
  773. package/node_modules/escalade/dist/index.js +22 -0
  774. package/node_modules/escalade/dist/index.mjs +22 -0
  775. package/node_modules/escalade/index.d.mts +11 -0
  776. package/node_modules/escalade/index.d.ts +15 -0
  777. package/node_modules/escalade/license +9 -0
  778. package/node_modules/escalade/package.json +74 -0
  779. package/node_modules/escalade/readme.md +211 -0
  780. package/node_modules/escalade/sync/index.d.mts +9 -0
  781. package/node_modules/escalade/sync/index.d.ts +13 -0
  782. package/node_modules/escalade/sync/index.js +18 -0
  783. package/node_modules/escalade/sync/index.mjs +18 -0
  784. package/node_modules/escape-goat/index.d.ts +62 -0
  785. package/node_modules/escape-goat/index.js +39 -0
  786. package/node_modules/escape-goat/license +9 -0
  787. package/node_modules/escape-goat/package.json +48 -0
  788. package/node_modules/escape-goat/readme.md +60 -0
  789. package/node_modules/events-universal/LICENSE +201 -0
  790. package/node_modules/events-universal/README.md +17 -0
  791. package/node_modules/events-universal/bare.js +1 -0
  792. package/node_modules/events-universal/default.js +1 -0
  793. package/node_modules/events-universal/index.js +1 -0
  794. package/node_modules/events-universal/package.json +39 -0
  795. package/node_modules/events-universal/react-native.js +1 -0
  796. package/node_modules/exponential-backoff/LICENSE +202 -0
  797. package/node_modules/exponential-backoff/README.md +89 -0
  798. package/node_modules/exponential-backoff/dist/backoff.d.ts +9 -0
  799. package/node_modules/exponential-backoff/dist/backoff.js +124 -0
  800. package/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
  801. package/node_modules/exponential-backoff/dist/delay/always/always.delay.d.ts +3 -0
  802. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
  803. package/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
  804. package/node_modules/exponential-backoff/dist/delay/delay.base.d.ts +12 -0
  805. package/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
  806. package/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
  807. package/node_modules/exponential-backoff/dist/delay/delay.factory.d.ts +3 -0
  808. package/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
  809. package/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
  810. package/node_modules/exponential-backoff/dist/delay/delay.interface.d.ts +4 -0
  811. package/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
  812. package/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
  813. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.d.ts +6 -0
  814. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
  815. package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
  816. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.d.ts +1 -0
  817. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
  818. package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
  819. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.d.ts +3 -0
  820. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
  821. package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
  822. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.d.ts +1 -0
  823. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
  824. package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
  825. package/node_modules/exponential-backoff/dist/options.d.ts +55 -0
  826. package/node_modules/exponential-backoff/dist/options.js +31 -0
  827. package/node_modules/exponential-backoff/dist/options.js.map +1 -0
  828. package/node_modules/exponential-backoff/package.json +62 -0
  829. package/node_modules/exponential-backoff/src/backoff.spec.ts +194 -0
  830. package/node_modules/exponential-backoff/src/backoff.ts +60 -0
  831. package/node_modules/exponential-backoff/src/delay/always/always.delay.spec.ts +65 -0
  832. package/node_modules/exponential-backoff/src/delay/always/always.delay.ts +3 -0
  833. package/node_modules/exponential-backoff/src/delay/delay.base.ts +34 -0
  834. package/node_modules/exponential-backoff/src/delay/delay.factory.ts +18 -0
  835. package/node_modules/exponential-backoff/src/delay/delay.interface.ts +4 -0
  836. package/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts +15 -0
  837. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.spec.ts +31 -0
  838. package/node_modules/exponential-backoff/src/jitter/full/full.jitter.ts +4 -0
  839. package/node_modules/exponential-backoff/src/jitter/jitter.factory.ts +16 -0
  840. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.spec.ts +9 -0
  841. package/node_modules/exponential-backoff/src/jitter/no/no.jitter.ts +3 -0
  842. package/node_modules/exponential-backoff/src/options.ts +76 -0
  843. package/node_modules/extend/package.json +40 -73
  844. package/node_modules/extsprintf/package.json +12 -42
  845. package/node_modules/fast-deep-equal/README.md +53 -15
  846. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  847. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  848. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  849. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  850. package/node_modules/fast-deep-equal/index.js +15 -24
  851. package/node_modules/fast-deep-equal/package.json +41 -66
  852. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  853. package/node_modules/fast-deep-equal/react.js +53 -0
  854. package/node_modules/fast-fifo/LICENSE +21 -0
  855. package/node_modules/fast-fifo/README.md +78 -0
  856. package/node_modules/fast-fifo/fixed-size.js +39 -0
  857. package/node_modules/fast-fifo/index.js +48 -0
  858. package/node_modules/fast-fifo/package.json +28 -0
  859. package/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +1 -0
  860. package/node_modules/fast-json-stable-stringify/.travis.yml +3 -3
  861. package/node_modules/fast-json-stable-stringify/LICENSE +3 -0
  862. package/node_modules/fast-json-stable-stringify/README.md +12 -0
  863. package/node_modules/fast-json-stable-stringify/index.d.ts +4 -0
  864. package/node_modules/fast-json-stable-stringify/package.json +23 -49
  865. package/node_modules/fdir/LICENSE +7 -0
  866. package/node_modules/fdir/README.md +91 -0
  867. package/node_modules/fdir/dist/index.cjs +588 -0
  868. package/node_modules/fdir/dist/index.d.cts +155 -0
  869. package/node_modules/fdir/dist/index.d.mts +155 -0
  870. package/node_modules/fdir/dist/index.mjs +570 -0
  871. package/node_modules/fdir/package.json +103 -0
  872. package/node_modules/forever-agent/package.json +10 -43
  873. package/node_modules/form-data/package.json +35 -68
  874. package/node_modules/fs-extra/LICENSE +1 -1
  875. package/node_modules/fs-extra/README.md +41 -8
  876. package/node_modules/fs-extra/lib/copy/copy-sync.js +176 -0
  877. package/node_modules/fs-extra/lib/copy/copy.js +130 -162
  878. package/node_modules/fs-extra/lib/copy/index.js +3 -2
  879. package/node_modules/fs-extra/lib/empty/index.js +11 -20
  880. package/node_modules/fs-extra/lib/ensure/file.js +42 -25
  881. package/node_modules/fs-extra/lib/ensure/index.js +15 -15
  882. package/node_modules/fs-extra/lib/ensure/link.js +36 -33
  883. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +59 -57
  884. package/node_modules/fs-extra/lib/ensure/symlink-type.js +17 -14
  885. package/node_modules/fs-extra/lib/ensure/symlink.js +71 -42
  886. package/node_modules/fs-extra/lib/esm.mjs +68 -0
  887. package/node_modules/fs-extra/lib/fs/index.js +52 -15
  888. package/node_modules/fs-extra/lib/index.js +11 -23
  889. package/node_modules/fs-extra/lib/json/index.js +1 -1
  890. package/node_modules/fs-extra/lib/json/jsonfile.js +2 -3
  891. package/node_modules/fs-extra/lib/json/output-json-sync.js +4 -10
  892. package/node_modules/fs-extra/lib/json/output-json.js +5 -20
  893. package/node_modules/fs-extra/lib/mkdirs/index.js +9 -9
  894. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  895. package/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  896. package/node_modules/fs-extra/lib/move/index.js +3 -2
  897. package/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  898. package/node_modules/fs-extra/lib/move/move.js +40 -46
  899. package/node_modules/fs-extra/lib/output-file/index.js +31 -0
  900. package/node_modules/fs-extra/lib/remove/index.js +11 -3
  901. package/node_modules/fs-extra/lib/util/async.js +29 -0
  902. package/node_modules/fs-extra/lib/util/stat.js +94 -107
  903. package/node_modules/fs-extra/lib/util/utimes.js +40 -66
  904. package/node_modules/fs-extra/package.json +37 -66
  905. package/node_modules/get-caller-file/package.json +22 -51
  906. package/node_modules/get-east-asian-width/index.d.ts +60 -0
  907. package/node_modules/get-east-asian-width/index.js +30 -0
  908. package/node_modules/get-east-asian-width/license +9 -0
  909. package/node_modules/get-east-asian-width/lookup-data.js +21 -0
  910. package/node_modules/get-east-asian-width/lookup.js +138 -0
  911. package/node_modules/get-east-asian-width/package.json +71 -0
  912. package/node_modules/get-east-asian-width/readme.md +65 -0
  913. package/node_modules/get-east-asian-width/utilities.js +24 -0
  914. package/node_modules/getpass/package.json +7 -39
  915. package/node_modules/global-directory/index.d.ts +58 -0
  916. package/node_modules/global-directory/index.js +121 -0
  917. package/node_modules/global-directory/license +9 -0
  918. package/node_modules/global-directory/node_modules/ini/README.md +125 -0
  919. package/node_modules/global-directory/node_modules/ini/lib/ini.js +278 -0
  920. package/node_modules/global-directory/node_modules/ini/package.json +45 -0
  921. package/node_modules/global-directory/package.json +61 -0
  922. package/node_modules/global-directory/readme.md +60 -0
  923. package/node_modules/graceful-fs/LICENSE +1 -1
  924. package/node_modules/graceful-fs/README.md +11 -1
  925. package/node_modules/graceful-fs/clone.js +5 -1
  926. package/node_modules/graceful-fs/graceful-fs.js +151 -49
  927. package/node_modules/graceful-fs/package.json +28 -73
  928. package/node_modules/graceful-fs/polyfills.js +48 -35
  929. package/node_modules/gunzip-maybe/index.js +1 -1
  930. package/node_modules/gunzip-maybe/package.json +23 -51
  931. package/node_modules/gunzip-maybe/test.js +14 -0
  932. package/node_modules/har-schema/package.json +34 -66
  933. package/node_modules/har-validator/README.md +22 -16
  934. package/node_modules/har-validator/package.json +26 -59
  935. package/node_modules/hosted-git-info/README.md +15 -10
  936. package/node_modules/hosted-git-info/lib/from-url.js +122 -0
  937. package/node_modules/hosted-git-info/lib/hosts.js +229 -0
  938. package/node_modules/hosted-git-info/lib/index.js +227 -0
  939. package/node_modules/hosted-git-info/lib/parse-url.js +79 -0
  940. package/node_modules/hosted-git-info/package.json +43 -58
  941. package/node_modules/http-signature/package.json +25 -63
  942. package/node_modules/inherits/package.json +12 -52
  943. package/node_modules/ini/ini.js +49 -37
  944. package/node_modules/ini/package.json +23 -55
  945. package/node_modules/is-deflate/package.json +19 -48
  946. package/node_modules/is-gzip/package.json +13 -45
  947. package/node_modules/is-in-ci/cli.js +5 -0
  948. package/node_modules/is-in-ci/index.d.ts +15 -0
  949. package/node_modules/is-in-ci/index.js +11 -0
  950. package/node_modules/is-in-ci/license +9 -0
  951. package/node_modules/is-in-ci/package.json +49 -0
  952. package/node_modules/is-in-ci/readme.md +44 -0
  953. package/node_modules/is-installed-globally/index.d.ts +19 -0
  954. package/node_modules/is-installed-globally/index.js +19 -4
  955. package/node_modules/is-installed-globally/license +1 -1
  956. package/node_modules/is-installed-globally/node_modules/is-path-inside/index.d.ts +25 -0
  957. package/node_modules/is-installed-globally/node_modules/is-path-inside/index.js +12 -0
  958. package/node_modules/is-installed-globally/node_modules/is-path-inside/license +9 -0
  959. package/node_modules/is-installed-globally/node_modules/is-path-inside/package.json +38 -0
  960. package/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md +59 -0
  961. package/node_modules/is-installed-globally/package.json +58 -78
  962. package/node_modules/is-installed-globally/readme.md +5 -13
  963. package/node_modules/is-npm/index.d.ts +82 -10
  964. package/node_modules/is-npm/index.js +9 -7
  965. package/node_modules/is-npm/license +1 -1
  966. package/node_modules/is-npm/package.json +44 -67
  967. package/node_modules/is-npm/readme.md +82 -13
  968. package/node_modules/is-typedarray/package.json +15 -46
  969. package/node_modules/isarray/package.json +16 -45
  970. package/node_modules/isexe/LICENSE.md +55 -0
  971. package/node_modules/isexe/README.md +52 -23
  972. package/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
  973. package/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
  974. package/node_modules/isexe/dist/commonjs/index.js +56 -0
  975. package/node_modules/isexe/dist/commonjs/index.js.map +1 -0
  976. package/node_modules/isexe/dist/commonjs/index.min.js +2 -0
  977. package/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
  978. package/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
  979. package/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
  980. package/node_modules/isexe/dist/commonjs/options.js +3 -0
  981. package/node_modules/isexe/dist/commonjs/options.js.map +1 -0
  982. package/node_modules/isexe/dist/commonjs/package.json +3 -0
  983. package/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
  984. package/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
  985. package/node_modules/isexe/dist/commonjs/posix.js +67 -0
  986. package/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
  987. package/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
  988. package/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
  989. package/node_modules/isexe/dist/commonjs/win32.js +63 -0
  990. package/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
  991. package/node_modules/isexe/dist/esm/index.d.ts +14 -0
  992. package/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
  993. package/node_modules/isexe/dist/esm/index.js +16 -0
  994. package/node_modules/isexe/dist/esm/index.js.map +1 -0
  995. package/node_modules/isexe/dist/esm/index.min.js +2 -0
  996. package/node_modules/isexe/dist/esm/index.min.js.map +7 -0
  997. package/node_modules/isexe/dist/esm/options.d.ts +32 -0
  998. package/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
  999. package/node_modules/isexe/dist/esm/options.js +2 -0
  1000. package/node_modules/isexe/dist/esm/options.js.map +1 -0
  1001. package/node_modules/isexe/dist/esm/package.json +3 -0
  1002. package/node_modules/isexe/dist/esm/posix.d.ts +18 -0
  1003. package/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
  1004. package/node_modules/isexe/dist/esm/posix.js +62 -0
  1005. package/node_modules/isexe/dist/esm/posix.js.map +1 -0
  1006. package/node_modules/isexe/dist/esm/win32.d.ts +18 -0
  1007. package/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
  1008. package/node_modules/isexe/dist/esm/win32.js +58 -0
  1009. package/node_modules/isexe/dist/esm/win32.js.map +1 -0
  1010. package/node_modules/isexe/package.json +68 -58
  1011. package/node_modules/isstream/package.json +20 -48
  1012. package/node_modules/jsbn/package.json +11 -43
  1013. package/node_modules/json-schema/LICENSE +195 -0
  1014. package/node_modules/json-schema/README.md +2 -4
  1015. package/node_modules/json-schema/lib/links.js +1 -2
  1016. package/node_modules/json-schema/lib/validate.js +7 -9
  1017. package/node_modules/json-schema/package.json +24 -71
  1018. package/node_modules/json-schema-traverse/package.json +20 -47
  1019. package/node_modules/json-stringify-safe/package.json +15 -51
  1020. package/node_modules/jsonfile/README.md +109 -47
  1021. package/node_modules/jsonfile/index.js +45 -91
  1022. package/node_modules/jsonfile/package.json +19 -50
  1023. package/node_modules/jsonfile/utils.js +18 -0
  1024. package/node_modules/jsprim/CHANGES.md +4 -0
  1025. package/node_modules/jsprim/package.json +18 -47
  1026. package/node_modules/ky/distribution/core/Ky.d.ts +8 -0
  1027. package/node_modules/ky/distribution/core/Ky.js +395 -0
  1028. package/node_modules/ky/distribution/core/Ky.js.map +1 -0
  1029. package/node_modules/ky/distribution/core/constants.d.ts +205 -0
  1030. package/node_modules/ky/distribution/core/constants.js +185 -0
  1031. package/node_modules/ky/distribution/core/constants.js.map +1 -0
  1032. package/node_modules/ky/distribution/errors/ForceRetryError.d.ts +12 -0
  1033. package/node_modules/ky/distribution/errors/ForceRetryError.js +23 -0
  1034. package/node_modules/ky/distribution/errors/ForceRetryError.js.map +1 -0
  1035. package/node_modules/ky/distribution/errors/HTTPError.d.ts +9 -0
  1036. package/node_modules/ky/distribution/errors/HTTPError.js +17 -0
  1037. package/node_modules/ky/distribution/errors/HTTPError.js.map +1 -0
  1038. package/node_modules/ky/distribution/errors/NonError.d.ts +10 -0
  1039. package/node_modules/ky/distribution/errors/NonError.js +27 -0
  1040. package/node_modules/ky/distribution/errors/NonError.js.map +1 -0
  1041. package/node_modules/ky/distribution/errors/TimeoutError.d.ts +5 -0
  1042. package/node_modules/ky/distribution/errors/TimeoutError.js +9 -0
  1043. package/node_modules/ky/distribution/errors/TimeoutError.js.map +1 -0
  1044. package/node_modules/ky/distribution/index.d.ts +14 -0
  1045. package/node_modules/ky/distribution/index.js +31 -0
  1046. package/node_modules/ky/distribution/index.js.map +1 -0
  1047. package/node_modules/ky/distribution/types/ResponsePromise.d.ts +40 -0
  1048. package/node_modules/ky/distribution/types/ResponsePromise.js +2 -0
  1049. package/node_modules/ky/distribution/types/ResponsePromise.js.map +1 -0
  1050. package/node_modules/ky/distribution/types/common.d.ts +7 -0
  1051. package/node_modules/ky/distribution/types/common.js +2 -0
  1052. package/node_modules/ky/distribution/types/common.js.map +1 -0
  1053. package/node_modules/ky/distribution/types/hooks.d.ts +247 -0
  1054. package/node_modules/ky/distribution/types/hooks.js +2 -0
  1055. package/node_modules/ky/distribution/types/hooks.js.map +1 -0
  1056. package/node_modules/ky/distribution/types/ky.d.ts +175 -0
  1057. package/node_modules/ky/distribution/types/ky.js +2 -0
  1058. package/node_modules/ky/distribution/types/ky.js.map +1 -0
  1059. package/node_modules/ky/distribution/types/options.d.ts +352 -0
  1060. package/node_modules/ky/distribution/types/options.js +2 -0
  1061. package/node_modules/ky/distribution/types/options.js.map +1 -0
  1062. package/node_modules/ky/distribution/types/request.d.ts +3 -0
  1063. package/node_modules/ky/distribution/types/request.js +2 -0
  1064. package/node_modules/ky/distribution/types/request.js.map +1 -0
  1065. package/node_modules/ky/distribution/types/response.d.ts +3 -0
  1066. package/node_modules/ky/distribution/types/response.js +2 -0
  1067. package/node_modules/ky/distribution/types/response.js.map +1 -0
  1068. package/node_modules/ky/distribution/types/retry.d.ts +159 -0
  1069. package/node_modules/ky/distribution/types/retry.js +2 -0
  1070. package/node_modules/ky/distribution/types/retry.js.map +1 -0
  1071. package/node_modules/ky/distribution/utils/body.d.ts +4 -0
  1072. package/node_modules/ky/distribution/utils/body.js +103 -0
  1073. package/node_modules/ky/distribution/utils/body.js.map +1 -0
  1074. package/node_modules/ky/distribution/utils/delay.d.ts +5 -0
  1075. package/node_modules/ky/distribution/utils/delay.js +18 -0
  1076. package/node_modules/ky/distribution/utils/delay.js.map +1 -0
  1077. package/node_modules/ky/distribution/utils/is.d.ts +1 -0
  1078. package/node_modules/ky/distribution/utils/is.js +3 -0
  1079. package/node_modules/ky/distribution/utils/is.js.map +1 -0
  1080. package/node_modules/ky/distribution/utils/merge.d.ts +6 -0
  1081. package/node_modules/ky/distribution/utils/merge.js +154 -0
  1082. package/node_modules/ky/distribution/utils/merge.js.map +1 -0
  1083. package/node_modules/ky/distribution/utils/normalize.d.ts +5 -0
  1084. package/node_modules/ky/distribution/utils/normalize.js +37 -0
  1085. package/node_modules/ky/distribution/utils/normalize.js.map +1 -0
  1086. package/node_modules/ky/distribution/utils/options.d.ts +3 -0
  1087. package/node_modules/ky/distribution/utils/options.js +41 -0
  1088. package/node_modules/ky/distribution/utils/options.js.map +1 -0
  1089. package/node_modules/ky/distribution/utils/timeout.d.ts +5 -0
  1090. package/node_modules/ky/distribution/utils/timeout.js +20 -0
  1091. package/node_modules/ky/distribution/utils/timeout.js.map +1 -0
  1092. package/node_modules/ky/distribution/utils/type-guards.d.ts +88 -0
  1093. package/node_modules/ky/distribution/utils/type-guards.js +97 -0
  1094. package/node_modules/ky/distribution/utils/type-guards.js.map +1 -0
  1095. package/node_modules/ky/distribution/utils/types.d.ts +6 -0
  1096. package/node_modules/ky/distribution/utils/types.js +2 -0
  1097. package/node_modules/ky/distribution/utils/types.js.map +1 -0
  1098. package/node_modules/ky/license +9 -0
  1099. package/node_modules/ky/package.json +116 -0
  1100. package/node_modules/ky/readme.md +1356 -0
  1101. package/node_modules/latest-version/index.d.ts +18 -35
  1102. package/node_modules/latest-version/index.js +5 -8
  1103. package/node_modules/latest-version/license +1 -1
  1104. package/node_modules/latest-version/package.json +47 -72
  1105. package/node_modules/latest-version/readme.md +12 -20
  1106. package/node_modules/lru-cache/LICENSE.md +55 -0
  1107. package/node_modules/lru-cache/README.md +420 -117
  1108. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  1109. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  1110. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  1111. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  1112. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  1113. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  1114. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  1115. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  1116. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  1117. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  1118. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  1119. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  1120. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  1121. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  1122. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  1123. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  1124. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  1125. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  1126. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  1127. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  1128. package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  1129. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  1130. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  1131. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  1132. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  1133. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  1134. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  1135. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  1136. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  1137. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  1138. package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  1139. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  1140. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  1141. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  1142. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  1143. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  1144. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  1145. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  1146. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  1147. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  1148. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  1149. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  1150. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  1151. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  1152. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  1153. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  1154. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  1155. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  1156. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  1157. package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  1158. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  1159. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  1160. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  1161. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  1162. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  1163. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  1164. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  1165. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  1166. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  1167. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  1168. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  1169. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  1170. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  1171. package/node_modules/lru-cache/dist/esm/index.js +1722 -0
  1172. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  1173. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  1174. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  1175. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  1176. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  1177. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  1178. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  1179. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  1180. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  1181. package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  1182. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  1183. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  1184. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  1185. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  1186. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  1187. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  1188. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  1189. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  1190. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  1191. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  1192. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  1193. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  1194. package/node_modules/lru-cache/package.json +141 -54
  1195. package/node_modules/mime-db/HISTORY.md +76 -0
  1196. package/node_modules/mime-db/LICENSE +19 -18
  1197. package/node_modules/mime-db/README.md +9 -9
  1198. package/node_modules/mime-db/db.json +608 -58
  1199. package/node_modules/mime-db/index.js +1 -0
  1200. package/node_modules/mime-db/package.json +34 -75
  1201. package/node_modules/mime-types/HISTORY.md +83 -2
  1202. package/node_modules/mime-types/README.md +8 -8
  1203. package/node_modules/mime-types/package.json +27 -70
  1204. package/node_modules/minimist/.eslintrc +29 -0
  1205. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  1206. package/node_modules/minimist/.nycrc +14 -0
  1207. package/node_modules/minimist/CHANGELOG.md +298 -0
  1208. package/node_modules/minimist/README.md +121 -0
  1209. package/node_modules/minimist/example/parse.js +3 -1
  1210. package/node_modules/minimist/index.js +255 -179
  1211. package/node_modules/minimist/package.json +73 -70
  1212. package/node_modules/minimist/test/all_bool.js +34 -0
  1213. package/node_modules/minimist/test/bool.js +177 -0
  1214. package/node_modules/minimist/test/dash.js +35 -16
  1215. package/node_modules/minimist/test/default_bool.js +29 -12
  1216. package/node_modules/minimist/test/dotted.js +16 -8
  1217. package/node_modules/minimist/test/kv_short.js +32 -0
  1218. package/node_modules/minimist/test/long.js +28 -26
  1219. package/node_modules/minimist/test/num.js +38 -0
  1220. package/node_modules/minimist/test/parse.js +166 -275
  1221. package/node_modules/minimist/test/parse_modified.js +7 -5
  1222. package/node_modules/minimist/test/proto.js +64 -0
  1223. package/node_modules/minimist/test/short.js +57 -55
  1224. package/node_modules/minimist/test/stop_early.js +17 -0
  1225. package/node_modules/minimist/test/unknown.js +104 -0
  1226. package/node_modules/minimist/test/whitespace.js +6 -4
  1227. package/node_modules/minipass/LICENSE.md +55 -0
  1228. package/node_modules/minipass/README.md +470 -251
  1229. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  1230. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  1231. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  1232. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  1233. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  1234. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  1235. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  1236. package/node_modules/minipass/dist/esm/index.js +1020 -0
  1237. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  1238. package/node_modules/minipass/dist/esm/package.json +3 -0
  1239. package/node_modules/minipass/package.json +64 -59
  1240. package/node_modules/minizlib/LICENSE +3 -3
  1241. package/node_modules/minizlib/README.md +14 -3
  1242. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  1243. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  1244. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  1245. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  1246. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  1247. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  1248. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  1249. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  1250. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  1251. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  1252. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  1253. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  1254. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  1255. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  1256. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  1257. package/node_modules/minizlib/dist/esm/index.js +363 -0
  1258. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  1259. package/node_modules/minizlib/dist/esm/package.json +3 -0
  1260. package/node_modules/minizlib/package.json +62 -53
  1261. package/node_modules/node-gyp/.release-please-manifest.json +3 -0
  1262. package/node_modules/node-gyp/CHANGELOG.md +958 -63
  1263. package/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
  1264. package/node_modules/node-gyp/CONTRIBUTING.md +11 -1
  1265. package/node_modules/node-gyp/README.md +99 -47
  1266. package/node_modules/node-gyp/SECURITY.md +2 -0
  1267. package/node_modules/node-gyp/addon.gypi +55 -15
  1268. package/node_modules/node-gyp/bin/node-gyp.js +36 -32
  1269. package/node_modules/node-gyp/commitlint.config.mjs +3 -0
  1270. package/node_modules/node-gyp/eslint.config.js +3 -0
  1271. package/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
  1272. package/node_modules/node-gyp/gyp/LICENSE +1 -0
  1273. package/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
  1274. package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +116 -0
  1275. package/node_modules/node-gyp/gyp/docs/Hacking.md +46 -0
  1276. package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +1083 -0
  1277. package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +430 -0
  1278. package/node_modules/node-gyp/gyp/docs/README.md +27 -0
  1279. package/node_modules/node-gyp/gyp/docs/Testing.md +450 -0
  1280. package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +965 -0
  1281. package/node_modules/node-gyp/gyp/gyp.bat +0 -0
  1282. package/node_modules/node-gyp/gyp/gyp_main.py +25 -30
  1283. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +326 -299
  1284. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +200 -202
  1285. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1022 -843
  1286. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1513 -1455
  1287. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +53 -52
  1288. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +136 -131
  1289. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +232 -232
  1290. package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -422
  1291. package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +657 -508
  1292. package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/__init__.cpython-312.pyc +0 -0
  1293. package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/common.cpython-312.pyc +0 -0
  1294. package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/input.cpython-312.pyc +0 -0
  1295. package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/simple_copy.cpython-312.pyc +0 -0
  1296. package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/xcode_emulation.cpython-312.pyc +0 -0
  1297. package/node_modules/node-gyp/gyp/pylib/gyp/common.py +556 -465
  1298. package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +163 -49
  1299. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +142 -135
  1300. package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +100 -93
  1301. package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +40 -39
  1302. package/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/__init__.cpython-312.pyc +0 -0
  1303. package/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/make.cpython-312.pyc +0 -0
  1304. package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +654 -592
  1305. package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1076 -1004
  1306. package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1184 -1094
  1307. package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +96 -83
  1308. package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +82 -78
  1309. package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +404 -374
  1310. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +35 -41
  1311. package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +27 -28
  1312. package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2242 -1752
  1313. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3608 -3168
  1314. package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +34 -30
  1315. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2833 -2302
  1316. package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -36
  1317. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1293 -1205
  1318. package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +14 -11
  1319. package/node_modules/node-gyp/gyp/pylib/gyp/input.py +2840 -2645
  1320. package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +88 -79
  1321. package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +739 -588
  1322. package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1181 -1030
  1323. package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +69 -55
  1324. package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +31 -20
  1325. package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +348 -304
  1326. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1837 -1561
  1327. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
  1328. package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +274 -243
  1329. package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2827 -2569
  1330. package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +39 -44
  1331. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
  1332. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
  1333. package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
  1334. package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
  1335. package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
  1336. package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
  1337. package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/version.cpython-312.pyc +0 -0
  1338. package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
  1339. package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
  1340. package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
  1341. package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
  1342. package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
  1343. package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
  1344. package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
  1345. package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
  1346. package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
  1347. package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
  1348. package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
  1349. package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
  1350. package/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
  1351. package/node_modules/node-gyp/gyp/pyproject.toml +116 -0
  1352. package/node_modules/node-gyp/gyp/release-please-config.json +11 -0
  1353. package/node_modules/node-gyp/gyp/test_gyp.py +260 -0
  1354. package/node_modules/node-gyp/lib/Find-VisualStudio.cs +8 -1
  1355. package/node_modules/node-gyp/lib/build.js +122 -96
  1356. package/node_modules/node-gyp/lib/clean.js +5 -5
  1357. package/node_modules/node-gyp/lib/configure.js +211 -269
  1358. package/node_modules/node-gyp/lib/create-config-gypi.js +158 -0
  1359. package/node_modules/node-gyp/lib/download.js +86 -0
  1360. package/node_modules/node-gyp/lib/find-node-directory.js +5 -5
  1361. package/node_modules/node-gyp/lib/find-python.js +158 -175
  1362. package/node_modules/node-gyp/lib/find-visualstudio.js +315 -143
  1363. package/node_modules/node-gyp/lib/install.js +288 -327
  1364. package/node_modules/node-gyp/lib/list.js +14 -15
  1365. package/node_modules/node-gyp/lib/log.js +168 -0
  1366. package/node_modules/node-gyp/lib/node-gyp.js +156 -166
  1367. package/node_modules/node-gyp/lib/process-release.js +35 -38
  1368. package/node_modules/node-gyp/lib/rebuild.js +1 -2
  1369. package/node_modules/node-gyp/lib/remove.js +18 -21
  1370. package/node_modules/node-gyp/lib/util.js +62 -45
  1371. package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
  1372. package/node_modules/node-gyp/package.json +37 -71
  1373. package/node_modules/node-gyp/release-please-config.json +40 -0
  1374. package/node_modules/node-gyp/src/win_delay_load_hook.cc +3 -1
  1375. package/node_modules/nopt/README.md +7 -8
  1376. package/node_modules/nopt/bin/nopt.js +28 -53
  1377. package/node_modules/nopt/lib/nopt-lib.js +478 -0
  1378. package/node_modules/nopt/lib/nopt.js +23 -427
  1379. package/node_modules/nopt/lib/type-defs.js +86 -0
  1380. package/node_modules/nopt/package.json +40 -48
  1381. package/node_modules/npm-package-arg/LICENSE +1 -1
  1382. package/node_modules/npm-package-arg/README.md +30 -9
  1383. package/node_modules/npm-package-arg/lib/npa.js +479 -0
  1384. package/node_modules/npm-package-arg/package.json +46 -59
  1385. package/node_modules/npm-path/bin/npm-path +0 -0
  1386. package/node_modules/npm-path/node_modules/isexe/README.md +51 -0
  1387. package/node_modules/npm-path/node_modules/isexe/package.json +31 -0
  1388. package/node_modules/npm-path/node_modules/which/package.json +16 -51
  1389. package/node_modules/npm-path/package.json +25 -54
  1390. package/node_modules/oauth-sign/package.json +12 -45
  1391. package/node_modules/once/package.json +14 -54
  1392. package/node_modules/package-json/index.d.ts +266 -162
  1393. package/node_modules/package-json/index.js +31 -54
  1394. package/node_modules/package-json/license +1 -1
  1395. package/node_modules/package-json/package.json +51 -76
  1396. package/node_modules/package-json/readme.md +25 -37
  1397. package/node_modules/pako/package.json +27 -64
  1398. package/node_modules/peek-stream/package.json +15 -42
  1399. package/node_modules/performance-now/package.json +16 -46
  1400. package/node_modules/picomatch/LICENSE +21 -0
  1401. package/node_modules/picomatch/README.md +749 -0
  1402. package/node_modules/picomatch/index.js +17 -0
  1403. package/node_modules/picomatch/lib/constants.js +184 -0
  1404. package/node_modules/picomatch/lib/parse.js +1386 -0
  1405. package/node_modules/picomatch/lib/picomatch.js +349 -0
  1406. package/node_modules/picomatch/lib/scan.js +391 -0
  1407. package/node_modules/picomatch/lib/utils.js +72 -0
  1408. package/node_modules/picomatch/package.json +82 -0
  1409. package/node_modules/picomatch/posix.js +3 -0
  1410. package/node_modules/proc-log/LICENSE +15 -0
  1411. package/node_modules/proc-log/README.md +226 -0
  1412. package/node_modules/proc-log/lib/index.js +158 -0
  1413. package/node_modules/proc-log/package.json +46 -0
  1414. package/node_modules/process-nextick-args/package.json +15 -40
  1415. package/node_modules/promise-each/package.json +15 -47
  1416. package/node_modules/proto-list/README.md +3 -0
  1417. package/node_modules/proto-list/package.json +18 -0
  1418. package/node_modules/proto-list/proto-list.js +88 -0
  1419. package/node_modules/proto-list/test/basic.js +61 -0
  1420. package/node_modules/psl/README.md +79 -34
  1421. package/node_modules/psl/SECURITY.md +13 -0
  1422. package/node_modules/psl/data/rules.js +9778 -0
  1423. package/node_modules/psl/dist/psl.cjs +1 -0
  1424. package/node_modules/psl/dist/psl.mjs +10008 -0
  1425. package/node_modules/psl/dist/psl.umd.cjs +1 -0
  1426. package/node_modules/psl/index.js +60 -82
  1427. package/node_modules/psl/package.json +40 -66
  1428. package/node_modules/psl/types/index.d.ts +52 -0
  1429. package/node_modules/psl/types/test.ts +14 -0
  1430. package/node_modules/psl/types/tsconfig.json +22 -0
  1431. package/node_modules/psl/vite.config.js +20 -0
  1432. package/node_modules/pump/package.json +10 -45
  1433. package/node_modules/pumpify/package.json +15 -42
  1434. package/node_modules/punycode/README.md +29 -3
  1435. package/node_modules/punycode/package.json +32 -59
  1436. package/node_modules/punycode/punycode.es6.js +25 -22
  1437. package/node_modules/punycode/punycode.js +25 -22
  1438. package/node_modules/pupa/index.d.ts +98 -0
  1439. package/node_modules/pupa/index.js +119 -0
  1440. package/node_modules/pupa/license +9 -0
  1441. package/node_modules/pupa/package.json +52 -0
  1442. package/node_modules/pupa/readme.md +135 -0
  1443. package/node_modules/qs/.editorconfig +14 -1
  1444. package/node_modules/qs/.eslintrc +21 -3
  1445. package/node_modules/qs/.github/FUNDING.yml +12 -0
  1446. package/node_modules/qs/.nycrc +13 -0
  1447. package/node_modules/qs/CHANGELOG.md +36 -0
  1448. package/node_modules/qs/LICENSE.md +29 -0
  1449. package/node_modules/qs/README.md +62 -21
  1450. package/node_modules/qs/dist/qs.js +45 -35
  1451. package/node_modules/qs/lib/formats.js +1 -1
  1452. package/node_modules/qs/lib/parse.js +10 -9
  1453. package/node_modules/qs/lib/stringify.js +21 -14
  1454. package/node_modules/qs/lib/utils.js +13 -11
  1455. package/node_modules/qs/package.json +59 -76
  1456. package/node_modules/qs/test/parse.js +88 -4
  1457. package/node_modules/qs/test/stringify.js +51 -0
  1458. package/node_modules/qs/test/utils.js +31 -0
  1459. package/node_modules/rc/node_modules/strip-json-comments/package.json +42 -0
  1460. package/node_modules/rc/package.json +18 -54
  1461. package/node_modules/readable-stream/.travis.yml +9 -30
  1462. package/node_modules/readable-stream/README.md +2 -2
  1463. package/node_modules/readable-stream/lib/_stream_duplex.js +1 -1
  1464. package/node_modules/readable-stream/lib/_stream_passthrough.js +1 -1
  1465. package/node_modules/readable-stream/lib/_stream_readable.js +5 -5
  1466. package/node_modules/readable-stream/lib/_stream_transform.js +1 -1
  1467. package/node_modules/readable-stream/lib/_stream_writable.js +7 -9
  1468. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -1
  1469. package/node_modules/readable-stream/lib/internal/streams/destroy.js +14 -4
  1470. package/node_modules/readable-stream/package.json +22 -57
  1471. package/node_modules/registry-auth-token/CHANGELOG.md +66 -3
  1472. package/node_modules/registry-auth-token/README.md +14 -8
  1473. package/node_modules/registry-auth-token/index.d.ts +67 -0
  1474. package/node_modules/registry-auth-token/index.js +64 -30
  1475. package/node_modules/registry-auth-token/package.json +25 -54
  1476. package/node_modules/registry-auth-token/registry-url.d.ts +15 -0
  1477. package/node_modules/registry-auth-token/registry-url.js +5 -3
  1478. package/node_modules/registry-url/index.d.ts +17 -27
  1479. package/node_modules/registry-url/index.js +3 -8
  1480. package/node_modules/registry-url/license +1 -1
  1481. package/node_modules/registry-url/package.json +44 -74
  1482. package/node_modules/registry-url/readme.md +14 -9
  1483. package/node_modules/request/CHANGELOG.md +8 -0
  1484. package/node_modules/request/README.md +81 -45
  1485. package/node_modules/request/index.js +1 -1
  1486. package/node_modules/request/lib/auth.js +1 -1
  1487. package/node_modules/request/lib/getProxyFromURI.js +1 -1
  1488. package/node_modules/request/lib/har.js +1 -1
  1489. package/node_modules/request/package.json +33 -64
  1490. package/node_modules/request/request.js +13 -11
  1491. package/node_modules/safe-buffer/package.json +5 -38
  1492. package/node_modules/safer-buffer/package.json +13 -42
  1493. package/node_modules/semver/README.md +298 -61
  1494. package/node_modules/semver/bin/semver.js +119 -98
  1495. package/node_modules/semver/classes/comparator.js +143 -0
  1496. package/node_modules/semver/classes/index.js +7 -0
  1497. package/node_modules/semver/classes/range.js +577 -0
  1498. package/node_modules/semver/classes/semver.js +350 -0
  1499. package/node_modules/semver/functions/clean.js +8 -0
  1500. package/node_modules/semver/functions/cmp.js +54 -0
  1501. package/node_modules/semver/functions/coerce.js +62 -0
  1502. package/node_modules/semver/functions/compare-build.js +9 -0
  1503. package/node_modules/semver/functions/compare-loose.js +5 -0
  1504. package/node_modules/semver/functions/compare.js +7 -0
  1505. package/node_modules/semver/functions/diff.js +60 -0
  1506. package/node_modules/semver/functions/eq.js +5 -0
  1507. package/node_modules/semver/functions/gt.js +5 -0
  1508. package/node_modules/semver/functions/gte.js +5 -0
  1509. package/node_modules/semver/functions/inc.js +21 -0
  1510. package/node_modules/semver/functions/lt.js +5 -0
  1511. package/node_modules/semver/functions/lte.js +5 -0
  1512. package/node_modules/semver/functions/major.js +5 -0
  1513. package/node_modules/semver/functions/minor.js +5 -0
  1514. package/node_modules/semver/functions/neq.js +5 -0
  1515. package/node_modules/semver/functions/parse.js +18 -0
  1516. package/node_modules/semver/functions/patch.js +5 -0
  1517. package/node_modules/semver/functions/prerelease.js +8 -0
  1518. package/node_modules/semver/functions/rcompare.js +5 -0
  1519. package/node_modules/semver/functions/rsort.js +5 -0
  1520. package/node_modules/semver/functions/satisfies.js +12 -0
  1521. package/node_modules/semver/functions/sort.js +5 -0
  1522. package/node_modules/semver/functions/truncate.js +48 -0
  1523. package/node_modules/semver/functions/valid.js +8 -0
  1524. package/node_modules/semver/index.js +93 -0
  1525. package/node_modules/semver/internal/constants.js +37 -0
  1526. package/node_modules/semver/internal/debug.js +11 -0
  1527. package/node_modules/semver/internal/identifiers.js +29 -0
  1528. package/node_modules/semver/internal/lrucache.js +42 -0
  1529. package/node_modules/semver/internal/parse-options.js +17 -0
  1530. package/node_modules/semver/internal/re.js +223 -0
  1531. package/node_modules/semver/package.json +65 -55
  1532. package/node_modules/semver/preload.js +4 -0
  1533. package/node_modules/semver/range.bnf +5 -4
  1534. package/node_modules/semver/ranges/gtr.js +6 -0
  1535. package/node_modules/semver/ranges/intersects.js +9 -0
  1536. package/node_modules/semver/ranges/ltr.js +6 -0
  1537. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  1538. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  1539. package/node_modules/semver/ranges/min-version.js +63 -0
  1540. package/node_modules/semver/ranges/outside.js +82 -0
  1541. package/node_modules/semver/ranges/simplify.js +49 -0
  1542. package/node_modules/semver/ranges/subset.js +249 -0
  1543. package/node_modules/semver/ranges/to-comparators.js +10 -0
  1544. package/node_modules/semver/ranges/valid.js +13 -0
  1545. package/node_modules/sshpk/Jenkinsfile +86 -0
  1546. package/node_modules/sshpk/bin/sshpk-conv +6 -6
  1547. package/node_modules/sshpk/lib/formats/pkcs8.js +24 -12
  1548. package/node_modules/sshpk/lib/formats/putty.js +99 -4
  1549. package/node_modules/sshpk/lib/private-key.js +1 -0
  1550. package/node_modules/sshpk/package.json +30 -67
  1551. package/node_modules/stream-shift/.github/workflows/test.yml +23 -0
  1552. package/node_modules/stream-shift/index.js +4 -3
  1553. package/node_modules/stream-shift/package.json +13 -41
  1554. package/node_modules/stream-shift/test.js +4 -4
  1555. package/node_modules/streamx/LICENSE +21 -0
  1556. package/node_modules/streamx/README.md +550 -0
  1557. package/node_modules/streamx/index.d.ts +198 -0
  1558. package/node_modules/streamx/index.js +1314 -0
  1559. package/node_modules/streamx/lib/errors.d.ts +13 -0
  1560. package/node_modules/streamx/lib/errors.js +47 -0
  1561. package/node_modules/streamx/package.json +51 -0
  1562. package/node_modules/streamx/runtime.d.ts +55 -0
  1563. package/node_modules/string-width/index.d.ts +39 -0
  1564. package/node_modules/string-width/index.js +66 -21
  1565. package/node_modules/string-width/license +5 -17
  1566. package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +33 -0
  1567. package/node_modules/string-width/node_modules/ansi-regex/index.js +14 -0
  1568. package/node_modules/string-width/node_modules/ansi-regex/license +9 -0
  1569. package/node_modules/string-width/node_modules/ansi-regex/package.json +61 -0
  1570. package/node_modules/string-width/node_modules/ansi-regex/readme.md +66 -0
  1571. package/node_modules/string-width/node_modules/strip-ansi/index.js +19 -0
  1572. package/node_modules/string-width/node_modules/strip-ansi/license +9 -0
  1573. package/node_modules/string-width/node_modules/strip-ansi/package.json +59 -0
  1574. package/node_modules/string-width/node_modules/strip-ansi/readme.md +37 -0
  1575. package/node_modules/string-width/package.json +62 -87
  1576. package/node_modules/string-width/readme.md +40 -16
  1577. package/node_modules/string_decoder/package.json +13 -44
  1578. package/node_modules/strip-ansi/index.js +2 -4
  1579. package/node_modules/strip-ansi/license +4 -16
  1580. package/node_modules/strip-ansi/package.json +52 -103
  1581. package/node_modules/strip-ansi/readme.md +20 -7
  1582. package/node_modules/stubborn-fs/dist/constants.d.ts +11 -0
  1583. package/node_modules/stubborn-fs/dist/constants.js +16 -0
  1584. package/node_modules/stubborn-fs/dist/handlers.d.ts +7 -0
  1585. package/node_modules/stubborn-fs/dist/handlers.js +36 -0
  1586. package/node_modules/stubborn-fs/dist/index.d.ts +274 -0
  1587. package/node_modules/stubborn-fs/dist/index.js +52 -0
  1588. package/node_modules/stubborn-fs/license +21 -0
  1589. package/node_modules/stubborn-fs/package.json +32 -0
  1590. package/node_modules/stubborn-fs/readme.md +69 -0
  1591. package/node_modules/stubborn-utils/dist/attemptify_async.d.ts +3 -0
  1592. package/node_modules/stubborn-utils/dist/attemptify_async.js +10 -0
  1593. package/node_modules/stubborn-utils/dist/attemptify_sync.d.ts +3 -0
  1594. package/node_modules/stubborn-utils/dist/attemptify_sync.js +15 -0
  1595. package/node_modules/stubborn-utils/dist/constants.d.ts +2 -0
  1596. package/node_modules/stubborn-utils/dist/constants.js +4 -0
  1597. package/node_modules/stubborn-utils/dist/index.d.ts +9 -0
  1598. package/node_modules/stubborn-utils/dist/index.js +7 -0
  1599. package/node_modules/stubborn-utils/dist/retryify_async.d.ts +3 -0
  1600. package/node_modules/stubborn-utils/dist/retryify_async.js +29 -0
  1601. package/node_modules/stubborn-utils/dist/retryify_sync.d.ts +3 -0
  1602. package/node_modules/stubborn-utils/dist/retryify_sync.js +25 -0
  1603. package/node_modules/stubborn-utils/dist/types.d.ts +44 -0
  1604. package/node_modules/stubborn-utils/dist/types.js +2 -0
  1605. package/node_modules/stubborn-utils/license +21 -0
  1606. package/node_modules/stubborn-utils/package.json +30 -0
  1607. package/node_modules/stubborn-utils/readme.md +139 -0
  1608. package/node_modules/tar/LICENSE.md +55 -0
  1609. package/node_modules/tar/README.md +506 -236
  1610. package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
  1611. package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  1612. package/node_modules/tar/dist/commonjs/create.js +82 -0
  1613. package/node_modules/tar/dist/commonjs/create.js.map +1 -0
  1614. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
  1615. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  1616. package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  1617. package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  1618. package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
  1619. package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  1620. package/node_modules/tar/dist/commonjs/extract.js +88 -0
  1621. package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  1622. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
  1623. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  1624. package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  1625. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  1626. package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
  1627. package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  1628. package/node_modules/tar/dist/commonjs/header.js +347 -0
  1629. package/node_modules/tar/dist/commonjs/header.js.map +1 -0
  1630. package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
  1631. package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  1632. package/node_modules/tar/dist/commonjs/index.js +64 -0
  1633. package/node_modules/tar/dist/commonjs/index.js.map +1 -0
  1634. package/node_modules/tar/dist/commonjs/index.min.js +4 -0
  1635. package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  1636. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
  1637. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  1638. package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  1639. package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  1640. package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
  1641. package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  1642. package/node_modules/tar/dist/commonjs/list.js +145 -0
  1643. package/node_modules/tar/dist/commonjs/list.js.map +1 -0
  1644. package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
  1645. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  1646. package/node_modules/tar/dist/commonjs/make-command.js +52 -0
  1647. package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  1648. package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
  1649. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  1650. package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  1651. package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  1652. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
  1653. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  1654. package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  1655. package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  1656. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
  1657. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  1658. package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  1659. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  1660. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
  1661. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  1662. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  1663. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  1664. package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
  1665. package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  1666. package/node_modules/tar/dist/commonjs/options.js +66 -0
  1667. package/node_modules/tar/dist/commonjs/options.js.map +1 -0
  1668. package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
  1669. package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  1670. package/node_modules/tar/dist/commonjs/pack.js +544 -0
  1671. package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  1672. package/node_modules/tar/dist/commonjs/package.json +3 -0
  1673. package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
  1674. package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  1675. package/node_modules/tar/dist/commonjs/parse.js +610 -0
  1676. package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  1677. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
  1678. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  1679. package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  1680. package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  1681. package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
  1682. package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  1683. package/node_modules/tar/dist/commonjs/pax.js +158 -0
  1684. package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  1685. package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
  1686. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  1687. package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  1688. package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  1689. package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
  1690. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  1691. package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  1692. package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  1693. package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
  1694. package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  1695. package/node_modules/tar/dist/commonjs/replace.js +227 -0
  1696. package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  1697. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
  1698. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  1699. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  1700. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  1701. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
  1702. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  1703. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  1704. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  1705. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
  1706. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  1707. package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  1708. package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  1709. package/node_modules/tar/dist/commonjs/types.d.ts +16 -0
  1710. package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  1711. package/node_modules/tar/dist/commonjs/types.js +70 -0
  1712. package/node_modules/tar/dist/commonjs/types.js.map +1 -0
  1713. package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
  1714. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  1715. package/node_modules/tar/dist/commonjs/unpack.js +932 -0
  1716. package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  1717. package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
  1718. package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  1719. package/node_modules/tar/dist/commonjs/update.js +33 -0
  1720. package/node_modules/tar/dist/commonjs/update.js.map +1 -0
  1721. package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
  1722. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  1723. package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  1724. package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  1725. package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
  1726. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  1727. package/node_modules/tar/dist/commonjs/winchars.js +14 -0
  1728. package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  1729. package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
  1730. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  1731. package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  1732. package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  1733. package/node_modules/tar/dist/esm/create.d.ts +3 -0
  1734. package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  1735. package/node_modules/tar/dist/esm/create.js +76 -0
  1736. package/node_modules/tar/dist/esm/create.js.map +1 -0
  1737. package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
  1738. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  1739. package/node_modules/tar/dist/esm/cwd-error.js +14 -0
  1740. package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  1741. package/node_modules/tar/dist/esm/extract.d.ts +3 -0
  1742. package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  1743. package/node_modules/tar/dist/esm/extract.js +49 -0
  1744. package/node_modules/tar/dist/esm/extract.js.map +1 -0
  1745. package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
  1746. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  1747. package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  1748. package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  1749. package/node_modules/tar/dist/esm/header.d.ts +53 -0
  1750. package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  1751. package/node_modules/tar/dist/esm/header.js +310 -0
  1752. package/node_modules/tar/dist/esm/header.js.map +1 -0
  1753. package/node_modules/tar/dist/esm/index.d.ts +20 -0
  1754. package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  1755. package/node_modules/tar/dist/esm/index.js +20 -0
  1756. package/node_modules/tar/dist/esm/index.js.map +1 -0
  1757. package/node_modules/tar/dist/esm/index.min.js +4 -0
  1758. package/node_modules/tar/dist/esm/index.min.js.map +7 -0
  1759. package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
  1760. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  1761. package/node_modules/tar/dist/esm/large-numbers.js +94 -0
  1762. package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  1763. package/node_modules/tar/dist/esm/list.d.ts +7 -0
  1764. package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  1765. package/node_modules/tar/dist/esm/list.js +105 -0
  1766. package/node_modules/tar/dist/esm/list.js.map +1 -0
  1767. package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
  1768. package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  1769. package/node_modules/tar/dist/esm/make-command.js +48 -0
  1770. package/node_modules/tar/dist/esm/make-command.js.map +1 -0
  1771. package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
  1772. package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  1773. package/node_modules/tar/dist/esm/mkdir.js +179 -0
  1774. package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  1775. package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
  1776. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  1777. package/node_modules/tar/dist/esm/mode-fix.js +25 -0
  1778. package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  1779. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
  1780. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  1781. package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  1782. package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  1783. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
  1784. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  1785. package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  1786. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  1787. package/node_modules/tar/dist/esm/options.d.ts +596 -0
  1788. package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  1789. package/node_modules/tar/dist/esm/options.js +54 -0
  1790. package/node_modules/tar/dist/esm/options.js.map +1 -0
  1791. package/node_modules/tar/dist/esm/pack.d.ts +105 -0
  1792. package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  1793. package/node_modules/tar/dist/esm/pack.js +502 -0
  1794. package/node_modules/tar/dist/esm/pack.js.map +1 -0
  1795. package/node_modules/tar/dist/esm/package.json +3 -0
  1796. package/node_modules/tar/dist/esm/parse.d.ts +85 -0
  1797. package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  1798. package/node_modules/tar/dist/esm/parse.js +606 -0
  1799. package/node_modules/tar/dist/esm/parse.js.map +1 -0
  1800. package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
  1801. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  1802. package/node_modules/tar/dist/esm/path-reservations.js +166 -0
  1803. package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  1804. package/node_modules/tar/dist/esm/pax.d.ts +26 -0
  1805. package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  1806. package/node_modules/tar/dist/esm/pax.js +154 -0
  1807. package/node_modules/tar/dist/esm/pax.js.map +1 -0
  1808. package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
  1809. package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  1810. package/node_modules/tar/dist/esm/process-umask.js +3 -0
  1811. package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  1812. package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
  1813. package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  1814. package/node_modules/tar/dist/esm/read-entry.js +132 -0
  1815. package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  1816. package/node_modules/tar/dist/esm/replace.d.ts +2 -0
  1817. package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  1818. package/node_modules/tar/dist/esm/replace.js +221 -0
  1819. package/node_modules/tar/dist/esm/replace.js.map +1 -0
  1820. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
  1821. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  1822. package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  1823. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  1824. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
  1825. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  1826. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  1827. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  1828. package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
  1829. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  1830. package/node_modules/tar/dist/esm/symlink-error.js +15 -0
  1831. package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  1832. package/node_modules/tar/dist/esm/types.d.ts +16 -0
  1833. package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  1834. package/node_modules/tar/dist/esm/types.js +65 -0
  1835. package/node_modules/tar/dist/esm/types.js.map +1 -0
  1836. package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
  1837. package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  1838. package/node_modules/tar/dist/esm/unpack.js +891 -0
  1839. package/node_modules/tar/dist/esm/unpack.js.map +1 -0
  1840. package/node_modules/tar/dist/esm/update.d.ts +2 -0
  1841. package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  1842. package/node_modules/tar/dist/esm/update.js +30 -0
  1843. package/node_modules/tar/dist/esm/update.js.map +1 -0
  1844. package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
  1845. package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  1846. package/node_modules/tar/dist/esm/warn-method.js +27 -0
  1847. package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  1848. package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
  1849. package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  1850. package/node_modules/tar/dist/esm/winchars.js +9 -0
  1851. package/node_modules/tar/dist/esm/winchars.js.map +1 -0
  1852. package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
  1853. package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  1854. package/node_modules/tar/dist/esm/write-entry.js +656 -0
  1855. package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  1856. package/node_modules/tar/package.json +283 -67
  1857. package/node_modules/tar-fs/README.md +25 -34
  1858. package/node_modules/tar-fs/index.js +234 -182
  1859. package/node_modules/tar-fs/node_modules/pump/.github/FUNDING.yml +2 -0
  1860. package/node_modules/tar-fs/node_modules/pump/README.md +9 -0
  1861. package/node_modules/tar-fs/node_modules/pump/SECURITY.md +5 -0
  1862. package/node_modules/tar-fs/node_modules/pump/empty.js +1 -0
  1863. package/node_modules/tar-fs/node_modules/pump/index.js +6 -2
  1864. package/node_modules/tar-fs/node_modules/pump/package.json +15 -44
  1865. package/node_modules/tar-fs/package.json +45 -55
  1866. package/node_modules/tar-stream/README.md +35 -20
  1867. package/node_modules/tar-stream/constants.js +14 -0
  1868. package/node_modules/tar-stream/extract.js +353 -192
  1869. package/node_modules/tar-stream/headers.js +203 -179
  1870. package/node_modules/tar-stream/node_modules/b4a/LICENSE +201 -0
  1871. package/node_modules/tar-stream/node_modules/b4a/README.md +153 -0
  1872. package/node_modules/tar-stream/node_modules/b4a/browser.js +541 -0
  1873. package/node_modules/tar-stream/node_modules/b4a/index.js +188 -0
  1874. package/node_modules/tar-stream/node_modules/b4a/lib/ascii.js +31 -0
  1875. package/node_modules/tar-stream/node_modules/b4a/lib/base64.js +64 -0
  1876. package/node_modules/tar-stream/node_modules/b4a/lib/hex.js +51 -0
  1877. package/node_modules/tar-stream/node_modules/b4a/lib/latin1.js +31 -0
  1878. package/node_modules/tar-stream/node_modules/b4a/lib/utf16le.js +40 -0
  1879. package/node_modules/tar-stream/node_modules/b4a/lib/utf8.js +144 -0
  1880. package/node_modules/tar-stream/node_modules/b4a/package.json +51 -0
  1881. package/node_modules/tar-stream/node_modules/b4a/react-native.js +5 -0
  1882. package/node_modules/tar-stream/pack.js +226 -193
  1883. package/node_modules/tar-stream/package.json +30 -76
  1884. package/node_modules/teex/LICENSE +21 -0
  1885. package/node_modules/teex/README.md +31 -0
  1886. package/node_modules/teex/example.js +16 -0
  1887. package/node_modules/teex/index.js +52 -0
  1888. package/node_modules/teex/package.json +26 -0
  1889. package/node_modules/teex/test.js +68 -0
  1890. package/node_modules/text-decoder/LICENSE +201 -0
  1891. package/node_modules/text-decoder/README.md +36 -0
  1892. package/node_modules/text-decoder/index.js +64 -0
  1893. package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  1894. package/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  1895. package/node_modules/text-decoder/node_modules/b4a/LICENSE +201 -0
  1896. package/node_modules/text-decoder/node_modules/b4a/README.md +153 -0
  1897. package/node_modules/text-decoder/node_modules/b4a/browser.js +541 -0
  1898. package/node_modules/text-decoder/node_modules/b4a/index.js +188 -0
  1899. package/node_modules/text-decoder/node_modules/b4a/lib/ascii.js +31 -0
  1900. package/node_modules/text-decoder/node_modules/b4a/lib/base64.js +64 -0
  1901. package/node_modules/text-decoder/node_modules/b4a/lib/hex.js +51 -0
  1902. package/node_modules/text-decoder/node_modules/b4a/lib/latin1.js +31 -0
  1903. package/node_modules/text-decoder/node_modules/b4a/lib/utf16le.js +40 -0
  1904. package/node_modules/text-decoder/node_modules/b4a/lib/utf8.js +144 -0
  1905. package/node_modules/text-decoder/node_modules/b4a/package.json +51 -0
  1906. package/node_modules/text-decoder/node_modules/b4a/react-native.js +5 -0
  1907. package/node_modules/text-decoder/package.json +39 -0
  1908. package/node_modules/through2/package.json +18 -55
  1909. package/node_modules/tinyglobby/LICENSE +21 -0
  1910. package/node_modules/tinyglobby/README.md +25 -0
  1911. package/node_modules/tinyglobby/dist/index.cjs +335 -0
  1912. package/node_modules/tinyglobby/dist/index.d.cts +148 -0
  1913. package/node_modules/tinyglobby/dist/index.d.mts +148 -0
  1914. package/node_modules/tinyglobby/dist/index.mjs +307 -0
  1915. package/node_modules/tinyglobby/package.json +70 -0
  1916. package/node_modules/tough-cookie/README.md +24 -4
  1917. package/node_modules/tough-cookie/lib/cookie.js +54 -3
  1918. package/node_modules/tough-cookie/lib/memstore.js +5 -0
  1919. package/node_modules/tough-cookie/lib/store.js +4 -0
  1920. package/node_modules/tough-cookie/lib/version.js +2 -0
  1921. package/node_modules/tough-cookie/package.json +42 -58
  1922. package/node_modules/tunnel-agent/package.json +12 -45
  1923. package/node_modules/tweetnacl/package.json +35 -63
  1924. package/node_modules/undici/LICENSE +21 -0
  1925. package/node_modules/undici/README.md +473 -0
  1926. package/node_modules/undici/docs/docs/api/Agent.md +80 -0
  1927. package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
  1928. package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
  1929. package/node_modules/undici/docs/docs/api/Client.md +277 -0
  1930. package/node_modules/undici/docs/docs/api/Connector.md +115 -0
  1931. package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
  1932. package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
  1933. package/node_modules/undici/docs/docs/api/Debug.md +62 -0
  1934. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +204 -0
  1935. package/node_modules/undici/docs/docs/api/DispatchInterceptor.md +60 -0
  1936. package/node_modules/undici/docs/docs/api/Dispatcher.md +1347 -0
  1937. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +162 -0
  1938. package/node_modules/undici/docs/docs/api/Errors.md +49 -0
  1939. package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
  1940. package/node_modules/undici/docs/docs/api/Fetch.md +52 -0
  1941. package/node_modules/undici/docs/docs/api/MockAgent.md +540 -0
  1942. package/node_modules/undici/docs/docs/api/MockClient.md +77 -0
  1943. package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
  1944. package/node_modules/undici/docs/docs/api/MockPool.md +547 -0
  1945. package/node_modules/undici/docs/docs/api/Pool.md +84 -0
  1946. package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
  1947. package/node_modules/undici/docs/docs/api/ProxyAgent.md +131 -0
  1948. package/node_modules/undici/docs/docs/api/RedirectHandler.md +96 -0
  1949. package/node_modules/undici/docs/docs/api/RetryAgent.md +45 -0
  1950. package/node_modules/undici/docs/docs/api/RetryHandler.md +117 -0
  1951. package/node_modules/undici/docs/docs/api/Util.md +25 -0
  1952. package/node_modules/undici/docs/docs/api/WebSocket.md +51 -0
  1953. package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
  1954. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
  1955. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +136 -0
  1956. package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
  1957. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +20 -0
  1958. package/node_modules/undici/index-fetch.js +35 -0
  1959. package/node_modules/undici/index.d.ts +3 -0
  1960. package/node_modules/undici/index.js +169 -0
  1961. package/node_modules/undici/lib/api/abort-signal.js +57 -0
  1962. package/node_modules/undici/lib/api/api-connect.js +108 -0
  1963. package/node_modules/undici/lib/api/api-pipeline.js +251 -0
  1964. package/node_modules/undici/lib/api/api-request.js +214 -0
  1965. package/node_modules/undici/lib/api/api-stream.js +220 -0
  1966. package/node_modules/undici/lib/api/api-upgrade.js +108 -0
  1967. package/node_modules/undici/lib/api/index.js +7 -0
  1968. package/node_modules/undici/lib/api/readable.js +385 -0
  1969. package/node_modules/undici/lib/api/util.js +93 -0
  1970. package/node_modules/undici/lib/core/connect.js +240 -0
  1971. package/node_modules/undici/lib/core/constants.js +118 -0
  1972. package/node_modules/undici/lib/core/diagnostics.js +202 -0
  1973. package/node_modules/undici/lib/core/errors.js +425 -0
  1974. package/node_modules/undici/lib/core/request.js +405 -0
  1975. package/node_modules/undici/lib/core/symbols.js +67 -0
  1976. package/node_modules/undici/lib/core/tree.js +152 -0
  1977. package/node_modules/undici/lib/core/util.js +719 -0
  1978. package/node_modules/undici/lib/dispatcher/agent.js +129 -0
  1979. package/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
  1980. package/node_modules/undici/lib/dispatcher/client-h1.js +1487 -0
  1981. package/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
  1982. package/node_modules/undici/lib/dispatcher/client.js +623 -0
  1983. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
  1984. package/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
  1985. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
  1986. package/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
  1987. package/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
  1988. package/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
  1989. package/node_modules/undici/lib/dispatcher/pool.js +107 -0
  1990. package/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
  1991. package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  1992. package/node_modules/undici/lib/global.js +32 -0
  1993. package/node_modules/undici/lib/handler/decorator-handler.js +44 -0
  1994. package/node_modules/undici/lib/handler/redirect-handler.js +232 -0
  1995. package/node_modules/undici/lib/handler/retry-handler.js +374 -0
  1996. package/node_modules/undici/lib/interceptor/dns.js +375 -0
  1997. package/node_modules/undici/lib/interceptor/dump.js +123 -0
  1998. package/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
  1999. package/node_modules/undici/lib/interceptor/redirect.js +24 -0
  2000. package/node_modules/undici/lib/interceptor/response-error.js +86 -0
  2001. package/node_modules/undici/lib/interceptor/retry.js +19 -0
  2002. package/node_modules/undici/lib/llhttp/constants.js +278 -0
  2003. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
  2004. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
  2005. package/node_modules/undici/lib/llhttp/utils.js +15 -0
  2006. package/node_modules/undici/lib/mock/mock-agent.js +160 -0
  2007. package/node_modules/undici/lib/mock/mock-client.js +59 -0
  2008. package/node_modules/undici/lib/mock/mock-errors.js +28 -0
  2009. package/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
  2010. package/node_modules/undici/lib/mock/mock-pool.js +59 -0
  2011. package/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  2012. package/node_modules/undici/lib/mock/mock-utils.js +367 -0
  2013. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  2014. package/node_modules/undici/lib/mock/pluralizer.js +29 -0
  2015. package/node_modules/undici/lib/util/timers.js +423 -0
  2016. package/node_modules/undici/lib/web/cache/cache.js +859 -0
  2017. package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  2018. package/node_modules/undici/lib/web/cache/symbols.js +5 -0
  2019. package/node_modules/undici/lib/web/cache/util.js +45 -0
  2020. package/node_modules/undici/lib/web/cookies/constants.js +12 -0
  2021. package/node_modules/undici/lib/web/cookies/index.js +184 -0
  2022. package/node_modules/undici/lib/web/cookies/parse.js +310 -0
  2023. package/node_modules/undici/lib/web/cookies/util.js +282 -0
  2024. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
  2025. package/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
  2026. package/node_modules/undici/lib/web/eventsource/util.js +37 -0
  2027. package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
  2028. package/node_modules/undici/lib/web/fetch/body.js +529 -0
  2029. package/node_modules/undici/lib/web/fetch/constants.js +124 -0
  2030. package/node_modules/undici/lib/web/fetch/data-url.js +744 -0
  2031. package/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
  2032. package/node_modules/undici/lib/web/fetch/file.js +126 -0
  2033. package/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
  2034. package/node_modules/undici/lib/web/fetch/formdata.js +252 -0
  2035. package/node_modules/undici/lib/web/fetch/global.js +40 -0
  2036. package/node_modules/undici/lib/web/fetch/headers.js +687 -0
  2037. package/node_modules/undici/lib/web/fetch/index.js +2272 -0
  2038. package/node_modules/undici/lib/web/fetch/request.js +1037 -0
  2039. package/node_modules/undici/lib/web/fetch/response.js +610 -0
  2040. package/node_modules/undici/lib/web/fetch/symbols.js +9 -0
  2041. package/node_modules/undici/lib/web/fetch/util.js +1632 -0
  2042. package/node_modules/undici/lib/web/fetch/webidl.js +695 -0
  2043. package/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
  2044. package/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
  2045. package/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
  2046. package/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
  2047. package/node_modules/undici/lib/web/fileapi/util.js +391 -0
  2048. package/node_modules/undici/lib/web/websocket/connection.js +371 -0
  2049. package/node_modules/undici/lib/web/websocket/constants.js +66 -0
  2050. package/node_modules/undici/lib/web/websocket/events.js +329 -0
  2051. package/node_modules/undici/lib/web/websocket/frame.js +96 -0
  2052. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  2053. package/node_modules/undici/lib/web/websocket/receiver.js +513 -0
  2054. package/node_modules/undici/lib/web/websocket/sender.js +104 -0
  2055. package/node_modules/undici/lib/web/websocket/symbols.js +12 -0
  2056. package/node_modules/undici/lib/web/websocket/util.js +322 -0
  2057. package/node_modules/undici/lib/web/websocket/websocket.js +595 -0
  2058. package/node_modules/undici/package.json +160 -0
  2059. package/node_modules/undici/scripts/strip-comments.js +8 -0
  2060. package/node_modules/undici/types/README.md +6 -0
  2061. package/node_modules/undici/types/agent.d.ts +31 -0
  2062. package/node_modules/undici/types/api.d.ts +43 -0
  2063. package/node_modules/undici/types/balanced-pool.d.ts +29 -0
  2064. package/node_modules/undici/types/cache.d.ts +36 -0
  2065. package/node_modules/undici/types/client.d.ts +125 -0
  2066. package/node_modules/undici/types/connector.d.ts +34 -0
  2067. package/node_modules/undici/types/content-type.d.ts +21 -0
  2068. package/node_modules/undici/types/cookies.d.ts +28 -0
  2069. package/node_modules/undici/types/diagnostics-channel.d.ts +66 -0
  2070. package/node_modules/undici/types/dispatcher.d.ts +256 -0
  2071. package/node_modules/undici/types/env-http-proxy-agent.d.ts +21 -0
  2072. package/node_modules/undici/types/errors.d.ts +155 -0
  2073. package/node_modules/undici/types/eventsource.d.ts +61 -0
  2074. package/node_modules/undici/types/fetch.d.ts +209 -0
  2075. package/node_modules/undici/types/file.d.ts +39 -0
  2076. package/node_modules/undici/types/filereader.d.ts +54 -0
  2077. package/node_modules/undici/types/formdata.d.ts +108 -0
  2078. package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
  2079. package/node_modules/undici/types/global-origin.d.ts +7 -0
  2080. package/node_modules/undici/types/handlers.d.ts +15 -0
  2081. package/node_modules/undici/types/header.d.ts +4 -0
  2082. package/node_modules/undici/types/index.d.ts +71 -0
  2083. package/node_modules/undici/types/interceptors.d.ts +32 -0
  2084. package/node_modules/undici/types/mock-agent.d.ts +50 -0
  2085. package/node_modules/undici/types/mock-client.d.ts +25 -0
  2086. package/node_modules/undici/types/mock-errors.d.ts +12 -0
  2087. package/node_modules/undici/types/mock-interceptor.d.ts +93 -0
  2088. package/node_modules/undici/types/mock-pool.d.ts +25 -0
  2089. package/node_modules/undici/types/patch.d.ts +33 -0
  2090. package/node_modules/undici/types/pool-stats.d.ts +19 -0
  2091. package/node_modules/undici/types/pool.d.ts +39 -0
  2092. package/node_modules/undici/types/proxy-agent.d.ts +29 -0
  2093. package/node_modules/undici/types/readable.d.ts +65 -0
  2094. package/node_modules/undici/types/retry-agent.d.ts +8 -0
  2095. package/node_modules/undici/types/retry-handler.d.ts +116 -0
  2096. package/node_modules/undici/types/util.d.ts +18 -0
  2097. package/node_modules/undici/types/webidl.d.ts +228 -0
  2098. package/node_modules/undici/types/websocket.d.ts +150 -0
  2099. package/node_modules/universalify/README.md +2 -2
  2100. package/node_modules/universalify/index.js +11 -12
  2101. package/node_modules/universalify/package.json +19 -49
  2102. package/node_modules/update-notifier/check.js +7 -9
  2103. package/node_modules/update-notifier/index.js +3 -176
  2104. package/node_modules/update-notifier/node_modules/chalk/license +1 -1
  2105. package/node_modules/update-notifier/node_modules/chalk/package.json +81 -101
  2106. package/node_modules/update-notifier/node_modules/chalk/readme.md +87 -104
  2107. package/node_modules/update-notifier/node_modules/chalk/source/index.d.ts +325 -0
  2108. package/node_modules/update-notifier/node_modules/chalk/source/index.js +225 -0
  2109. package/node_modules/update-notifier/node_modules/chalk/source/utilities.js +33 -0
  2110. package/node_modules/update-notifier/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  2111. package/node_modules/update-notifier/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  2112. package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  2113. package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  2114. package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  2115. package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  2116. package/node_modules/update-notifier/node_modules/xdg-basedir/index.d.ts +90 -0
  2117. package/node_modules/update-notifier/node_modules/xdg-basedir/index.js +30 -0
  2118. package/node_modules/update-notifier/node_modules/xdg-basedir/license +9 -0
  2119. package/node_modules/update-notifier/node_modules/xdg-basedir/package.json +47 -0
  2120. package/node_modules/update-notifier/node_modules/xdg-basedir/readme.md +70 -0
  2121. package/node_modules/update-notifier/package.json +62 -96
  2122. package/node_modules/update-notifier/readme.md +63 -63
  2123. package/node_modules/update-notifier/update-notifier.js +177 -0
  2124. package/node_modules/uri-js/LICENSE +11 -0
  2125. package/node_modules/uri-js/README.md +22 -18
  2126. package/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -59
  2127. package/node_modules/uri-js/dist/es5/uri.all.js +61 -7
  2128. package/node_modules/uri-js/dist/es5/uri.all.js.map +1 -1
  2129. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -59
  2130. package/node_modules/uri-js/dist/es5/uri.all.min.js +2 -2
  2131. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -1
  2132. package/node_modules/uri-js/dist/esnext/index.d.ts +1 -1
  2133. package/node_modules/uri-js/dist/esnext/index.js +16 -12
  2134. package/node_modules/uri-js/dist/esnext/index.js.map +1 -1
  2135. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -3
  2136. package/node_modules/uri-js/dist/esnext/regexps-iri.js +2 -2
  2137. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -0
  2138. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -4
  2139. package/node_modules/uri-js/dist/esnext/regexps-uri.js +41 -41
  2140. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -0
  2141. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -3
  2142. package/node_modules/uri-js/dist/esnext/schemes/http.js +27 -26
  2143. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -1
  2144. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -3
  2145. package/node_modules/uri-js/dist/esnext/schemes/https.js +8 -8
  2146. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -0
  2147. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -12
  2148. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -0
  2149. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -0
  2150. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -7
  2151. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +22 -22
  2152. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -0
  2153. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -10
  2154. package/node_modules/uri-js/dist/esnext/schemes/urn.js +48 -48
  2155. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -0
  2156. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
  2157. package/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
  2158. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
  2159. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
  2160. package/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
  2161. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
  2162. package/node_modules/uri-js/dist/esnext/uri.d.ts +59 -59
  2163. package/node_modules/uri-js/dist/esnext/uri.js +2 -2
  2164. package/node_modules/uri-js/dist/esnext/uri.js.map +1 -1
  2165. package/node_modules/uri-js/dist/esnext/util.d.ts +6 -6
  2166. package/node_modules/uri-js/dist/esnext/util.js +35 -35
  2167. package/node_modules/uri-js/dist/esnext/util.js.map +0 -0
  2168. package/node_modules/uri-js/package.json +47 -63
  2169. package/node_modules/util-deprecate/package.json +14 -46
  2170. package/node_modules/uuid/CHANGELOG.md +25 -18
  2171. package/node_modules/uuid/README.md +27 -44
  2172. package/node_modules/uuid/lib/bytesToUuid.js +10 -8
  2173. package/node_modules/uuid/package.json +31 -79
  2174. package/node_modules/uuid/v1.js +1 -1
  2175. package/node_modules/validate-npm-package-name/README.md +4 -4
  2176. package/node_modules/validate-npm-package-name/lib/builtin-modules.json +1 -0
  2177. package/node_modules/validate-npm-package-name/lib/index.js +114 -0
  2178. package/node_modules/validate-npm-package-name/package.json +45 -51
  2179. package/node_modules/verror/node_modules/core-util-is/LICENSE +19 -0
  2180. package/node_modules/verror/node_modules/core-util-is/README.md +3 -0
  2181. package/node_modules/verror/node_modules/core-util-is/lib/util.js +107 -0
  2182. package/node_modules/verror/node_modules/core-util-is/package.json +32 -0
  2183. package/node_modules/verror/package.json +20 -49
  2184. package/node_modules/when-exit/dist/browser/index.d.ts +2 -0
  2185. package/node_modules/when-exit/dist/browser/index.js +6 -0
  2186. package/node_modules/when-exit/dist/browser/interceptor.d.ts +10 -0
  2187. package/node_modules/when-exit/dist/browser/interceptor.js +27 -0
  2188. package/node_modules/when-exit/dist/node/constants.d.ts +3 -0
  2189. package/node_modules/when-exit/dist/node/constants.js +7 -0
  2190. package/node_modules/when-exit/dist/node/index.d.ts +2 -0
  2191. package/node_modules/when-exit/dist/node/index.js +6 -0
  2192. package/node_modules/when-exit/dist/node/interceptor.d.ts +11 -0
  2193. package/node_modules/when-exit/dist/node/interceptor.js +50 -0
  2194. package/node_modules/when-exit/dist/node/signals.d.ts +2 -0
  2195. package/node_modules/when-exit/dist/node/signals.js +13 -0
  2196. package/node_modules/when-exit/dist/types.d.ts +3 -0
  2197. package/node_modules/when-exit/dist/types.js +2 -0
  2198. package/node_modules/when-exit/license +21 -0
  2199. package/node_modules/when-exit/package.json +35 -0
  2200. package/node_modules/when-exit/readme.md +41 -0
  2201. package/node_modules/which/README.md +13 -16
  2202. package/node_modules/which/bin/which.js +52 -0
  2203. package/node_modules/which/lib/index.js +111 -0
  2204. package/node_modules/which/package.json +38 -63
  2205. package/node_modules/widest-line/index.d.ts +12 -0
  2206. package/node_modules/widest-line/index.js +10 -7
  2207. package/node_modules/widest-line/license +1 -1
  2208. package/node_modules/widest-line/package.json +58 -84
  2209. package/node_modules/widest-line/readme.md +4 -12
  2210. package/node_modules/wrap-ansi/index.d.ts +41 -0
  2211. package/node_modules/wrap-ansi/index.js +72 -36
  2212. package/node_modules/wrap-ansi/license +1 -1
  2213. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +9 -13
  2214. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +11 -7
  2215. package/node_modules/wrap-ansi/node_modules/ansi-regex/license +1 -1
  2216. package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +59 -85
  2217. package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +10 -22
  2218. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +232 -193
  2219. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +190 -130
  2220. package/node_modules/wrap-ansi/node_modules/ansi-styles/license +1 -1
  2221. package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +52 -86
  2222. package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +55 -48
  2223. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +2 -4
  2224. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +18 -3
  2225. package/node_modules/wrap-ansi/node_modules/strip-ansi/license +1 -1
  2226. package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +57 -85
  2227. package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +6 -15
  2228. package/node_modules/wrap-ansi/package.json +67 -93
  2229. package/node_modules/wrap-ansi/readme.md +12 -34
  2230. package/node_modules/wrappy/package.json +16 -47
  2231. package/node_modules/xtend/package.json +25 -57
  2232. package/node_modules/y18n/CHANGELOG.md +81 -2
  2233. package/node_modules/y18n/README.md +31 -13
  2234. package/node_modules/y18n/build/index.cjs +203 -0
  2235. package/node_modules/y18n/build/lib/cjs.js +6 -0
  2236. package/node_modules/y18n/build/lib/index.js +174 -0
  2237. package/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  2238. package/node_modules/y18n/index.mjs +8 -0
  2239. package/node_modules/y18n/package.json +57 -56
  2240. package/node_modules/yallist/LICENSE.md +63 -0
  2241. package/node_modules/yallist/README.md +8 -7
  2242. package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
  2243. package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  2244. package/node_modules/yallist/dist/commonjs/index.js +384 -0
  2245. package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  2246. package/node_modules/yallist/dist/commonjs/package.json +3 -0
  2247. package/node_modules/yallist/dist/esm/index.d.ts +39 -0
  2248. package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  2249. package/node_modules/yallist/dist/esm/index.js +379 -0
  2250. package/node_modules/yallist/dist/esm/index.js.map +1 -0
  2251. package/node_modules/yallist/dist/esm/package.json +3 -0
  2252. package/node_modules/yallist/package.json +57 -53
  2253. package/node_modules/yargs/LICENSE +2 -3
  2254. package/node_modules/yargs/README.md +69 -27
  2255. package/node_modules/yargs/browser.d.ts +5 -0
  2256. package/node_modules/yargs/browser.mjs +7 -0
  2257. package/node_modules/yargs/build/lib/argsert.js +62 -0
  2258. package/node_modules/yargs/build/lib/command.js +479 -0
  2259. package/node_modules/yargs/build/lib/completion-templates.js +57 -0
  2260. package/node_modules/yargs/build/lib/completion.js +243 -0
  2261. package/node_modules/yargs/build/lib/middleware.js +88 -0
  2262. package/node_modules/yargs/build/lib/parse-command.js +32 -0
  2263. package/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  2264. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  2265. package/node_modules/yargs/build/lib/usage.js +584 -0
  2266. package/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  2267. package/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  2268. package/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
  2269. package/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  2270. package/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  2271. package/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  2272. package/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  2273. package/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  2274. package/node_modules/yargs/build/lib/validation.js +305 -0
  2275. package/node_modules/yargs/build/lib/yargs-factory.js +1517 -0
  2276. package/node_modules/yargs/build/lib/yerror.js +9 -0
  2277. package/node_modules/yargs/helpers/helpers.mjs +10 -0
  2278. package/node_modules/yargs/helpers/package.json +3 -0
  2279. package/node_modules/yargs/index.mjs +10 -0
  2280. package/node_modules/yargs/lib/platform-shims/browser.mjs +99 -0
  2281. package/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
  2282. package/node_modules/yargs/locales/be.json +9 -2
  2283. package/node_modules/yargs/locales/cs.json +51 -0
  2284. package/node_modules/yargs/locales/de.json +9 -2
  2285. package/node_modules/yargs/locales/en.json +16 -3
  2286. package/node_modules/yargs/locales/es.json +9 -2
  2287. package/node_modules/yargs/locales/fi.json +49 -0
  2288. package/node_modules/yargs/locales/fr.json +38 -23
  2289. package/node_modules/yargs/locales/he.json +55 -0
  2290. package/node_modules/yargs/locales/hi.json +9 -2
  2291. package/node_modules/yargs/locales/hu.json +9 -2
  2292. package/node_modules/yargs/locales/id.json +9 -2
  2293. package/node_modules/yargs/locales/it.json +9 -2
  2294. package/node_modules/yargs/locales/ja.json +15 -6
  2295. package/node_modules/yargs/locales/ko.json +29 -22
  2296. package/node_modules/yargs/locales/nb.json +9 -2
  2297. package/node_modules/yargs/locales/nl.json +9 -2
  2298. package/node_modules/yargs/locales/nn.json +9 -4
  2299. package/node_modules/yargs/locales/pl.json +9 -2
  2300. package/node_modules/yargs/locales/pt.json +9 -2
  2301. package/node_modules/yargs/locales/pt_BR.json +8 -2
  2302. package/node_modules/yargs/locales/ru.json +15 -3
  2303. package/node_modules/yargs/locales/th.json +9 -2
  2304. package/node_modules/yargs/locales/tr.json +9 -2
  2305. package/node_modules/yargs/locales/uk_UA.json +51 -0
  2306. package/node_modules/yargs/locales/uz.json +52 -0
  2307. package/node_modules/yargs/locales/zh_CN.json +9 -2
  2308. package/node_modules/yargs/locales/zh_TW.json +50 -39
  2309. package/node_modules/yargs/node_modules/yargs-parser/CHANGELOG.md +319 -0
  2310. package/node_modules/yargs/node_modules/yargs-parser/README.md +518 -0
  2311. package/node_modules/yargs/node_modules/yargs-parser/browser.js +29 -0
  2312. package/node_modules/yargs/node_modules/yargs-parser/build/lib/index.js +64 -0
  2313. package/node_modules/yargs/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  2314. package/node_modules/yargs/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  2315. package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  2316. package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser.js +1046 -0
  2317. package/node_modules/yargs/node_modules/yargs-parser/package.json +78 -0
  2318. package/node_modules/yargs/package.json +74 -77
  2319. package/package.json +24 -28
  2320. package/scripts/install.js +7 -3
  2321. package/test/00-clean.js +11 -8
  2322. package/test/01-chmod.js +8 -8
  2323. package/test/10-install.js +15 -14
  2324. package/test/11-install-deprecated.js +13 -11
  2325. package/test/11-install-only.js +15 -13
  2326. package/test/11-install-save.js +19 -18
  2327. package/test/20-lock.js +22 -24
  2328. package/test/30-run.js +10 -9
  2329. package/test/90-help.js +9 -8
  2330. package/test/90-version.js +7 -6
  2331. package/test/zz-cleanup.js +11 -8
  2332. package/.travis.yml +0 -29
  2333. package/appveyor.yml +0 -18
  2334. package/node_modules/@sindresorhus/is/dist/index.d.ts +0 -132
  2335. package/node_modules/@sindresorhus/is/dist/index.js +0 -245
  2336. package/node_modules/@sindresorhus/is/dist/index.js.map +0 -1
  2337. package/node_modules/@sindresorhus/is/license +0 -9
  2338. package/node_modules/@sindresorhus/is/package.json +0 -96
  2339. package/node_modules/@sindresorhus/is/readme.md +0 -451
  2340. package/node_modules/@szmarczak/http-timer/LICENSE +0 -21
  2341. package/node_modules/@szmarczak/http-timer/README.md +0 -70
  2342. package/node_modules/@szmarczak/http-timer/package.json +0 -75
  2343. package/node_modules/@szmarczak/http-timer/source/index.js +0 -99
  2344. package/node_modules/@types/color-name/LICENSE +0 -21
  2345. package/node_modules/@types/color-name/README.md +0 -16
  2346. package/node_modules/@types/color-name/index.d.ts +0 -161
  2347. package/node_modules/@types/color-name/package.json +0 -52
  2348. package/node_modules/abbrev/abbrev.js +0 -61
  2349. package/node_modules/ansi-align/node_modules/ansi-regex/index.js +0 -14
  2350. package/node_modules/ansi-align/node_modules/ansi-regex/license +0 -9
  2351. package/node_modules/ansi-align/node_modules/ansi-regex/package.json +0 -85
  2352. package/node_modules/ansi-align/node_modules/ansi-regex/readme.md +0 -87
  2353. package/node_modules/ansi-align/node_modules/strip-ansi/index.js +0 -7
  2354. package/node_modules/ansi-align/node_modules/strip-ansi/license +0 -9
  2355. package/node_modules/ansi-align/node_modules/strip-ansi/package.json +0 -86
  2356. package/node_modules/ansi-align/node_modules/strip-ansi/readme.md +0 -61
  2357. package/node_modules/aproba/LICENSE +0 -14
  2358. package/node_modules/aproba/README.md +0 -94
  2359. package/node_modules/aproba/index.js +0 -105
  2360. package/node_modules/aproba/package.json +0 -62
  2361. package/node_modules/are-we-there-yet/CHANGES.md +0 -37
  2362. package/node_modules/are-we-there-yet/LICENSE +0 -5
  2363. package/node_modules/are-we-there-yet/README.md +0 -195
  2364. package/node_modules/are-we-there-yet/index.js +0 -4
  2365. package/node_modules/are-we-there-yet/package.json +0 -63
  2366. package/node_modules/are-we-there-yet/tracker-base.js +0 -11
  2367. package/node_modules/are-we-there-yet/tracker-group.js +0 -107
  2368. package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  2369. package/node_modules/are-we-there-yet/tracker.js +0 -30
  2370. package/node_modules/aws4/.travis.yml +0 -9
  2371. package/node_modules/balanced-match/.npmignore +0 -5
  2372. package/node_modules/balanced-match/LICENSE.md +0 -21
  2373. package/node_modules/balanced-match/README.md +0 -91
  2374. package/node_modules/balanced-match/index.js +0 -59
  2375. package/node_modules/balanced-match/package.json +0 -77
  2376. package/node_modules/bl/.jshintrc +0 -60
  2377. package/node_modules/bl/.travis.yml +0 -13
  2378. package/node_modules/bl/LICENSE.md +0 -13
  2379. package/node_modules/bl/README.md +0 -218
  2380. package/node_modules/bl/bl.js +0 -382
  2381. package/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  2382. package/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +0 -136
  2383. package/node_modules/bl/node_modules/readable-stream/LICENSE +0 -47
  2384. package/node_modules/bl/node_modules/readable-stream/README.md +0 -111
  2385. package/node_modules/bl/node_modules/readable-stream/errors-browser.js +0 -127
  2386. package/node_modules/bl/node_modules/readable-stream/errors.js +0 -116
  2387. package/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +0 -17
  2388. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  2389. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  2390. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
  2391. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  2392. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -683
  2393. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  2394. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
  2395. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
  2396. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  2397. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  2398. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  2399. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  2400. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  2401. package/node_modules/bl/node_modules/readable-stream/package.json +0 -95
  2402. package/node_modules/bl/node_modules/readable-stream/readable-browser.js +0 -9
  2403. package/node_modules/bl/node_modules/readable-stream/readable.js +0 -16
  2404. package/node_modules/bl/package.json +0 -66
  2405. package/node_modules/bl/test/indexOf.js +0 -463
  2406. package/node_modules/bl/test/test.js +0 -780
  2407. package/node_modules/boxen/node_modules/ansi-regex/index.js +0 -14
  2408. package/node_modules/boxen/node_modules/ansi-regex/license +0 -9
  2409. package/node_modules/boxen/node_modules/ansi-regex/package.json +0 -85
  2410. package/node_modules/boxen/node_modules/ansi-regex/readme.md +0 -87
  2411. package/node_modules/boxen/node_modules/ansi-styles/index.js +0 -165
  2412. package/node_modules/boxen/node_modules/ansi-styles/license +0 -9
  2413. package/node_modules/boxen/node_modules/ansi-styles/package.json +0 -88
  2414. package/node_modules/boxen/node_modules/ansi-styles/readme.md +0 -147
  2415. package/node_modules/boxen/node_modules/chalk/index.js +0 -228
  2416. package/node_modules/boxen/node_modules/chalk/index.js.flow +0 -93
  2417. package/node_modules/boxen/node_modules/chalk/templates.js +0 -128
  2418. package/node_modules/boxen/node_modules/chalk/types/index.d.ts +0 -97
  2419. package/node_modules/boxen/node_modules/is-fullwidth-code-point/index.js +0 -46
  2420. package/node_modules/boxen/node_modules/is-fullwidth-code-point/package.json +0 -77
  2421. package/node_modules/boxen/node_modules/is-fullwidth-code-point/readme.md +0 -39
  2422. package/node_modules/boxen/node_modules/string-width/index.js +0 -39
  2423. package/node_modules/boxen/node_modules/string-width/license +0 -9
  2424. package/node_modules/boxen/node_modules/string-width/package.json +0 -88
  2425. package/node_modules/boxen/node_modules/string-width/readme.md +0 -45
  2426. package/node_modules/boxen/node_modules/strip-ansi/index.d.ts +0 -15
  2427. package/node_modules/boxen/node_modules/strip-ansi/index.js +0 -7
  2428. package/node_modules/boxen/node_modules/strip-ansi/license +0 -9
  2429. package/node_modules/boxen/node_modules/strip-ansi/package.json +0 -86
  2430. package/node_modules/boxen/node_modules/strip-ansi/readme.md +0 -61
  2431. package/node_modules/boxen/node_modules/supports-color/browser.js +0 -5
  2432. package/node_modules/boxen/node_modules/supports-color/index.js +0 -131
  2433. package/node_modules/boxen/node_modules/supports-color/license +0 -9
  2434. package/node_modules/boxen/node_modules/supports-color/package.json +0 -85
  2435. package/node_modules/boxen/node_modules/supports-color/readme.md +0 -66
  2436. package/node_modules/brace-expansion/LICENSE +0 -21
  2437. package/node_modules/brace-expansion/README.md +0 -129
  2438. package/node_modules/brace-expansion/index.js +0 -201
  2439. package/node_modules/brace-expansion/package.json +0 -75
  2440. package/node_modules/builtins/.travis.yml +0 -4
  2441. package/node_modules/builtins/History.md +0 -39
  2442. package/node_modules/builtins/License +0 -20
  2443. package/node_modules/builtins/Readme.md +0 -18
  2444. package/node_modules/builtins/builtins.json +0 -35
  2445. package/node_modules/builtins/package.json +0 -46
  2446. package/node_modules/builtins/test.js +0 -5
  2447. package/node_modules/cacheable-request/LICENSE +0 -21
  2448. package/node_modules/cacheable-request/README.md +0 -206
  2449. package/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js +0 -52
  2450. package/node_modules/cacheable-request/node_modules/get-stream/index.d.ts +0 -108
  2451. package/node_modules/cacheable-request/node_modules/get-stream/index.js +0 -58
  2452. package/node_modules/cacheable-request/node_modules/get-stream/license +0 -9
  2453. package/node_modules/cacheable-request/node_modules/get-stream/package.json +0 -81
  2454. package/node_modules/cacheable-request/node_modules/get-stream/readme.md +0 -123
  2455. package/node_modules/cacheable-request/node_modules/lowercase-keys/index.d.ts +0 -16
  2456. package/node_modules/cacheable-request/node_modules/lowercase-keys/index.js +0 -10
  2457. package/node_modules/cacheable-request/node_modules/lowercase-keys/license +0 -9
  2458. package/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +0 -70
  2459. package/node_modules/cacheable-request/node_modules/lowercase-keys/readme.md +0 -32
  2460. package/node_modules/cacheable-request/node_modules/pump/.travis.yml +0 -5
  2461. package/node_modules/cacheable-request/node_modules/pump/LICENSE +0 -21
  2462. package/node_modules/cacheable-request/node_modules/pump/README.md +0 -65
  2463. package/node_modules/cacheable-request/node_modules/pump/index.js +0 -82
  2464. package/node_modules/cacheable-request/node_modules/pump/package.json +0 -59
  2465. package/node_modules/cacheable-request/node_modules/pump/test-browser.js +0 -66
  2466. package/node_modules/cacheable-request/node_modules/pump/test-node.js +0 -53
  2467. package/node_modules/cacheable-request/package.json +0 -95
  2468. package/node_modules/cacheable-request/src/index.js +0 -251
  2469. package/node_modules/camelcase/index.d.ts +0 -63
  2470. package/node_modules/camelcase/index.js +0 -76
  2471. package/node_modules/camelcase/license +0 -9
  2472. package/node_modules/camelcase/package.json +0 -78
  2473. package/node_modules/camelcase/readme.md +0 -99
  2474. package/node_modules/chownr/chownr.js +0 -125
  2475. package/node_modules/ci-info/CHANGELOG.md +0 -78
  2476. package/node_modules/ci-info/LICENSE +0 -21
  2477. package/node_modules/ci-info/README.md +0 -108
  2478. package/node_modules/ci-info/index.js +0 -66
  2479. package/node_modules/ci-info/package.json +0 -65
  2480. package/node_modules/ci-info/vendors.json +0 -153
  2481. package/node_modules/cliui/index.js +0 -354
  2482. package/node_modules/cliui/node_modules/emoji-regex/package.json +0 -77
  2483. package/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -50
  2484. package/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -9
  2485. package/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -74
  2486. package/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
  2487. package/node_modules/cliui/node_modules/string-width/index.js +0 -43
  2488. package/node_modules/cliui/node_modules/string-width/license +0 -9
  2489. package/node_modules/cliui/node_modules/string-width/package.json +0 -88
  2490. package/node_modules/cliui/node_modules/string-width/readme.md +0 -50
  2491. package/node_modules/clone-response/LICENSE +0 -21
  2492. package/node_modules/clone-response/README.md +0 -62
  2493. package/node_modules/clone-response/package.json +0 -73
  2494. package/node_modules/clone-response/src/index.js +0 -17
  2495. package/node_modules/code-point-at/index.js +0 -32
  2496. package/node_modules/code-point-at/license +0 -21
  2497. package/node_modules/code-point-at/package.json +0 -71
  2498. package/node_modules/code-point-at/readme.md +0 -32
  2499. package/node_modules/color-convert/CHANGELOG.md +0 -54
  2500. package/node_modules/color-convert/LICENSE +0 -21
  2501. package/node_modules/color-convert/README.md +0 -68
  2502. package/node_modules/color-convert/conversions.js +0 -868
  2503. package/node_modules/color-convert/index.js +0 -78
  2504. package/node_modules/color-convert/package.json +0 -87
  2505. package/node_modules/color-convert/route.js +0 -97
  2506. package/node_modules/color-name/.eslintrc.json +0 -43
  2507. package/node_modules/color-name/.npmignore +0 -107
  2508. package/node_modules/color-name/LICENSE +0 -8
  2509. package/node_modules/color-name/README.md +0 -11
  2510. package/node_modules/color-name/index.js +0 -152
  2511. package/node_modules/color-name/package.json +0 -53
  2512. package/node_modules/color-name/test.js +0 -7
  2513. package/node_modules/combined-stream/yarn.lock +0 -17
  2514. package/node_modules/concat-map/.travis.yml +0 -4
  2515. package/node_modules/concat-map/LICENSE +0 -18
  2516. package/node_modules/concat-map/README.markdown +0 -62
  2517. package/node_modules/concat-map/example/map.js +0 -6
  2518. package/node_modules/concat-map/index.js +0 -13
  2519. package/node_modules/concat-map/package.json +0 -88
  2520. package/node_modules/concat-map/test/map.js +0 -39
  2521. package/node_modules/console-control-strings/LICENSE +0 -13
  2522. package/node_modules/console-control-strings/README.md +0 -145
  2523. package/node_modules/console-control-strings/README.md~ +0 -140
  2524. package/node_modules/console-control-strings/index.js +0 -125
  2525. package/node_modules/console-control-strings/package.json +0 -61
  2526. package/node_modules/cross-spawn/CHANGELOG.md +0 -6
  2527. package/node_modules/cross-spawn/LICENSE +0 -19
  2528. package/node_modules/cross-spawn/README.md +0 -85
  2529. package/node_modules/cross-spawn/index.js +0 -59
  2530. package/node_modules/cross-spawn/lib/enoent.js +0 -73
  2531. package/node_modules/cross-spawn/lib/parse.js +0 -113
  2532. package/node_modules/cross-spawn/lib/util/escapeArgument.js +0 -30
  2533. package/node_modules/cross-spawn/lib/util/escapeCommand.js +0 -12
  2534. package/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js +0 -18
  2535. package/node_modules/cross-spawn/lib/util/readShebang.js +0 -37
  2536. package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -31
  2537. package/node_modules/cross-spawn/node_modules/lru-cache/README.md +0 -158
  2538. package/node_modules/cross-spawn/node_modules/lru-cache/index.js +0 -468
  2539. package/node_modules/cross-spawn/node_modules/lru-cache/package.json +0 -71
  2540. package/node_modules/cross-spawn/node_modules/which/CHANGELOG.md +0 -152
  2541. package/node_modules/cross-spawn/node_modules/which/README.md +0 -51
  2542. package/node_modules/cross-spawn/node_modules/which/bin/which +0 -52
  2543. package/node_modules/cross-spawn/node_modules/which/package.json +0 -65
  2544. package/node_modules/cross-spawn/node_modules/which/which.js +0 -135
  2545. package/node_modules/cross-spawn/node_modules/yallist/README.md +0 -204
  2546. package/node_modules/cross-spawn/node_modules/yallist/iterator.js +0 -7
  2547. package/node_modules/cross-spawn/node_modules/yallist/package.json +0 -62
  2548. package/node_modules/cross-spawn/node_modules/yallist/yallist.js +0 -370
  2549. package/node_modules/cross-spawn/package.json +0 -86
  2550. package/node_modules/crypto-random-string/index.js +0 -10
  2551. package/node_modules/crypto-random-string/license +0 -21
  2552. package/node_modules/crypto-random-string/package.json +0 -75
  2553. package/node_modules/crypto-random-string/readme.md +0 -49
  2554. package/node_modules/decamelize/index.js +0 -13
  2555. package/node_modules/decamelize/license +0 -21
  2556. package/node_modules/decamelize/package.json +0 -76
  2557. package/node_modules/decamelize/readme.md +0 -48
  2558. package/node_modules/decompress-response/index.js +0 -29
  2559. package/node_modules/decompress-response/license +0 -21
  2560. package/node_modules/decompress-response/package.json +0 -85
  2561. package/node_modules/decompress-response/readme.md +0 -31
  2562. package/node_modules/defer-to-connect/.editorconfig +0 -12
  2563. package/node_modules/defer-to-connect/.travis.yml +0 -7
  2564. package/node_modules/defer-to-connect/.vscode/settings.json +0 -3
  2565. package/node_modules/defer-to-connect/LICENSE +0 -21
  2566. package/node_modules/defer-to-connect/README.md +0 -38
  2567. package/node_modules/defer-to-connect/dist/index.d.ts +0 -10
  2568. package/node_modules/defer-to-connect/dist/index.js +0 -45
  2569. package/node_modules/defer-to-connect/package.json +0 -95
  2570. package/node_modules/defer-to-connect/source/index.ts +0 -55
  2571. package/node_modules/defer-to-connect/test.ts +0 -171
  2572. package/node_modules/defer-to-connect/tsconfig.json +0 -10
  2573. package/node_modules/delegates/.npmignore +0 -1
  2574. package/node_modules/delegates/History.md +0 -22
  2575. package/node_modules/delegates/License +0 -20
  2576. package/node_modules/delegates/Makefile +0 -8
  2577. package/node_modules/delegates/Readme.md +0 -94
  2578. package/node_modules/delegates/index.js +0 -121
  2579. package/node_modules/delegates/package.json +0 -48
  2580. package/node_modules/delegates/test/index.js +0 -94
  2581. package/node_modules/dot-prop/index.js +0 -123
  2582. package/node_modules/dot-prop/license +0 -21
  2583. package/node_modules/dot-prop/package.json +0 -80
  2584. package/node_modules/dot-prop/readme.md +0 -103
  2585. package/node_modules/duplexer3/LICENSE.md +0 -26
  2586. package/node_modules/duplexer3/README.md +0 -115
  2587. package/node_modules/duplexer3/index.js +0 -76
  2588. package/node_modules/duplexer3/package.json +0 -64
  2589. package/node_modules/emoji-regex/es2015/index.js +0 -6
  2590. package/node_modules/emoji-regex/es2015/text.js +0 -6
  2591. package/node_modules/emoji-regex/text.js +0 -6
  2592. package/node_modules/escape-string-regexp/index.js +0 -11
  2593. package/node_modules/escape-string-regexp/license +0 -21
  2594. package/node_modules/escape-string-regexp/package.json +0 -89
  2595. package/node_modules/escape-string-regexp/readme.md +0 -27
  2596. package/node_modules/execa/index.js +0 -309
  2597. package/node_modules/execa/lib/errname.js +0 -37
  2598. package/node_modules/execa/lib/stdio.js +0 -41
  2599. package/node_modules/execa/license +0 -9
  2600. package/node_modules/execa/package.json +0 -108
  2601. package/node_modules/execa/readme.md +0 -279
  2602. package/node_modules/fast-json-stable-stringify/.npmignore +0 -4
  2603. package/node_modules/find-up/index.d.ts +0 -137
  2604. package/node_modules/find-up/index.js +0 -89
  2605. package/node_modules/find-up/license +0 -9
  2606. package/node_modules/find-up/package.json +0 -86
  2607. package/node_modules/find-up/readme.md +0 -156
  2608. package/node_modules/form-data/yarn.lock +0 -2662
  2609. package/node_modules/fs-constants/LICENSE +0 -21
  2610. package/node_modules/fs-constants/README.md +0 -26
  2611. package/node_modules/fs-constants/browser.js +0 -1
  2612. package/node_modules/fs-constants/index.js +0 -1
  2613. package/node_modules/fs-constants/package.json +0 -47
  2614. package/node_modules/fs-extra/CHANGELOG.md +0 -864
  2615. package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -164
  2616. package/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
  2617. package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -54
  2618. package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -63
  2619. package/node_modules/fs-extra/lib/mkdirs/win32.js +0 -25
  2620. package/node_modules/fs-extra/lib/move-sync/index.js +0 -5
  2621. package/node_modules/fs-extra/lib/move-sync/move-sync.js +0 -47
  2622. package/node_modules/fs-extra/lib/output/index.js +0 -40
  2623. package/node_modules/fs-extra/lib/remove/rimraf.js +0 -314
  2624. package/node_modules/fs-extra/lib/util/buffer.js +0 -12
  2625. package/node_modules/fs-minipass/LICENSE +0 -15
  2626. package/node_modules/fs-minipass/README.md +0 -70
  2627. package/node_modules/fs-minipass/index.js +0 -387
  2628. package/node_modules/fs-minipass/package.json +0 -65
  2629. package/node_modules/fs.realpath/LICENSE +0 -43
  2630. package/node_modules/fs.realpath/README.md +0 -33
  2631. package/node_modules/fs.realpath/index.js +0 -66
  2632. package/node_modules/fs.realpath/old.js +0 -303
  2633. package/node_modules/fs.realpath/package.json +0 -59
  2634. package/node_modules/gauge/CHANGELOG.md +0 -160
  2635. package/node_modules/gauge/LICENSE +0 -13
  2636. package/node_modules/gauge/README.md +0 -399
  2637. package/node_modules/gauge/base-theme.js +0 -14
  2638. package/node_modules/gauge/error.js +0 -24
  2639. package/node_modules/gauge/has-color.js +0 -12
  2640. package/node_modules/gauge/index.js +0 -233
  2641. package/node_modules/gauge/package.json +0 -91
  2642. package/node_modules/gauge/plumbing.js +0 -48
  2643. package/node_modules/gauge/process.js +0 -3
  2644. package/node_modules/gauge/progress-bar.js +0 -35
  2645. package/node_modules/gauge/render-template.js +0 -181
  2646. package/node_modules/gauge/set-immediate.js +0 -7
  2647. package/node_modules/gauge/set-interval.js +0 -3
  2648. package/node_modules/gauge/spin.js +0 -5
  2649. package/node_modules/gauge/template-item.js +0 -73
  2650. package/node_modules/gauge/theme-set.js +0 -115
  2651. package/node_modules/gauge/themes.js +0 -54
  2652. package/node_modules/gauge/wide-truncate.js +0 -25
  2653. package/node_modules/get-stream/buffer-stream.js +0 -51
  2654. package/node_modules/get-stream/index.js +0 -51
  2655. package/node_modules/get-stream/license +0 -21
  2656. package/node_modules/get-stream/package.json +0 -80
  2657. package/node_modules/get-stream/readme.md +0 -117
  2658. package/node_modules/glob/LICENSE +0 -21
  2659. package/node_modules/glob/README.md +0 -375
  2660. package/node_modules/glob/changelog.md +0 -67
  2661. package/node_modules/glob/common.js +0 -240
  2662. package/node_modules/glob/glob.js +0 -790
  2663. package/node_modules/glob/package.json +0 -87
  2664. package/node_modules/glob/sync.js +0 -486
  2665. package/node_modules/global-dirs/index.js +0 -90
  2666. package/node_modules/global-dirs/license +0 -9
  2667. package/node_modules/global-dirs/package.json +0 -84
  2668. package/node_modules/global-dirs/readme.md +0 -69
  2669. package/node_modules/got/license +0 -9
  2670. package/node_modules/got/node_modules/get-stream/buffer-stream.js +0 -51
  2671. package/node_modules/got/node_modules/get-stream/index.js +0 -50
  2672. package/node_modules/got/node_modules/get-stream/license +0 -9
  2673. package/node_modules/got/node_modules/get-stream/package.json +0 -78
  2674. package/node_modules/got/node_modules/get-stream/readme.md +0 -123
  2675. package/node_modules/got/node_modules/pump/.travis.yml +0 -5
  2676. package/node_modules/got/node_modules/pump/LICENSE +0 -21
  2677. package/node_modules/got/node_modules/pump/README.md +0 -65
  2678. package/node_modules/got/node_modules/pump/index.js +0 -82
  2679. package/node_modules/got/node_modules/pump/package.json +0 -59
  2680. package/node_modules/got/node_modules/pump/test-browser.js +0 -66
  2681. package/node_modules/got/node_modules/pump/test-node.js +0 -53
  2682. package/node_modules/got/package.json +0 -109
  2683. package/node_modules/got/readme.md +0 -1237
  2684. package/node_modules/got/source/as-promise.js +0 -108
  2685. package/node_modules/got/source/as-stream.js +0 -93
  2686. package/node_modules/got/source/create.js +0 -79
  2687. package/node_modules/got/source/errors.js +0 -107
  2688. package/node_modules/got/source/get-response.js +0 -31
  2689. package/node_modules/got/source/index.js +0 -60
  2690. package/node_modules/got/source/known-hook-events.js +0 -10
  2691. package/node_modules/got/source/merge.js +0 -73
  2692. package/node_modules/got/source/normalize-arguments.js +0 -265
  2693. package/node_modules/got/source/progress.js +0 -96
  2694. package/node_modules/got/source/request-as-event-emitter.js +0 -312
  2695. package/node_modules/got/source/utils/deep-freeze.js +0 -12
  2696. package/node_modules/got/source/utils/get-body-size.js +0 -32
  2697. package/node_modules/got/source/utils/is-form-data.js +0 -4
  2698. package/node_modules/got/source/utils/timed-out.js +0 -160
  2699. package/node_modules/got/source/utils/url-to-options.js +0 -25
  2700. package/node_modules/gunzip-maybe/.npmignore +0 -1
  2701. package/node_modules/has-flag/index.js +0 -8
  2702. package/node_modules/has-flag/license +0 -9
  2703. package/node_modules/has-flag/package.json +0 -81
  2704. package/node_modules/has-flag/readme.md +0 -70
  2705. package/node_modules/has-unicode/LICENSE +0 -14
  2706. package/node_modules/has-unicode/README.md +0 -43
  2707. package/node_modules/has-unicode/index.js +0 -16
  2708. package/node_modules/has-unicode/package.json +0 -58
  2709. package/node_modules/has-yarn/index.d.ts +0 -16
  2710. package/node_modules/has-yarn/index.js +0 -9
  2711. package/node_modules/has-yarn/license +0 -9
  2712. package/node_modules/has-yarn/package.json +0 -71
  2713. package/node_modules/has-yarn/readme.md +0 -60
  2714. package/node_modules/hosted-git-info/CHANGELOG.md +0 -135
  2715. package/node_modules/hosted-git-info/git-host-info.js +0 -79
  2716. package/node_modules/hosted-git-info/git-host.js +0 -156
  2717. package/node_modules/hosted-git-info/index.js +0 -125
  2718. package/node_modules/http-cache-semantics/LICENSE +0 -9
  2719. package/node_modules/http-cache-semantics/README.md +0 -193
  2720. package/node_modules/http-cache-semantics/index.js +0 -653
  2721. package/node_modules/http-cache-semantics/package.json +0 -60
  2722. package/node_modules/import-lazy/index.js +0 -53
  2723. package/node_modules/import-lazy/license +0 -21
  2724. package/node_modules/import-lazy/package.json +0 -76
  2725. package/node_modules/import-lazy/readme.md +0 -64
  2726. package/node_modules/imurmurhash/README.md +0 -122
  2727. package/node_modules/imurmurhash/imurmurhash.js +0 -138
  2728. package/node_modules/imurmurhash/imurmurhash.min.js +0 -12
  2729. package/node_modules/imurmurhash/package.json +0 -65
  2730. package/node_modules/inflight/LICENSE +0 -15
  2731. package/node_modules/inflight/README.md +0 -37
  2732. package/node_modules/inflight/inflight.js +0 -54
  2733. package/node_modules/inflight/package.json +0 -58
  2734. package/node_modules/is-ci/CHANGELOG.md +0 -14
  2735. package/node_modules/is-ci/LICENSE +0 -21
  2736. package/node_modules/is-ci/README.md +0 -50
  2737. package/node_modules/is-ci/bin.js +0 -4
  2738. package/node_modules/is-ci/index.js +0 -3
  2739. package/node_modules/is-ci/package.json +0 -69
  2740. package/node_modules/is-fullwidth-code-point/index.js +0 -46
  2741. package/node_modules/is-fullwidth-code-point/license +0 -21
  2742. package/node_modules/is-fullwidth-code-point/package.json +0 -77
  2743. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  2744. package/node_modules/is-obj/index.js +0 -5
  2745. package/node_modules/is-obj/license +0 -21
  2746. package/node_modules/is-obj/package.json +0 -66
  2747. package/node_modules/is-obj/readme.md +0 -34
  2748. package/node_modules/is-path-inside/index.js +0 -14
  2749. package/node_modules/is-path-inside/license +0 -21
  2750. package/node_modules/is-path-inside/package.json +0 -69
  2751. package/node_modules/is-path-inside/readme.md +0 -34
  2752. package/node_modules/is-stream/index.js +0 -21
  2753. package/node_modules/is-stream/license +0 -21
  2754. package/node_modules/is-stream/package.json +0 -72
  2755. package/node_modules/is-stream/readme.md +0 -42
  2756. package/node_modules/is-yarn-global/.travis.yml +0 -4
  2757. package/node_modules/is-yarn-global/LICENSE +0 -21
  2758. package/node_modules/is-yarn-global/README.md +0 -28
  2759. package/node_modules/is-yarn-global/index.js +0 -12
  2760. package/node_modules/is-yarn-global/package.json +0 -50
  2761. package/node_modules/isexe/LICENSE +0 -15
  2762. package/node_modules/json-buffer/.npmignore +0 -3
  2763. package/node_modules/json-buffer/.travis.yml +0 -3
  2764. package/node_modules/json-buffer/LICENSE +0 -22
  2765. package/node_modules/json-buffer/README.md +0 -24
  2766. package/node_modules/json-buffer/index.js +0 -58
  2767. package/node_modules/json-buffer/package.json +0 -66
  2768. package/node_modules/json-buffer/test/index.js +0 -63
  2769. package/node_modules/json-schema/draft-00/hyper-schema +0 -68
  2770. package/node_modules/json-schema/draft-00/json-ref +0 -26
  2771. package/node_modules/json-schema/draft-00/links +0 -33
  2772. package/node_modules/json-schema/draft-00/schema +0 -155
  2773. package/node_modules/json-schema/draft-01/hyper-schema +0 -68
  2774. package/node_modules/json-schema/draft-01/json-ref +0 -26
  2775. package/node_modules/json-schema/draft-01/links +0 -33
  2776. package/node_modules/json-schema/draft-01/schema +0 -155
  2777. package/node_modules/json-schema/draft-02/hyper-schema +0 -68
  2778. package/node_modules/json-schema/draft-02/json-ref +0 -26
  2779. package/node_modules/json-schema/draft-02/links +0 -35
  2780. package/node_modules/json-schema/draft-02/schema +0 -166
  2781. package/node_modules/json-schema/draft-03/examples/address +0 -20
  2782. package/node_modules/json-schema/draft-03/examples/calendar +0 -53
  2783. package/node_modules/json-schema/draft-03/examples/card +0 -105
  2784. package/node_modules/json-schema/draft-03/examples/geo +0 -8
  2785. package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  2786. package/node_modules/json-schema/draft-03/hyper-schema +0 -60
  2787. package/node_modules/json-schema/draft-03/json-ref +0 -26
  2788. package/node_modules/json-schema/draft-03/links +0 -35
  2789. package/node_modules/json-schema/draft-03/schema +0 -174
  2790. package/node_modules/json-schema/draft-04/hyper-schema +0 -60
  2791. package/node_modules/json-schema/draft-04/links +0 -41
  2792. package/node_modules/json-schema/draft-04/schema +0 -189
  2793. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  2794. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  2795. package/node_modules/json-schema/test/tests.js +0 -95
  2796. package/node_modules/jsonfile/CHANGELOG.md +0 -145
  2797. package/node_modules/keyv/LICENSE +0 -21
  2798. package/node_modules/keyv/README.md +0 -276
  2799. package/node_modules/keyv/package.json +0 -78
  2800. package/node_modules/keyv/src/index.js +0 -103
  2801. package/node_modules/locate-path/index.d.ts +0 -83
  2802. package/node_modules/locate-path/index.js +0 -65
  2803. package/node_modules/locate-path/license +0 -9
  2804. package/node_modules/locate-path/package.json +0 -77
  2805. package/node_modules/locate-path/readme.md +0 -122
  2806. package/node_modules/lowercase-keys/index.js +0 -11
  2807. package/node_modules/lowercase-keys/license +0 -21
  2808. package/node_modules/lowercase-keys/package.json +0 -68
  2809. package/node_modules/lowercase-keys/readme.md +0 -33
  2810. package/node_modules/lru-cache/LICENSE +0 -15
  2811. package/node_modules/lru-cache/index.js +0 -334
  2812. package/node_modules/make-dir/index.js +0 -85
  2813. package/node_modules/make-dir/license +0 -9
  2814. package/node_modules/make-dir/package.json +0 -86
  2815. package/node_modules/make-dir/readme.md +0 -116
  2816. package/node_modules/mimic-response/index.js +0 -32
  2817. package/node_modules/mimic-response/license +0 -9
  2818. package/node_modules/mimic-response/package.json +0 -71
  2819. package/node_modules/mimic-response/readme.md +0 -54
  2820. package/node_modules/minimatch/LICENSE +0 -15
  2821. package/node_modules/minimatch/README.md +0 -209
  2822. package/node_modules/minimatch/minimatch.js +0 -923
  2823. package/node_modules/minimatch/package.json +0 -68
  2824. package/node_modules/minimist/.travis.yml +0 -4
  2825. package/node_modules/minimist/readme.markdown +0 -73
  2826. package/node_modules/minipass/index.js +0 -537
  2827. package/node_modules/minizlib/constants.js +0 -115
  2828. package/node_modules/minizlib/index.js +0 -320
  2829. package/node_modules/mkdirp/.travis.yml +0 -8
  2830. package/node_modules/mkdirp/LICENSE +0 -21
  2831. package/node_modules/mkdirp/bin/cmd.js +0 -33
  2832. package/node_modules/mkdirp/bin/usage.txt +0 -12
  2833. package/node_modules/mkdirp/examples/pow.js +0 -6
  2834. package/node_modules/mkdirp/index.js +0 -98
  2835. package/node_modules/mkdirp/package.json +0 -68
  2836. package/node_modules/mkdirp/readme.markdown +0 -100
  2837. package/node_modules/mkdirp/test/chmod.js +0 -41
  2838. package/node_modules/mkdirp/test/clobber.js +0 -38
  2839. package/node_modules/mkdirp/test/mkdirp.js +0 -28
  2840. package/node_modules/mkdirp/test/opts_fs.js +0 -29
  2841. package/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
  2842. package/node_modules/mkdirp/test/perm.js +0 -32
  2843. package/node_modules/mkdirp/test/perm_sync.js +0 -36
  2844. package/node_modules/mkdirp/test/race.js +0 -37
  2845. package/node_modules/mkdirp/test/rel.js +0 -32
  2846. package/node_modules/mkdirp/test/return.js +0 -25
  2847. package/node_modules/mkdirp/test/return_sync.js +0 -24
  2848. package/node_modules/mkdirp/test/root.js +0 -19
  2849. package/node_modules/mkdirp/test/sync.js +0 -32
  2850. package/node_modules/mkdirp/test/umask.js +0 -28
  2851. package/node_modules/mkdirp/test/umask_sync.js +0 -32
  2852. package/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md +0 -27
  2853. package/node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md +0 -17
  2854. package/node_modules/node-gyp/.travis.yml +0 -102
  2855. package/node_modules/node-gyp/gyp/AUTHORS +0 -13
  2856. package/node_modules/node-gyp/gyp/DEPS +0 -24
  2857. package/node_modules/node-gyp/gyp/OWNERS +0 -1
  2858. package/node_modules/node-gyp/gyp/PRESUBMIT.py +0 -138
  2859. package/node_modules/node-gyp/gyp/codereview.settings +0 -10
  2860. package/node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py +0 -289
  2861. package/node_modules/node-gyp/gyp/samples/samples +0 -81
  2862. package/node_modules/node-gyp/gyp/samples/samples.bat +0 -5
  2863. package/node_modules/node-gyp/gyp/setup.py +0 -19
  2864. package/node_modules/node-gyp/gyp/tools/README +0 -15
  2865. package/node_modules/node-gyp/gyp/tools/Xcode/README +0 -5
  2866. package/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +0 -27
  2867. package/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +0 -226
  2868. package/node_modules/node-gyp/gyp/tools/emacs/README +0 -12
  2869. package/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +0 -63
  2870. package/node_modules/node-gyp/gyp/tools/emacs/gyp.el +0 -275
  2871. package/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +0 -7
  2872. package/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +0 -1105
  2873. package/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +0 -1107
  2874. package/node_modules/node-gyp/gyp/tools/graphviz.py +0 -102
  2875. package/node_modules/node-gyp/gyp/tools/pretty_gyp.py +0 -157
  2876. package/node_modules/node-gyp/gyp/tools/pretty_sln.py +0 -171
  2877. package/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +0 -337
  2878. package/node_modules/node-gyp/macOS_Catalina.md +0 -69
  2879. package/node_modules/node-gyp/node_modules/semver/CHANGELOG.md +0 -39
  2880. package/node_modules/node-gyp/node_modules/semver/LICENSE +0 -15
  2881. package/node_modules/node-gyp/node_modules/semver/README.md +0 -412
  2882. package/node_modules/node-gyp/node_modules/semver/bin/semver +0 -160
  2883. package/node_modules/node-gyp/node_modules/semver/package.json +0 -60
  2884. package/node_modules/node-gyp/node_modules/semver/range.bnf +0 -16
  2885. package/node_modules/node-gyp/node_modules/semver/semver.js +0 -1483
  2886. package/node_modules/node-gyp/node_modules/which/CHANGELOG.md +0 -152
  2887. package/node_modules/node-gyp/node_modules/which/LICENSE +0 -15
  2888. package/node_modules/node-gyp/node_modules/which/README.md +0 -51
  2889. package/node_modules/node-gyp/node_modules/which/bin/which +0 -52
  2890. package/node_modules/node-gyp/node_modules/which/package.json +0 -65
  2891. package/node_modules/node-gyp/node_modules/which/which.js +0 -135
  2892. package/node_modules/node-gyp/test/docker.sh +0 -112
  2893. package/node_modules/node-gyp/test/fixtures/VS_2017_BuildTools_minimal.txt +0 -1
  2894. package/node_modules/node-gyp/test/fixtures/VS_2017_Community_workload.txt +0 -1
  2895. package/node_modules/node-gyp/test/fixtures/VS_2017_Express.txt +0 -1
  2896. package/node_modules/node-gyp/test/fixtures/VS_2017_Unusable.txt +0 -1
  2897. package/node_modules/node-gyp/test/fixtures/VS_2019_BuildTools_minimal.txt +0 -1
  2898. package/node_modules/node-gyp/test/fixtures/VS_2019_Community_workload.txt +0 -1
  2899. package/node_modules/node-gyp/test/fixtures/VS_2019_Preview.txt +0 -1
  2900. package/node_modules/node-gyp/test/fixtures/ca-bundle.crt +0 -40
  2901. package/node_modules/node-gyp/test/fixtures/ca.crt +0 -21
  2902. package/node_modules/node-gyp/test/fixtures/server.crt +0 -21
  2903. package/node_modules/node-gyp/test/fixtures/server.key +0 -27
  2904. package/node_modules/node-gyp/test/fixtures/test-charmap.py +0 -30
  2905. package/node_modules/node-gyp/test/process-exec-sync.js +0 -140
  2906. package/node_modules/node-gyp/test/simple-proxy.js +0 -27
  2907. package/node_modules/node-gyp/test/test-addon.js +0 -150
  2908. package/node_modules/node-gyp/test/test-configure-python.js +0 -74
  2909. package/node_modules/node-gyp/test/test-download.js +0 -105
  2910. package/node_modules/node-gyp/test/test-find-accessible-sync.js +0 -84
  2911. package/node_modules/node-gyp/test/test-find-node-directory.js +0 -119
  2912. package/node_modules/node-gyp/test/test-find-python.js +0 -231
  2913. package/node_modules/node-gyp/test/test-find-visualstudio.js +0 -676
  2914. package/node_modules/node-gyp/test/test-install.js +0 -38
  2915. package/node_modules/node-gyp/test/test-options.js +0 -25
  2916. package/node_modules/node-gyp/test/test-process-release.js +0 -434
  2917. package/node_modules/nopt/.npmignore +0 -1
  2918. package/node_modules/nopt/.travis.yml +0 -8
  2919. package/node_modules/nopt/CHANGELOG.md +0 -58
  2920. package/node_modules/nopt/examples/my-program.js +0 -30
  2921. package/node_modules/nopt/test/basic.js +0 -303
  2922. package/node_modules/normalize-url/index.d.ts +0 -216
  2923. package/node_modules/normalize-url/index.js +0 -221
  2924. package/node_modules/normalize-url/license +0 -9
  2925. package/node_modules/normalize-url/package.json +0 -76
  2926. package/node_modules/normalize-url/readme.md +0 -232
  2927. package/node_modules/npm-package-arg/CHANGELOG.md +0 -41
  2928. package/node_modules/npm-package-arg/node_modules/semver/CHANGELOG.md +0 -39
  2929. package/node_modules/npm-package-arg/node_modules/semver/LICENSE +0 -15
  2930. package/node_modules/npm-package-arg/node_modules/semver/README.md +0 -412
  2931. package/node_modules/npm-package-arg/node_modules/semver/bin/semver +0 -160
  2932. package/node_modules/npm-package-arg/node_modules/semver/package.json +0 -60
  2933. package/node_modules/npm-package-arg/node_modules/semver/range.bnf +0 -16
  2934. package/node_modules/npm-package-arg/node_modules/semver/semver.js +0 -1483
  2935. package/node_modules/npm-package-arg/npa.js +0 -301
  2936. package/node_modules/npm-run-path/index.js +0 -39
  2937. package/node_modules/npm-run-path/license +0 -21
  2938. package/node_modules/npm-run-path/package.json +0 -77
  2939. package/node_modules/npm-run-path/readme.md +0 -81
  2940. package/node_modules/npmlog/CHANGELOG.md +0 -49
  2941. package/node_modules/npmlog/LICENSE +0 -15
  2942. package/node_modules/npmlog/README.md +0 -216
  2943. package/node_modules/npmlog/log.js +0 -309
  2944. package/node_modules/npmlog/package.json +0 -61
  2945. package/node_modules/number-is-nan/index.js +0 -4
  2946. package/node_modules/number-is-nan/license +0 -21
  2947. package/node_modules/number-is-nan/package.json +0 -70
  2948. package/node_modules/number-is-nan/readme.md +0 -28
  2949. package/node_modules/object-assign/index.js +0 -90
  2950. package/node_modules/object-assign/license +0 -21
  2951. package/node_modules/object-assign/package.json +0 -78
  2952. package/node_modules/object-assign/readme.md +0 -61
  2953. package/node_modules/os-homedir/index.js +0 -24
  2954. package/node_modules/os-homedir/license +0 -21
  2955. package/node_modules/os-homedir/package.json +0 -74
  2956. package/node_modules/os-homedir/readme.md +0 -31
  2957. package/node_modules/os-tmpdir/index.js +0 -25
  2958. package/node_modules/os-tmpdir/license +0 -21
  2959. package/node_modules/os-tmpdir/package.json +0 -74
  2960. package/node_modules/os-tmpdir/readme.md +0 -32
  2961. package/node_modules/osenv/LICENSE +0 -15
  2962. package/node_modules/osenv/README.md +0 -63
  2963. package/node_modules/osenv/osenv.js +0 -72
  2964. package/node_modules/osenv/package.json +0 -74
  2965. package/node_modules/p-cancelable/index.d.ts +0 -168
  2966. package/node_modules/p-cancelable/index.js +0 -103
  2967. package/node_modules/p-cancelable/license +0 -9
  2968. package/node_modules/p-cancelable/package.json +0 -81
  2969. package/node_modules/p-cancelable/readme.md +0 -155
  2970. package/node_modules/p-finally/index.js +0 -15
  2971. package/node_modules/p-finally/license +0 -21
  2972. package/node_modules/p-finally/package.json +0 -74
  2973. package/node_modules/p-finally/readme.md +0 -47
  2974. package/node_modules/p-limit/index.d.ts +0 -29
  2975. package/node_modules/p-limit/index.js +0 -52
  2976. package/node_modules/p-limit/license +0 -9
  2977. package/node_modules/p-limit/package.json +0 -89
  2978. package/node_modules/p-limit/readme.md +0 -99
  2979. package/node_modules/p-locate/index.d.ts +0 -64
  2980. package/node_modules/p-locate/index.js +0 -52
  2981. package/node_modules/p-locate/license +0 -9
  2982. package/node_modules/p-locate/package.json +0 -85
  2983. package/node_modules/p-locate/readme.md +0 -90
  2984. package/node_modules/p-try/index.d.ts +0 -39
  2985. package/node_modules/p-try/index.js +0 -9
  2986. package/node_modules/p-try/license +0 -9
  2987. package/node_modules/p-try/package.json +0 -74
  2988. package/node_modules/p-try/readme.md +0 -58
  2989. package/node_modules/path-exists/index.d.ts +0 -28
  2990. package/node_modules/path-exists/index.js +0 -23
  2991. package/node_modules/path-exists/license +0 -9
  2992. package/node_modules/path-exists/package.json +0 -71
  2993. package/node_modules/path-exists/readme.md +0 -52
  2994. package/node_modules/path-is-absolute/index.js +0 -20
  2995. package/node_modules/path-is-absolute/license +0 -21
  2996. package/node_modules/path-is-absolute/package.json +0 -75
  2997. package/node_modules/path-is-absolute/readme.md +0 -59
  2998. package/node_modules/path-is-inside/LICENSE.txt +0 -47
  2999. package/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
  3000. package/node_modules/path-is-inside/package.json +0 -63
  3001. package/node_modules/path-key/index.js +0 -13
  3002. package/node_modules/path-key/license +0 -21
  3003. package/node_modules/path-key/package.json +0 -73
  3004. package/node_modules/path-key/readme.md +0 -51
  3005. package/node_modules/pify/index.js +0 -84
  3006. package/node_modules/pify/license +0 -9
  3007. package/node_modules/pify/package.json +0 -95
  3008. package/node_modules/pify/readme.md +0 -131
  3009. package/node_modules/prepend-http/index.js +0 -15
  3010. package/node_modules/prepend-http/license +0 -9
  3011. package/node_modules/prepend-http/package.json +0 -67
  3012. package/node_modules/prepend-http/readme.md +0 -56
  3013. package/node_modules/pseudomap/LICENSE +0 -15
  3014. package/node_modules/pseudomap/README.md +0 -60
  3015. package/node_modules/pseudomap/map.js +0 -9
  3016. package/node_modules/pseudomap/package.json +0 -55
  3017. package/node_modules/pseudomap/pseudomap.js +0 -113
  3018. package/node_modules/pseudomap/test/basic.js +0 -86
  3019. package/node_modules/psl/data/rules.json +0 -8807
  3020. package/node_modules/psl/dist/psl.js +0 -9618
  3021. package/node_modules/psl/dist/psl.min.js +0 -1
  3022. package/node_modules/qs/.eslintignore +0 -1
  3023. package/node_modules/qs/LICENSE +0 -28
  3024. package/node_modules/qs/test/.eslintrc +0 -15
  3025. package/node_modules/rc/node_modules/minimist/.travis.yml +0 -8
  3026. package/node_modules/rc/node_modules/minimist/LICENSE +0 -18
  3027. package/node_modules/rc/node_modules/minimist/example/parse.js +0 -2
  3028. package/node_modules/rc/node_modules/minimist/index.js +0 -236
  3029. package/node_modules/rc/node_modules/minimist/package.json +0 -73
  3030. package/node_modules/rc/node_modules/minimist/readme.markdown +0 -91
  3031. package/node_modules/rc/node_modules/minimist/test/all_bool.js +0 -32
  3032. package/node_modules/rc/node_modules/minimist/test/bool.js +0 -166
  3033. package/node_modules/rc/node_modules/minimist/test/dash.js +0 -31
  3034. package/node_modules/rc/node_modules/minimist/test/default_bool.js +0 -35
  3035. package/node_modules/rc/node_modules/minimist/test/dotted.js +0 -22
  3036. package/node_modules/rc/node_modules/minimist/test/kv_short.js +0 -16
  3037. package/node_modules/rc/node_modules/minimist/test/long.js +0 -31
  3038. package/node_modules/rc/node_modules/minimist/test/num.js +0 -36
  3039. package/node_modules/rc/node_modules/minimist/test/parse.js +0 -197
  3040. package/node_modules/rc/node_modules/minimist/test/parse_modified.js +0 -9
  3041. package/node_modules/rc/node_modules/minimist/test/short.js +0 -67
  3042. package/node_modules/rc/node_modules/minimist/test/stop_early.js +0 -15
  3043. package/node_modules/rc/node_modules/minimist/test/unknown.js +0 -102
  3044. package/node_modules/rc/node_modules/minimist/test/whitespace.js +0 -8
  3045. package/node_modules/registry-auth-token/.npmignore +0 -6
  3046. package/node_modules/registry-auth-token/base64.js +0 -14
  3047. package/node_modules/registry-auth-token/package-lock.json +0 -2624
  3048. package/node_modules/registry-auth-token/test/auth-token.test.js +0 -455
  3049. package/node_modules/registry-auth-token/test/registry-url.test.js +0 -64
  3050. package/node_modules/require-directory/.jshintrc +0 -67
  3051. package/node_modules/require-directory/.npmignore +0 -1
  3052. package/node_modules/require-directory/.travis.yml +0 -3
  3053. package/node_modules/require-directory/LICENSE +0 -22
  3054. package/node_modules/require-directory/README.markdown +0 -184
  3055. package/node_modules/require-directory/index.js +0 -86
  3056. package/node_modules/require-directory/package.json +0 -71
  3057. package/node_modules/require-main-filename/CHANGELOG.md +0 -26
  3058. package/node_modules/require-main-filename/README.md +0 -26
  3059. package/node_modules/require-main-filename/index.js +0 -18
  3060. package/node_modules/require-main-filename/package.json +0 -66
  3061. package/node_modules/responselike/LICENSE +0 -19
  3062. package/node_modules/responselike/README.md +0 -77
  3063. package/node_modules/responselike/package.json +0 -69
  3064. package/node_modules/responselike/src/index.js +0 -34
  3065. package/node_modules/rimraf/LICENSE +0 -15
  3066. package/node_modules/rimraf/README.md +0 -101
  3067. package/node_modules/rimraf/bin.js +0 -50
  3068. package/node_modules/rimraf/package.json +0 -72
  3069. package/node_modules/rimraf/rimraf.js +0 -372
  3070. package/node_modules/semver/CHANGELOG.md +0 -70
  3071. package/node_modules/semver/semver.js +0 -1596
  3072. package/node_modules/semver-diff/index.js +0 -27
  3073. package/node_modules/semver-diff/license +0 -21
  3074. package/node_modules/semver-diff/node_modules/semver/CHANGELOG.md +0 -39
  3075. package/node_modules/semver-diff/node_modules/semver/LICENSE +0 -15
  3076. package/node_modules/semver-diff/node_modules/semver/README.md +0 -412
  3077. package/node_modules/semver-diff/node_modules/semver/bin/semver +0 -160
  3078. package/node_modules/semver-diff/node_modules/semver/package.json +0 -60
  3079. package/node_modules/semver-diff/node_modules/semver/range.bnf +0 -16
  3080. package/node_modules/semver-diff/node_modules/semver/semver.js +0 -1483
  3081. package/node_modules/semver-diff/package.json +0 -66
  3082. package/node_modules/semver-diff/readme.md +0 -52
  3083. package/node_modules/set-blocking/CHANGELOG.md +0 -26
  3084. package/node_modules/set-blocking/LICENSE.txt +0 -14
  3085. package/node_modules/set-blocking/README.md +0 -31
  3086. package/node_modules/set-blocking/index.js +0 -7
  3087. package/node_modules/set-blocking/package.json +0 -73
  3088. package/node_modules/shebang-command/index.js +0 -19
  3089. package/node_modules/shebang-command/license +0 -21
  3090. package/node_modules/shebang-command/package.json +0 -73
  3091. package/node_modules/shebang-command/readme.md +0 -39
  3092. package/node_modules/shebang-regex/index.js +0 -2
  3093. package/node_modules/shebang-regex/license +0 -21
  3094. package/node_modules/shebang-regex/package.json +0 -64
  3095. package/node_modules/shebang-regex/readme.md +0 -29
  3096. package/node_modules/signal-exit/CHANGELOG.md +0 -27
  3097. package/node_modules/signal-exit/LICENSE.txt +0 -16
  3098. package/node_modules/signal-exit/README.md +0 -40
  3099. package/node_modules/signal-exit/index.js +0 -157
  3100. package/node_modules/signal-exit/package.json +0 -73
  3101. package/node_modules/signal-exit/signals.js +0 -53
  3102. package/node_modules/sshpk/.npmignore +0 -9
  3103. package/node_modules/stream-shift/.npmignore +0 -1
  3104. package/node_modules/stream-shift/.travis.yml +0 -6
  3105. package/node_modules/strip-eof/index.js +0 -15
  3106. package/node_modules/strip-eof/license +0 -21
  3107. package/node_modules/strip-eof/package.json +0 -71
  3108. package/node_modules/strip-eof/readme.md +0 -28
  3109. package/node_modules/strip-json-comments/license +0 -21
  3110. package/node_modules/strip-json-comments/package.json +0 -74
  3111. package/node_modules/tar/LICENSE +0 -15
  3112. package/node_modules/tar/index.js +0 -18
  3113. package/node_modules/tar/lib/buffer.js +0 -11
  3114. package/node_modules/tar/lib/create.js +0 -105
  3115. package/node_modules/tar/lib/extract.js +0 -112
  3116. package/node_modules/tar/lib/header.js +0 -289
  3117. package/node_modules/tar/lib/high-level-opt.js +0 -29
  3118. package/node_modules/tar/lib/large-numbers.js +0 -97
  3119. package/node_modules/tar/lib/list.js +0 -130
  3120. package/node_modules/tar/lib/mkdir.js +0 -206
  3121. package/node_modules/tar/lib/mode-fix.js +0 -14
  3122. package/node_modules/tar/lib/pack.js +0 -404
  3123. package/node_modules/tar/lib/parse.js +0 -428
  3124. package/node_modules/tar/lib/pax.js +0 -146
  3125. package/node_modules/tar/lib/read-entry.js +0 -98
  3126. package/node_modules/tar/lib/replace.js +0 -220
  3127. package/node_modules/tar/lib/types.js +0 -44
  3128. package/node_modules/tar/lib/unpack.js +0 -621
  3129. package/node_modules/tar/lib/update.js +0 -36
  3130. package/node_modules/tar/lib/warn-mixin.js +0 -14
  3131. package/node_modules/tar/lib/winchars.js +0 -23
  3132. package/node_modules/tar/lib/write-entry.js +0 -422
  3133. package/node_modules/tar-fs/.travis.yml +0 -5
  3134. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  3135. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  3136. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  3137. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  3138. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  3139. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  3140. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  3141. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  3142. package/node_modules/tar-fs/test/index.js +0 -346
  3143. package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  3144. package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
  3145. package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
  3146. package/node_modules/tar-stream/node_modules/readable-stream/README.md +0 -111
  3147. package/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +0 -127
  3148. package/node_modules/tar-stream/node_modules/readable-stream/errors.js +0 -116
  3149. package/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +0 -17
  3150. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  3151. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  3152. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
  3153. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  3154. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +0 -683
  3155. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  3156. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
  3157. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
  3158. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  3159. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  3160. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  3161. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  3162. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  3163. package/node_modules/tar-stream/node_modules/readable-stream/package.json +0 -95
  3164. package/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +0 -9
  3165. package/node_modules/tar-stream/node_modules/readable-stream/readable.js +0 -16
  3166. package/node_modules/term-size/index.js +0 -70
  3167. package/node_modules/term-size/license +0 -21
  3168. package/node_modules/term-size/package.json +0 -75
  3169. package/node_modules/term-size/readme.md +0 -41
  3170. package/node_modules/term-size/vendor/macos/term-size +0 -0
  3171. package/node_modules/term-size/vendor/windows/term-size.exe +0 -0
  3172. package/node_modules/to-readable-stream/index.js +0 -11
  3173. package/node_modules/to-readable-stream/license +0 -9
  3174. package/node_modules/to-readable-stream/package.json +0 -72
  3175. package/node_modules/to-readable-stream/readme.md +0 -42
  3176. package/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +0 -20
  3177. package/node_modules/tough-cookie/node_modules/punycode/README.md +0 -176
  3178. package/node_modules/tough-cookie/node_modules/punycode/package.json +0 -87
  3179. package/node_modules/tough-cookie/node_modules/punycode/punycode.js +0 -533
  3180. package/node_modules/type-fest/index.d.ts +0 -206
  3181. package/node_modules/type-fest/license +0 -9
  3182. package/node_modules/type-fest/package.json +0 -82
  3183. package/node_modules/type-fest/readme.md +0 -112
  3184. package/node_modules/type-fest/source/package-json.d.ts +0 -494
  3185. package/node_modules/unique-string/index.js +0 -4
  3186. package/node_modules/unique-string/license +0 -21
  3187. package/node_modules/unique-string/package.json +0 -76
  3188. package/node_modules/unique-string/readme.md +0 -32
  3189. package/node_modules/update-notifier/node_modules/ansi-styles/index.js +0 -165
  3190. package/node_modules/update-notifier/node_modules/ansi-styles/license +0 -9
  3191. package/node_modules/update-notifier/node_modules/ansi-styles/package.json +0 -88
  3192. package/node_modules/update-notifier/node_modules/ansi-styles/readme.md +0 -147
  3193. package/node_modules/update-notifier/node_modules/chalk/index.js +0 -228
  3194. package/node_modules/update-notifier/node_modules/chalk/index.js.flow +0 -93
  3195. package/node_modules/update-notifier/node_modules/chalk/templates.js +0 -128
  3196. package/node_modules/update-notifier/node_modules/chalk/types/index.d.ts +0 -97
  3197. package/node_modules/update-notifier/node_modules/supports-color/browser.js +0 -5
  3198. package/node_modules/update-notifier/node_modules/supports-color/index.js +0 -131
  3199. package/node_modules/update-notifier/node_modules/supports-color/license +0 -9
  3200. package/node_modules/update-notifier/node_modules/supports-color/package.json +0 -85
  3201. package/node_modules/update-notifier/node_modules/supports-color/readme.md +0 -66
  3202. package/node_modules/uri-js/bower.json +0 -47
  3203. package/node_modules/uri-js/rollup.config.js +0 -32
  3204. package/node_modules/uri-js/src/index.ts +0 -18
  3205. package/node_modules/uri-js/src/punycode.d.ts +0 -24
  3206. package/node_modules/uri-js/src/regexps-iri.ts +0 -4
  3207. package/node_modules/uri-js/src/regexps-uri.ts +0 -89
  3208. package/node_modules/uri-js/src/schemes/http.ts +0 -36
  3209. package/node_modules/uri-js/src/schemes/https.ts +0 -11
  3210. package/node_modules/uri-js/src/schemes/mailto.ts +0 -182
  3211. package/node_modules/uri-js/src/schemes/urn-uuid.ts +0 -36
  3212. package/node_modules/uri-js/src/schemes/urn.ts +0 -69
  3213. package/node_modules/uri-js/src/uri.ts +0 -556
  3214. package/node_modules/uri-js/src/util.ts +0 -40
  3215. package/node_modules/uri-js/tests/qunit.css +0 -118
  3216. package/node_modules/uri-js/tests/qunit.js +0 -1042
  3217. package/node_modules/uri-js/tests/test-es5-min.html +0 -17
  3218. package/node_modules/uri-js/tests/test-es5.html +0 -17
  3219. package/node_modules/uri-js/tests/tests.js +0 -774
  3220. package/node_modules/uri-js/tsconfig.json +0 -20
  3221. package/node_modules/uri-js/yarn.lock +0 -1902
  3222. package/node_modules/url-parse-lax/index.js +0 -12
  3223. package/node_modules/url-parse-lax/license +0 -9
  3224. package/node_modules/url-parse-lax/package.json +0 -74
  3225. package/node_modules/url-parse-lax/readme.md +0 -127
  3226. package/node_modules/validate-npm-package-name/.npmignore +0 -1
  3227. package/node_modules/validate-npm-package-name/.nyc_output/aa4ee25ac41a9c3c7ee37ce965e6d1ac.json +0 -1
  3228. package/node_modules/validate-npm-package-name/.nyc_output/bb918173e62b9517f55b630902d07ef4.json +0 -1
  3229. package/node_modules/validate-npm-package-name/.travis.yml +0 -6
  3230. package/node_modules/validate-npm-package-name/index.js +0 -105
  3231. package/node_modules/validate-npm-package-name/test/index.js +0 -109
  3232. package/node_modules/which/CHANGELOG.md +0 -166
  3233. package/node_modules/which/bin/node-which +0 -52
  3234. package/node_modules/which/which.js +0 -125
  3235. package/node_modules/which-module/CHANGELOG.md +0 -26
  3236. package/node_modules/which-module/LICENSE +0 -13
  3237. package/node_modules/which-module/README.md +0 -55
  3238. package/node_modules/which-module/index.js +0 -9
  3239. package/node_modules/which-module/package.json +0 -70
  3240. package/node_modules/wide-align/LICENSE +0 -14
  3241. package/node_modules/wide-align/README.md +0 -47
  3242. package/node_modules/wide-align/align.js +0 -65
  3243. package/node_modules/wide-align/package.json +0 -66
  3244. package/node_modules/widest-line/node_modules/ansi-regex/index.js +0 -10
  3245. package/node_modules/widest-line/node_modules/ansi-regex/license +0 -9
  3246. package/node_modules/widest-line/node_modules/ansi-regex/package.json +0 -85
  3247. package/node_modules/widest-line/node_modules/ansi-regex/readme.md +0 -46
  3248. package/node_modules/widest-line/node_modules/is-fullwidth-code-point/index.js +0 -46
  3249. package/node_modules/widest-line/node_modules/is-fullwidth-code-point/license +0 -21
  3250. package/node_modules/widest-line/node_modules/is-fullwidth-code-point/package.json +0 -77
  3251. package/node_modules/widest-line/node_modules/is-fullwidth-code-point/readme.md +0 -39
  3252. package/node_modules/widest-line/node_modules/string-width/index.js +0 -36
  3253. package/node_modules/widest-line/node_modules/string-width/license +0 -9
  3254. package/node_modules/widest-line/node_modules/string-width/package.json +0 -87
  3255. package/node_modules/widest-line/node_modules/string-width/readme.md +0 -42
  3256. package/node_modules/widest-line/node_modules/strip-ansi/index.js +0 -4
  3257. package/node_modules/widest-line/node_modules/strip-ansi/license +0 -9
  3258. package/node_modules/widest-line/node_modules/strip-ansi/package.json +0 -84
  3259. package/node_modules/widest-line/node_modules/strip-ansi/readme.md +0 -39
  3260. package/node_modules/wrap-ansi/node_modules/color-convert/CHANGELOG.md +0 -54
  3261. package/node_modules/wrap-ansi/node_modules/color-convert/LICENSE +0 -21
  3262. package/node_modules/wrap-ansi/node_modules/color-convert/README.md +0 -68
  3263. package/node_modules/wrap-ansi/node_modules/color-convert/conversions.js +0 -839
  3264. package/node_modules/wrap-ansi/node_modules/color-convert/index.js +0 -81
  3265. package/node_modules/wrap-ansi/node_modules/color-convert/package.json +0 -83
  3266. package/node_modules/wrap-ansi/node_modules/color-convert/route.js +0 -97
  3267. package/node_modules/wrap-ansi/node_modules/color-name/LICENSE +0 -8
  3268. package/node_modules/wrap-ansi/node_modules/color-name/README.md +0 -11
  3269. package/node_modules/wrap-ansi/node_modules/color-name/index.js +0 -152
  3270. package/node_modules/wrap-ansi/node_modules/color-name/package.json +0 -56
  3271. package/node_modules/wrap-ansi/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  3272. package/node_modules/wrap-ansi/node_modules/emoji-regex/README.md +0 -73
  3273. package/node_modules/wrap-ansi/node_modules/emoji-regex/es2015/index.js +0 -6
  3274. package/node_modules/wrap-ansi/node_modules/emoji-regex/es2015/text.js +0 -6
  3275. package/node_modules/wrap-ansi/node_modules/emoji-regex/index.d.ts +0 -23
  3276. package/node_modules/wrap-ansi/node_modules/emoji-regex/index.js +0 -6
  3277. package/node_modules/wrap-ansi/node_modules/emoji-regex/package.json +0 -77
  3278. package/node_modules/wrap-ansi/node_modules/emoji-regex/text.js +0 -6
  3279. package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  3280. package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -50
  3281. package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -9
  3282. package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -74
  3283. package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
  3284. package/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +0 -29
  3285. package/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -43
  3286. package/node_modules/wrap-ansi/node_modules/string-width/license +0 -9
  3287. package/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -88
  3288. package/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -50
  3289. package/node_modules/write-file-atomic/CHANGELOG.md +0 -25
  3290. package/node_modules/write-file-atomic/LICENSE +0 -6
  3291. package/node_modules/write-file-atomic/README.md +0 -56
  3292. package/node_modules/write-file-atomic/index.js +0 -238
  3293. package/node_modules/write-file-atomic/package.json +0 -71
  3294. package/node_modules/xdg-basedir/index.js +0 -28
  3295. package/node_modules/xdg-basedir/license +0 -21
  3296. package/node_modules/xdg-basedir/package.json +0 -73
  3297. package/node_modules/xdg-basedir/readme.md +0 -60
  3298. package/node_modules/y18n/index.js +0 -188
  3299. package/node_modules/yallist/LICENSE +0 -15
  3300. package/node_modules/yallist/iterator.js +0 -8
  3301. package/node_modules/yallist/yallist.js +0 -426
  3302. package/node_modules/yargs/CHANGELOG.md +0 -1440
  3303. package/node_modules/yargs/index.js +0 -39
  3304. package/node_modules/yargs/lib/apply-extends.js +0 -67
  3305. package/node_modules/yargs/lib/argsert.js +0 -68
  3306. package/node_modules/yargs/lib/command.js +0 -447
  3307. package/node_modules/yargs/lib/completion-templates.js +0 -49
  3308. package/node_modules/yargs/lib/completion.js +0 -116
  3309. package/node_modules/yargs/lib/is-promise.js +0 -3
  3310. package/node_modules/yargs/lib/levenshtein.js +0 -58
  3311. package/node_modules/yargs/lib/middleware.js +0 -64
  3312. package/node_modules/yargs/lib/obj-filter.js +0 -11
  3313. package/node_modules/yargs/lib/usage.js +0 -549
  3314. package/node_modules/yargs/lib/validation.js +0 -350
  3315. package/node_modules/yargs/lib/yerror.js +0 -11
  3316. package/node_modules/yargs/node_modules/ansi-regex/index.js +0 -10
  3317. package/node_modules/yargs/node_modules/ansi-regex/license +0 -9
  3318. package/node_modules/yargs/node_modules/ansi-regex/package.json +0 -87
  3319. package/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -78
  3320. package/node_modules/yargs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  3321. package/node_modules/yargs/node_modules/emoji-regex/README.md +0 -73
  3322. package/node_modules/yargs/node_modules/emoji-regex/es2015/index.js +0 -6
  3323. package/node_modules/yargs/node_modules/emoji-regex/es2015/text.js +0 -6
  3324. package/node_modules/yargs/node_modules/emoji-regex/index.d.ts +0 -23
  3325. package/node_modules/yargs/node_modules/emoji-regex/index.js +0 -6
  3326. package/node_modules/yargs/node_modules/emoji-regex/package.json +0 -77
  3327. package/node_modules/yargs/node_modules/emoji-regex/text.js +0 -6
  3328. package/node_modules/yargs/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  3329. package/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -50
  3330. package/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -9
  3331. package/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -74
  3332. package/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
  3333. package/node_modules/yargs/node_modules/string-width/index.d.ts +0 -29
  3334. package/node_modules/yargs/node_modules/string-width/index.js +0 -43
  3335. package/node_modules/yargs/node_modules/string-width/license +0 -9
  3336. package/node_modules/yargs/node_modules/string-width/package.json +0 -88
  3337. package/node_modules/yargs/node_modules/string-width/readme.md +0 -50
  3338. package/node_modules/yargs/node_modules/strip-ansi/index.js +0 -4
  3339. package/node_modules/yargs/node_modules/strip-ansi/license +0 -9
  3340. package/node_modules/yargs/node_modules/strip-ansi/package.json +0 -86
  3341. package/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -46
  3342. package/node_modules/yargs/yargs.js +0 -1238
  3343. package/node_modules/yargs-parser/CHANGELOG.md +0 -524
  3344. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  3345. package/node_modules/yargs-parser/README.md +0 -422
  3346. package/node_modules/yargs-parser/index.js +0 -971
  3347. package/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
  3348. package/node_modules/yargs-parser/package.json +0 -79
  3349. /package/node_modules/{chownr → @isaacs/fs-minipass}/LICENSE +0 -0
  3350. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/LICENSE-MIT.txt +0 -0
  3351. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/README.md +0 -0
  3352. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/es2015/index.js +0 -0
  3353. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/es2015/text.js +0 -0
  3354. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/index.d.ts +0 -0
  3355. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/index.js +0 -0
  3356. /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/text.js +0 -0
  3357. /package/node_modules/{cliui → ansi-align}/node_modules/is-fullwidth-code-point/index.d.ts +0 -0
  3358. /package/node_modules/{cliui → ansi-align}/node_modules/string-width/index.d.ts +0 -0
  3359. /package/node_modules/{yargs/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
  3360. /package/node_modules/{minipass → cmd-shim}/LICENSE +0 -0
  3361. /package/node_modules/{cross-spawn/node_modules/lru-cache → global-directory/node_modules/ini}/LICENSE +0 -0
  3362. /package/node_modules/{tar-fs/test/fixtures/d/file1 → node-gyp/gyp/pylib/packaging/py.typed} +0 -0
  3363. /package/node_modules/{isexe → npm-path/node_modules/isexe}/.npmignore +0 -0
  3364. /package/node_modules/{cross-spawn/node_modules/which → npm-path/node_modules/isexe}/LICENSE +0 -0
  3365. /package/node_modules/{isexe → npm-path/node_modules/isexe}/index.js +0 -0
  3366. /package/node_modules/{isexe → npm-path/node_modules/isexe}/mode.js +0 -0
  3367. /package/node_modules/{isexe → npm-path/node_modules/isexe}/test/basic.js +0 -0
  3368. /package/node_modules/{isexe → npm-path/node_modules/isexe}/windows.js +0 -0
  3369. /package/node_modules/{cross-spawn/node_modules/yallist → proto-list}/LICENSE +0 -0
  3370. /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/index.js +0 -0
  3371. /package/node_modules/{boxen/node_modules/is-fullwidth-code-point → rc/node_modules/strip-json-comments}/license +0 -0
  3372. /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/readme.md +0 -0
  3373. /package/node_modules/{ansi-align → string-width}/node_modules/strip-ansi/index.d.ts +0 -0
  3374. /package/node_modules/{yargs/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
  3375. /package/node_modules/{tar-fs/test/fixtures/d/file2 → undici/lib/llhttp/.gitkeep} +0 -0
  3376. /package/node_modules/{core-util-is → verror/node_modules/core-util-is}/float.patch +0 -0
  3377. /package/node_modules/{core-util-is → verror/node_modules/core-util-is}/test.js +0 -0
  3378. /package/node_modules/{require-main-filename → yargs/node_modules/yargs-parser}/LICENSE.txt +0 -0
@@ -21,39 +21,37 @@
21
21
  # toplevel Makefile. It may make sense to generate some .mk files on
22
22
  # the side to keep the files readable.
23
23
 
24
- from __future__ import print_function
25
24
 
25
+ import hashlib
26
26
  import os
27
27
  import re
28
- import sys
29
28
  import subprocess
29
+ import sys
30
+
30
31
  import gyp
31
32
  import gyp.common
32
33
  import gyp.xcode_emulation
33
34
  from gyp.common import GetEnvironFallback
34
- from gyp.common import GypError
35
-
36
- import hashlib
37
35
 
38
36
  generator_default_variables = {
39
- 'EXECUTABLE_PREFIX': '',
40
- 'EXECUTABLE_SUFFIX': '',
41
- 'STATIC_LIB_PREFIX': 'lib',
42
- 'SHARED_LIB_PREFIX': 'lib',
43
- 'STATIC_LIB_SUFFIX': '.a',
44
- 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni',
45
- 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen',
46
- 'PRODUCT_DIR': '$(builddir)',
47
- 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python.
48
- 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python.
49
- 'RULE_INPUT_PATH': '$(abspath $<)',
50
- 'RULE_INPUT_EXT': '$(suffix $<)',
51
- 'RULE_INPUT_NAME': '$(notdir $<)',
52
- 'CONFIGURATION_NAME': '$(BUILDTYPE)',
37
+ "EXECUTABLE_PREFIX": "",
38
+ "EXECUTABLE_SUFFIX": "",
39
+ "STATIC_LIB_PREFIX": "lib",
40
+ "SHARED_LIB_PREFIX": "lib",
41
+ "STATIC_LIB_SUFFIX": ".a",
42
+ "INTERMEDIATE_DIR": "$(obj).$(TOOLSET)/$(TARGET)/geni",
43
+ "SHARED_INTERMEDIATE_DIR": "$(obj)/gen",
44
+ "PRODUCT_DIR": "$(builddir)",
45
+ "RULE_INPUT_ROOT": "%(INPUT_ROOT)s", # This gets expanded by Python.
46
+ "RULE_INPUT_DIRNAME": "%(INPUT_DIRNAME)s", # This gets expanded by Python.
47
+ "RULE_INPUT_PATH": "$(abspath $<)",
48
+ "RULE_INPUT_EXT": "$(suffix $<)",
49
+ "RULE_INPUT_NAME": "$(notdir $<)",
50
+ "CONFIGURATION_NAME": "$(BUILDTYPE)",
53
51
  }
54
52
 
55
53
  # Make supports multiple toolsets
56
- generator_supports_multiple_toolsets = True
54
+ generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested()
57
55
 
58
56
  # Request sorted dependencies in the order from dependents to dependencies.
59
57
  generator_wants_sorted_dependencies = False
@@ -66,63 +64,72 @@ generator_filelist_paths = None
66
64
 
67
65
 
68
66
  def CalculateVariables(default_variables, params):
69
- """Calculate additional variables for use in the build (called by gyp)."""
70
- flavor = gyp.common.GetFlavor(params)
71
- if flavor == 'mac':
72
- default_variables.setdefault('OS', 'mac')
73
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.dylib')
74
- default_variables.setdefault('SHARED_LIB_DIR',
75
- generator_default_variables['PRODUCT_DIR'])
76
- default_variables.setdefault('LIB_DIR',
77
- generator_default_variables['PRODUCT_DIR'])
78
-
79
- # Copy additional generator configuration data from Xcode, which is shared
80
- # by the Mac Make generator.
81
- import gyp.generator.xcode as xcode_generator
82
- global generator_additional_non_configuration_keys
83
- generator_additional_non_configuration_keys = getattr(xcode_generator,
84
- 'generator_additional_non_configuration_keys', [])
85
- global generator_additional_path_sections
86
- generator_additional_path_sections = getattr(xcode_generator,
87
- 'generator_additional_path_sections', [])
88
- global generator_extra_sources_for_rules
89
- generator_extra_sources_for_rules = getattr(xcode_generator,
90
- 'generator_extra_sources_for_rules', [])
91
- COMPILABLE_EXTENSIONS.update({'.m': 'objc', '.mm' : 'objcxx'})
92
- else:
93
- operating_system = flavor
94
- if flavor == 'android':
95
- operating_system = 'linux' # Keep this legacy behavior for now.
96
- default_variables.setdefault('OS', operating_system)
97
- if flavor == 'aix':
98
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.a')
67
+ """Calculate additional variables for use in the build (called by gyp)."""
68
+ flavor = gyp.common.GetFlavor(params)
69
+ if flavor == "mac":
70
+ default_variables.setdefault("OS", "mac")
71
+ default_variables.setdefault("SHARED_LIB_SUFFIX", ".dylib")
72
+ default_variables.setdefault(
73
+ "SHARED_LIB_DIR", generator_default_variables["PRODUCT_DIR"]
74
+ )
75
+ default_variables.setdefault(
76
+ "LIB_DIR", generator_default_variables["PRODUCT_DIR"]
77
+ )
78
+
79
+ # Copy additional generator configuration data from Xcode, which is shared
80
+ # by the Mac Make generator.
81
+ import gyp.generator.xcode as xcode_generator # noqa: PLC0415
82
+
83
+ global generator_additional_non_configuration_keys
84
+ generator_additional_non_configuration_keys = getattr(
85
+ xcode_generator, "generator_additional_non_configuration_keys", []
86
+ )
87
+ global generator_additional_path_sections
88
+ generator_additional_path_sections = getattr(
89
+ xcode_generator, "generator_additional_path_sections", []
90
+ )
91
+ global generator_extra_sources_for_rules
92
+ generator_extra_sources_for_rules = getattr(
93
+ xcode_generator, "generator_extra_sources_for_rules", []
94
+ )
95
+ COMPILABLE_EXTENSIONS.update({".m": "objc", ".mm": "objcxx"})
99
96
  else:
100
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.so')
101
- default_variables.setdefault('SHARED_LIB_DIR','$(builddir)/lib.$(TOOLSET)')
102
- default_variables.setdefault('LIB_DIR', '$(obj).$(TOOLSET)')
97
+ operating_system = flavor
98
+ if flavor == "android":
99
+ operating_system = "linux" # Keep this legacy behavior for now.
100
+ default_variables.setdefault("OS", operating_system)
101
+ if flavor == "aix":
102
+ default_variables.setdefault("SHARED_LIB_SUFFIX", ".a")
103
+ elif flavor == "zos":
104
+ default_variables.setdefault("SHARED_LIB_SUFFIX", ".x")
105
+ COMPILABLE_EXTENSIONS.update({".pli": "pli"})
106
+ else:
107
+ default_variables.setdefault("SHARED_LIB_SUFFIX", ".so")
108
+ default_variables.setdefault("SHARED_LIB_DIR", "$(builddir)/lib.$(TOOLSET)")
109
+ default_variables.setdefault("LIB_DIR", "$(obj).$(TOOLSET)")
103
110
 
104
111
 
105
112
  def CalculateGeneratorInputInfo(params):
106
- """Calculate the generator specific info that gets fed to input (called by
107
- gyp)."""
108
- generator_flags = params.get('generator_flags', {})
109
- android_ndk_version = generator_flags.get('android_ndk_version', None)
110
- # Android NDK requires a strict link order.
111
- if android_ndk_version:
112
- global generator_wants_sorted_dependencies
113
- generator_wants_sorted_dependencies = True
114
-
115
- output_dir = params['options'].generator_output or \
116
- params['options'].toplevel_dir
117
- builddir_name = generator_flags.get('output_dir', 'out')
118
- qualified_out_dir = os.path.normpath(os.path.join(
119
- output_dir, builddir_name, 'gypfiles'))
120
-
121
- global generator_filelist_paths
122
- generator_filelist_paths = {
123
- 'toplevel': params['options'].toplevel_dir,
124
- 'qualified_out_dir': qualified_out_dir,
125
- }
113
+ """Calculate the generator specific info that gets fed to input (called by
114
+ gyp)."""
115
+ generator_flags = params.get("generator_flags", {})
116
+ android_ndk_version = generator_flags.get("android_ndk_version", None)
117
+ # Android NDK requires a strict link order.
118
+ if android_ndk_version:
119
+ global generator_wants_sorted_dependencies
120
+ generator_wants_sorted_dependencies = True
121
+
122
+ output_dir = params["options"].generator_output or params["options"].toplevel_dir
123
+ builddir_name = generator_flags.get("output_dir", "out")
124
+ qualified_out_dir = os.path.normpath(
125
+ os.path.join(output_dir, builddir_name, "gypfiles")
126
+ )
127
+
128
+ global generator_filelist_paths
129
+ generator_filelist_paths = {
130
+ "toplevel": params["options"].toplevel_dir,
131
+ "qualified_out_dir": qualified_out_dir,
132
+ }
126
133
 
127
134
 
128
135
  # The .d checking code below uses these functions:
@@ -135,7 +142,7 @@ def CalculateGeneratorInputInfo(params):
135
142
  # is for example
136
143
  # out/Release/.deps/out/Release/Chromium?Framework.framework/foo
137
144
  # This is the replacement character.
138
- SPACE_REPLACEMENT = '?'
145
+ SPACE_REPLACEMENT = "?"
139
146
 
140
147
 
141
148
  LINK_COMMANDS_LINUX = """\
@@ -149,7 +156,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
149
156
  # special "figure out circular dependencies" flags around the entire
150
157
  # input list during linking.
151
158
  quiet_cmd_link = LINK($(TOOLSET)) $@
152
- cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
159
+ cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
160
+
161
+ # Note: this does not handle spaces in paths
162
+ define xargs
163
+ $(1) $(word 1,$(2))
164
+ $(if $(word 2,$(2)),$(call xargs,$(1),$(wordlist 2,$(words $(2)),$(2))))
165
+ endef
166
+
167
+ define write-to-file
168
+ @: >$(1)
169
+ $(call xargs,@printf "%s\\n" >>$(1),$(2))
170
+ endef
171
+
172
+ OBJ_FILE_LIST := ar-file-list
173
+
174
+ define create_archive
175
+ rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
176
+ $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
177
+ $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
178
+ endef
179
+
180
+ define create_thin_archive
181
+ rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
182
+ $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
183
+ $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
184
+ endef
153
185
 
154
186
  # We support two kinds of shared objects (.so):
155
187
  # 1) shared_library, which is just bundling together many dependent libraries
@@ -168,15 +200,15 @@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--s
168
200
  # - Set SONAME to the library filename so our binaries don't reference
169
201
  # the local, absolute paths used on the link command-line.
170
202
  quiet_cmd_solink = SOLINK($(TOOLSET)) $@
171
- cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
203
+ cmd_solink = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
172
204
 
173
205
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
174
- cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
175
- """
206
+ cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
207
+ """ # noqa: E501
176
208
 
177
209
  LINK_COMMANDS_MAC = """\
178
210
  quiet_cmd_alink = LIBTOOL-STATIC $@
179
- cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
211
+ cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)
180
212
 
181
213
  quiet_cmd_link = LINK($(TOOLSET)) $@
182
214
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -186,7 +218,7 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
186
218
 
187
219
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
188
220
  cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
189
- """
221
+ """ % {"python": sys.executable} # noqa: E501
190
222
 
191
223
  LINK_COMMANDS_ANDROID = """\
192
224
  quiet_cmd_alink = AR($(TOOLSET)) $@
@@ -195,13 +227,38 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
195
227
  quiet_cmd_alink_thin = AR($(TOOLSET)) $@
196
228
  cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
197
229
 
230
+ # Note: this does not handle spaces in paths
231
+ define xargs
232
+ $(1) $(word 1,$(2))
233
+ $(if $(word 2,$(2)),$(call xargs,$(1),$(wordlist 2,$(words $(2)),$(2))))
234
+ endef
235
+
236
+ define write-to-file
237
+ @: >$(1)
238
+ $(call xargs,@printf "%s\\n" >>$(1),$(2))
239
+ endef
240
+
241
+ OBJ_FILE_LIST := ar-file-list
242
+
243
+ define create_archive
244
+ rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
245
+ $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
246
+ $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
247
+ endef
248
+
249
+ define create_thin_archive
250
+ rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
251
+ $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
252
+ $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
253
+ endef
254
+
198
255
  # Due to circular dependencies between libraries :(, we wrap the
199
256
  # special "figure out circular dependencies" flags around the entire
200
257
  # input list during linking.
201
258
  quiet_cmd_link = LINK($(TOOLSET)) $@
202
259
  quiet_cmd_link_host = LINK($(TOOLSET)) $@
203
260
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
204
- cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
261
+ cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
205
262
 
206
263
  # Other shared-object link notes:
207
264
  # - Set SONAME to the library filename so our binaries don't reference
@@ -213,7 +270,7 @@ quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
213
270
  cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
214
271
  quiet_cmd_solink_module_host = SOLINK_MODULE($(TOOLSET)) $@
215
272
  cmd_solink_module_host = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
216
- """
273
+ """ # noqa: E501
217
274
 
218
275
 
219
276
  LINK_COMMANDS_AIX = """\
@@ -231,7 +288,25 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
231
288
 
232
289
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
233
290
  cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
234
- """
291
+ """ # noqa: E501
292
+
293
+
294
+ LINK_COMMANDS_OS400 = """\
295
+ quiet_cmd_alink = AR($(TOOLSET)) $@
296
+ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) -X64 crs $@ $(filter %.o,$^)
297
+
298
+ quiet_cmd_alink_thin = AR($(TOOLSET)) $@
299
+ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) -X64 crs $@ $(filter %.o,$^)
300
+
301
+ quiet_cmd_link = LINK($(TOOLSET)) $@
302
+ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
303
+
304
+ quiet_cmd_solink = SOLINK($(TOOLSET)) $@
305
+ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
306
+
307
+ quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
308
+ cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
309
+ """ # noqa: E501
235
310
 
236
311
 
237
312
  LINK_COMMANDS_OS390 = """\
@@ -245,17 +320,17 @@ quiet_cmd_link = LINK($(TOOLSET)) $@
245
320
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
246
321
 
247
322
  quiet_cmd_solink = SOLINK($(TOOLSET)) $@
248
- cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) -Wl,DLL
323
+ cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
249
324
 
250
325
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
251
- cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) -Wl,DLL
252
-
253
- """
326
+ cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
327
+ """ # noqa: E501
254
328
 
255
329
 
256
330
  # Header of toplevel Makefile.
257
331
  # This should go into the build tree, but it's easier to keep it here for now.
258
- SHARED_HEADER = ("""\
332
+ SHARED_HEADER = (
333
+ """\
259
334
  # We borrow heavily from the kernel build setup, though we are simpler since
260
335
  # we don't have Kconfig tweaking settings on us.
261
336
 
@@ -304,7 +379,8 @@ CXX.target ?= %(CXX.target)s
304
379
  CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
305
380
  LINK.target ?= %(LINK.target)s
306
381
  LDFLAGS.target ?= $(LDFLAGS)
307
- AR.target ?= $(AR)
382
+ AR.target ?= %(AR.target)s
383
+ PLI.target ?= %(PLI.target)s
308
384
 
309
385
  # C++ apps need to be linked with g++.
310
386
  LINK ?= $(CXX.target)
@@ -316,8 +392,9 @@ CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
316
392
  CXX.host ?= %(CXX.host)s
317
393
  CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
318
394
  LINK.host ?= %(LINK.host)s
319
- LDFLAGS.host ?=
395
+ LDFLAGS.host ?= $(LDFLAGS_host)
320
396
  AR.host ?= %(AR.host)s
397
+ PLI.host ?= %(PLI.host)s
321
398
 
322
399
  # Define a dir function that can handle spaces.
323
400
  # http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
@@ -327,8 +404,12 @@ empty :=
327
404
  space := $(empty) $(empty)
328
405
 
329
406
  # http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces
330
- replace_spaces = $(subst $(space),""" + SPACE_REPLACEMENT + """,$1)
331
- unreplace_spaces = $(subst """ + SPACE_REPLACEMENT + """,$(space),$1)
407
+ replace_spaces = $(subst $(space),"""
408
+ + SPACE_REPLACEMENT
409
+ + """,$1)
410
+ unreplace_spaces = $(subst """
411
+ + SPACE_REPLACEMENT
412
+ + """,$(space),$1)
332
413
  dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
333
414
 
334
415
  # Flags to make gcc output dependency info. Note that you need to be
@@ -358,45 +439,61 @@ DEPFLAGS = %(makedep_args)s -MF $(depfile).raw
358
439
  # and dollar signs past make, the shell, and sed at the same time.
359
440
  # Doesn't work with spaces, but that's fine: .d files have spaces in
360
441
  # their names replaced with other characters."""
361
- r"""
442
+ r"""
362
443
  define fixup_dep
363
444
  # The depfile may not exist if the input file didn't have any #includes.
364
445
  touch $(depfile).raw
365
- # Fixup path as in (1).
366
- sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
446
+ # Fixup path as in (1)."""
447
+ + (
448
+ r"""
449
+ sed -e "s|^$(notdir $@)|$@|" -re 's/\\\\([^$$])/\/\1/g' $(depfile).raw >> $(depfile)"""
450
+ if sys.platform == "win32"
451
+ else r"""
452
+ sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)"""
453
+ )
454
+ + r"""
367
455
  # Add extra rules as in (2).
368
456
  # We remove slashes and replace spaces with new lines;
369
457
  # remove blank lines;
370
- # delete the first line and append a colon to the remaining lines.
371
- sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
458
+ # delete the first line and append a colon to the remaining lines."""
459
+ + (
460
+ """
461
+ sed -e 's/\\\\\\\\$$//' -e 's/\\\\\\\\/\\//g' -e 'y| |\\n|' $(depfile).raw |\\"""
462
+ if sys.platform == "win32"
463
+ else """
464
+ sed -e 's|\\\\||' -e 'y| |\\n|' $(depfile).raw |\\"""
465
+ )
466
+ + r"""
372
467
  grep -v '^$$' |\
373
468
  sed -e 1d -e 's|$$|:|' \
374
469
  >> $(depfile)
375
470
  rm $(depfile).raw
376
471
  endef
377
472
  """
378
- """
473
+ """
379
474
  # Command definitions:
380
475
  # - cmd_foo is the actual command to run;
381
476
  # - quiet_cmd_foo is the brief-output summary of the command.
382
477
 
383
478
  quiet_cmd_cc = CC($(TOOLSET)) $@
384
- cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
479
+ cmd_cc = $(CC.$(TOOLSET)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
385
480
 
386
481
  quiet_cmd_cxx = CXX($(TOOLSET)) $@
387
- cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
482
+ cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
388
483
  %(extra_commands)s
389
484
  quiet_cmd_touch = TOUCH $@
390
485
  cmd_touch = touch $@
391
486
 
392
487
  quiet_cmd_copy = COPY $@
393
488
  # send stderr to /dev/null to ignore messages when linking directories.
394
- cmd_copy = rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@"
489
+ cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@")
395
490
 
396
- %(link_commands)s
397
- """
491
+ quiet_cmd_symlink = SYMLINK $@
492
+ cmd_symlink = ln -sf "$<" "$@"
398
493
 
399
- r"""
494
+ %(link_commands)s
495
+ """ # noqa: E501
496
+ r"""
400
497
  # Define an escape_quotes function to escape single quotes.
401
498
  # This allows us to handle quotes properly as long as we always use
402
499
  # use single quotes and escape_quotes.
@@ -412,7 +509,7 @@ escape_vars = $(subst $$,$$$$,$(1))
412
509
  # (e.g., dash, bash).
413
510
  exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))'
414
511
  """
415
- """
512
+ """
416
513
  # Helper to compare the command we're about to run against the command
417
514
  # we logged the last time we ran the command. Produces an empty
418
515
  # string (false) when the commands match.
@@ -423,8 +520,9 @@ exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))'
423
520
  # $(filter-out $(cmd_$@), $(cmd_$(1))))
424
521
  # We instead substitute each for the empty string into the other, and
425
522
  # say they're equal if both substitutions produce the empty string.
426
- # .d files contain """ + SPACE_REPLACEMENT + \
427
- """ instead of spaces, take that into account.
523
+ # .d files contain """
524
+ + SPACE_REPLACEMENT
525
+ + """ instead of spaces, take that into account.
428
526
  command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\\
429
527
  $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
430
528
 
@@ -455,10 +553,12 @@ endef
455
553
  # Should always run for a given target to handle command-line changes.
456
554
  # Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
457
555
  # Third argument, if non-zero, makes it do POSTBUILDS processing.
458
- # Note: We intentionally do NOT call dirx for depfile, since it contains """ + \
459
- SPACE_REPLACEMENT + """ for
460
- # spaces already and dirx strips the """ + SPACE_REPLACEMENT + \
461
- """ characters.
556
+ # Note: We intentionally do NOT call dirx for depfile, since it contains """
557
+ + SPACE_REPLACEMENT
558
+ + """ for
559
+ # spaces already and dirx strips the """
560
+ + SPACE_REPLACEMENT
561
+ + """ characters.
462
562
  define do_cmd
463
563
  $(if $(or $(command_changed),$(prereq_changed)),
464
564
  @$(call exact_echo, $($(quiet)cmd_$(1)))
@@ -491,7 +591,8 @@ endef
491
591
  .PHONY: FORCE_DO_CMD
492
592
  FORCE_DO_CMD:
493
593
 
494
- """)
594
+ """ # noqa: E501
595
+ )
495
596
 
496
597
  SHARED_HEADER_MAC_COMMANDS = """
497
598
  quiet_cmd_objc = CXX($(TOOLSET)) $@
@@ -514,44 +615,54 @@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
514
615
  # Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
515
616
  # already.
516
617
  quiet_cmd_mac_tool = MACTOOL $(4) $<
517
- cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
618
+ cmd_mac_tool = %(python)s gyp-mac-tool $(4) $< "$@"
518
619
 
519
620
  quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
520
- cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
621
+ cmd_mac_package_framework = %(python)s gyp-mac-tool package-framework "$@" $(4)
521
622
 
522
623
  quiet_cmd_infoplist = INFOPLIST $@
523
624
  cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
524
- """
625
+ """ % {"python": sys.executable} # noqa: E501
525
626
 
526
627
 
527
628
  def WriteRootHeaderSuffixRules(writer):
528
- extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower)
529
-
530
- writer.write('# Suffix rules, putting all outputs into $(obj).\n')
531
- for ext in extensions:
532
- writer.write('$(obj).$(TOOLSET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD\n' % ext)
533
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
534
-
535
- writer.write('\n# Try building from generated source, too.\n')
536
- for ext in extensions:
537
- writer.write(
538
- '$(obj).$(TOOLSET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD\n' % ext)
539
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
540
- writer.write('\n')
541
- for ext in extensions:
542
- writer.write('$(obj).$(TOOLSET)/%%.o: $(obj)/%%%s FORCE_DO_CMD\n' % ext)
543
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
544
- writer.write('\n')
545
-
546
-
547
- SHARED_HEADER_SUFFIX_RULES_COMMENT1 = ("""\
629
+ extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower)
630
+
631
+ writer.write("# Suffix rules, putting all outputs into $(obj).\n")
632
+ for ext in extensions:
633
+ writer.write("$(obj).$(TOOLSET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD\n" % ext)
634
+ writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
635
+
636
+ writer.write("\n# Try building from generated source, too.\n")
637
+ for ext in extensions:
638
+ writer.write(
639
+ "$(obj).$(TOOLSET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD\n" % ext
640
+ )
641
+ writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
642
+ writer.write("\n")
643
+ for ext in extensions:
644
+ writer.write("$(obj).$(TOOLSET)/%%.o: $(obj)/%%%s FORCE_DO_CMD\n" % ext)
645
+ writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
646
+ writer.write("\n")
647
+
648
+
649
+ SHARED_HEADER_OS390_COMMANDS = """
650
+ PLIFLAGS.target ?= -qlp=64 -qlimits=extname=31 $(PLIFLAGS)
651
+ PLIFLAGS.host ?= -qlp=64 -qlimits=extname=31 $(PLIFLAGS)
652
+
653
+ quiet_cmd_pli = PLI($(TOOLSET)) $@
654
+ cmd_pli = $(PLI.$(TOOLSET)) $(GYP_PLIFLAGS) $(PLIFLAGS.$(TOOLSET)) -c $< && \
655
+ if [ -f $(notdir $@) ]; then /bin/cp $(notdir $@) $@; else true; fi
656
+ """
657
+
658
+ SHARED_HEADER_SUFFIX_RULES_COMMENT1 = """\
548
659
  # Suffix rules, putting all outputs into $(obj).
549
- """)
660
+ """
550
661
 
551
662
 
552
- SHARED_HEADER_SUFFIX_RULES_COMMENT2 = ("""\
663
+ SHARED_HEADER_SUFFIX_RULES_COMMENT2 = """\
553
664
  # Try building from generated source, too.
554
- """)
665
+ """
555
666
 
556
667
 
557
668
  SHARED_FOOTER = """\
@@ -574,114 +685,91 @@ header = """\
574
685
 
575
686
  # Maps every compilable file extension to the do_cmd that compiles it.
576
687
  COMPILABLE_EXTENSIONS = {
577
- '.c': 'cc',
578
- '.cc': 'cxx',
579
- '.cpp': 'cxx',
580
- '.cxx': 'cxx',
581
- '.s': 'cc',
582
- '.S': 'cc',
688
+ ".c": "cc",
689
+ ".cc": "cxx",
690
+ ".cpp": "cxx",
691
+ ".cxx": "cxx",
692
+ ".s": "cc",
693
+ ".S": "cc",
583
694
  }
584
695
 
696
+
585
697
  def Compilable(filename):
586
- """Return true if the file is compilable (should be in OBJS)."""
587
- for res in (filename.endswith(e) for e in COMPILABLE_EXTENSIONS):
588
- if res:
589
- return True
590
- return False
698
+ """Return true if the file is compilable (should be in OBJS)."""
699
+ return any(res for res in (filename.endswith(e) for e in COMPILABLE_EXTENSIONS))
591
700
 
592
701
 
593
702
  def Linkable(filename):
594
- """Return true if the file is linkable (should be on the link line)."""
595
- return filename.endswith('.o')
703
+ """Return true if the file is linkable (should be on the link line)."""
704
+ return filename.endswith(".o")
596
705
 
597
706
 
598
707
  def Target(filename):
599
- """Translate a compilable filename to its .o target."""
600
- return os.path.splitext(filename)[0] + '.o'
708
+ """Translate a compilable filename to its .o target."""
709
+ return os.path.splitext(filename)[0] + ".o"
601
710
 
602
711
 
603
712
  def EscapeShellArgument(s):
604
- """Quotes an argument so that it will be interpreted literally by a POSIX
605
- shell. Taken from
606
- http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
607
- """
608
- return "'" + s.replace("'", "'\\''") + "'"
713
+ """Quotes an argument so that it will be interpreted literally by a POSIX
714
+ shell. Taken from
715
+ http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
716
+ """
717
+ return "'" + s.replace("'", "'\\''") + "'"
609
718
 
610
719
 
611
720
  def EscapeMakeVariableExpansion(s):
612
- """Make has its own variable expansion syntax using $. We must escape it for
613
- string to be interpreted literally."""
614
- return s.replace('$', '$$')
721
+ """Make has its own variable expansion syntax using $. We must escape it for
722
+ string to be interpreted literally."""
723
+ return s.replace("$", "$$")
615
724
 
616
725
 
617
726
  def EscapeCppDefine(s):
618
- """Escapes a CPP define so that it will reach the compiler unaltered."""
619
- s = EscapeShellArgument(s)
620
- s = EscapeMakeVariableExpansion(s)
621
- # '#' characters must be escaped even embedded in a string, else Make will
622
- # treat it as the start of a comment.
623
- return s.replace('#', r'\#')
727
+ """Escapes a CPP define so that it will reach the compiler unaltered."""
728
+ s = EscapeShellArgument(s)
729
+ s = EscapeMakeVariableExpansion(s)
730
+ # '#' characters must be escaped even embedded in a string, else Make will
731
+ # treat it as the start of a comment.
732
+ return s.replace("#", r"\#")
624
733
 
625
734
 
626
735
  def QuoteIfNecessary(string):
627
- """TODO: Should this ideally be replaced with one or more of the above
628
- functions?"""
629
- if '"' in string:
630
- string = '"' + string.replace('"', '\\"') + '"'
631
- return string
736
+ """TODO: Should this ideally be replaced with one or more of the above
737
+ functions?"""
738
+ if '"' in string:
739
+ string = '"' + string.replace('"', '\\"') + '"'
740
+ return string
741
+
742
+
743
+ def replace_sep(string):
744
+ if sys.platform == "win32":
745
+ string = string.replace("\\\\", "/").replace("\\", "/")
746
+ return string
632
747
 
633
748
 
634
749
  def StringToMakefileVariable(string):
635
- """Convert a string to a value that is acceptable as a make variable name."""
636
- return re.sub('[^a-zA-Z0-9_]', '_', string)
750
+ """Convert a string to a value that is acceptable as a make variable name."""
751
+ return re.sub("[^a-zA-Z0-9_]", "_", string)
752
+
753
+
754
+ srcdir_prefix = ""
637
755
 
638
756
 
639
- srcdir_prefix = ''
640
757
  def Sourceify(path):
641
- """Convert a path to its source directory form."""
642
- if '$(' in path:
643
- return path
644
- if os.path.isabs(path):
645
- return path
646
- return srcdir_prefix + path
758
+ """Convert a path to its source directory form."""
759
+ if "$(" in path:
760
+ return path
761
+ if os.path.isabs(path):
762
+ return path
763
+ return srcdir_prefix + path
764
+
647
765
 
766
+ def QuoteSpaces(s, quote=r"\ "):
767
+ return s.replace(" ", quote)
648
768
 
649
- def QuoteSpaces(s, quote=r'\ '):
650
- return s.replace(' ', quote)
651
769
 
652
770
  def SourceifyAndQuoteSpaces(path):
653
- """Convert a path to its source directory form and quote spaces."""
654
- return QuoteSpaces(Sourceify(path))
655
-
656
- # TODO: Avoid code duplication with _ValidateSourcesForMSVSProject in msvs.py.
657
- def _ValidateSourcesForOSX(spec, all_sources):
658
- """Makes sure if duplicate basenames are not specified in the source list.
659
-
660
- Arguments:
661
- spec: The target dictionary containing the properties of the target.
662
- """
663
- if spec.get('type', None) != 'static_library':
664
- return
665
-
666
- basenames = {}
667
- for source in all_sources:
668
- name, ext = os.path.splitext(source)
669
- is_compiled_file = ext in [
670
- '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S']
671
- if not is_compiled_file:
672
- continue
673
- basename = os.path.basename(name) # Don't include extension.
674
- basenames.setdefault(basename, []).append(source)
675
-
676
- error = ''
677
- for basename, files in basenames.items():
678
- if len(files) > 1:
679
- error += ' %s: %s\n' % (basename, ' '.join(files))
680
-
681
- if error:
682
- print(('static library %s has several files with the same basename:\n' % spec['target_name'])
683
- + error + 'libtool on OS X will generate' + ' warnings for them.')
684
- raise GypError('Duplicate basenames in sources section, see list above')
771
+ """Convert a path to its source directory form and quote spaces."""
772
+ return QuoteSpaces(Sourceify(path))
685
773
 
686
774
 
687
775
  # Map from qualified target to path to output.
@@ -693,1573 +781,1975 @@ target_outputs = {}
693
781
  target_link_deps = {}
694
782
 
695
783
 
696
- class MakefileWriter(object):
697
- """MakefileWriter packages up the writing of one target-specific foobar.mk.
698
-
699
- Its only real entry point is Write(), and is mostly used for namespacing.
700
- """
701
-
702
- def __init__(self, generator_flags, flavor):
703
- self.generator_flags = generator_flags
704
- self.flavor = flavor
784
+ class MakefileWriter:
785
+ """MakefileWriter packages up the writing of one target-specific foobar.mk.
705
786
 
706
- self.suffix_rules_srcdir = {}
707
- self.suffix_rules_objdir1 = {}
708
- self.suffix_rules_objdir2 = {}
787
+ Its only real entry point is Write(), and is mostly used for namespacing.
788
+ """
709
789
 
710
- # Generate suffix rules for all compilable extensions.
711
- for ext in COMPILABLE_EXTENSIONS.keys():
712
- # Suffix rules for source folder.
713
- self.suffix_rules_srcdir.update({ext: ("""\
790
+ def __init__(self, generator_flags, flavor):
791
+ self.generator_flags = generator_flags
792
+ self.flavor = flavor
793
+
794
+ self.suffix_rules_srcdir = {}
795
+ self.suffix_rules_objdir1 = {}
796
+ self.suffix_rules_objdir2 = {}
797
+
798
+ # Generate suffix rules for all compilable extensions.
799
+ for ext, value in COMPILABLE_EXTENSIONS.items():
800
+ # Suffix rules for source folder.
801
+ self.suffix_rules_srcdir.update(
802
+ {
803
+ ext: (
804
+ """\
714
805
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
715
- @$(call do_cmd,%s,1)
716
- """ % (ext, COMPILABLE_EXTENSIONS[ext]))})
717
-
718
- # Suffix rules for generated source files.
719
- self.suffix_rules_objdir1.update({ext: ("""\
806
+ \t@$(call do_cmd,%s,1)
807
+ """
808
+ % (ext, value)
809
+ )
810
+ }
811
+ )
812
+
813
+ # Suffix rules for generated source files.
814
+ self.suffix_rules_objdir1.update(
815
+ {
816
+ ext: (
817
+ """\
720
818
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
721
- @$(call do_cmd,%s,1)
722
- """ % (ext, COMPILABLE_EXTENSIONS[ext]))})
723
- self.suffix_rules_objdir2.update({ext: ("""\
819
+ \t@$(call do_cmd,%s,1)
820
+ """
821
+ % (ext, value)
822
+ )
823
+ }
824
+ )
825
+ self.suffix_rules_objdir2.update(
826
+ {
827
+ ext: (
828
+ """\
724
829
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
725
- @$(call do_cmd,%s,1)
726
- """ % (ext, COMPILABLE_EXTENSIONS[ext]))})
727
-
728
-
729
- def Write(self, qualified_target, base_path, output_filename, spec, configs,
730
- part_of_all):
731
- """The main entry point: writes a .mk file for a single target.
732
-
733
- Arguments:
734
- qualified_target: target we're generating
735
- base_path: path relative to source root we're building in, used to resolve
736
- target-relative paths
737
- output_filename: output .mk file name to write
738
- spec, configs: gyp info
739
- part_of_all: flag indicating this target is part of 'all'
740
- """
741
- gyp.common.EnsureDirExists(output_filename)
742
-
743
- self.fp = open(output_filename, 'w')
830
+ \t@$(call do_cmd,%s,1)
831
+ """
832
+ % (ext, value)
833
+ )
834
+ }
835
+ )
836
+
837
+ def Write(
838
+ self, qualified_target, base_path, output_filename, spec, configs, part_of_all
839
+ ):
840
+ """The main entry point: writes a .mk file for a single target.
841
+
842
+ Arguments:
843
+ qualified_target: target we're generating
844
+ base_path: path relative to source root we're building in, used to resolve
845
+ target-relative paths
846
+ output_filename: output .mk file name to write
847
+ spec, configs: gyp info
848
+ part_of_all: flag indicating this target is part of 'all'
849
+ """
850
+ gyp.common.EnsureDirExists(output_filename)
851
+
852
+ self.fp = open(output_filename, "w")
853
+
854
+ self.fp.write(header)
855
+
856
+ self.qualified_target = qualified_target
857
+ self.path = base_path
858
+ self.target = spec["target_name"]
859
+ self.type = spec["type"]
860
+ self.toolset = spec["toolset"]
861
+
862
+ self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
863
+ if self.flavor == "mac":
864
+ self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
865
+ else:
866
+ self.xcode_settings = None
744
867
 
745
- self.fp.write(header)
868
+ deps, link_deps = self.ComputeDeps(spec)
746
869
 
747
- self.qualified_target = qualified_target
748
- self.path = base_path
749
- self.target = spec['target_name']
750
- self.type = spec['type']
751
- self.toolset = spec['toolset']
870
+ # Some of the generation below can add extra output, sources, or
871
+ # link dependencies. All of the out params of the functions that
872
+ # follow use names like extra_foo.
873
+ extra_outputs = []
874
+ extra_sources = []
875
+ extra_link_deps = []
876
+ extra_mac_bundle_resources = []
877
+ mac_bundle_deps = []
752
878
 
753
- self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
754
- if self.flavor == 'mac':
755
- self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
756
- else:
757
- self.xcode_settings = None
758
-
759
- deps, link_deps = self.ComputeDeps(spec)
760
-
761
- # Some of the generation below can add extra output, sources, or
762
- # link dependencies. All of the out params of the functions that
763
- # follow use names like extra_foo.
764
- extra_outputs = []
765
- extra_sources = []
766
- extra_link_deps = []
767
- extra_mac_bundle_resources = []
768
- mac_bundle_deps = []
769
-
770
- if self.is_mac_bundle:
771
- self.output = self.ComputeMacBundleOutput(spec)
772
- self.output_binary = self.ComputeMacBundleBinaryOutput(spec)
773
- else:
774
- self.output = self.output_binary = self.ComputeOutput(spec)
775
-
776
- self.is_standalone_static_library = bool(
777
- spec.get('standalone_static_library', 0))
778
- self._INSTALLABLE_TARGETS = ('executable', 'loadable_module',
779
- 'shared_library')
780
- if (self.is_standalone_static_library or
781
- self.type in self._INSTALLABLE_TARGETS):
782
- self.alias = os.path.basename(self.output)
783
- install_path = self._InstallableTargetInstallPath()
784
- else:
785
- self.alias = self.output
786
- install_path = self.output
787
-
788
- self.WriteLn("TOOLSET := " + self.toolset)
789
- self.WriteLn("TARGET := " + self.target)
790
-
791
- # Actions must come first, since they can generate more OBJs for use below.
792
- if 'actions' in spec:
793
- self.WriteActions(spec['actions'], extra_sources, extra_outputs,
794
- extra_mac_bundle_resources, part_of_all)
795
-
796
- # Rules must be early like actions.
797
- if 'rules' in spec:
798
- self.WriteRules(spec['rules'], extra_sources, extra_outputs,
799
- extra_mac_bundle_resources, part_of_all)
800
-
801
- if 'copies' in spec:
802
- self.WriteCopies(spec['copies'], extra_outputs, part_of_all)
803
-
804
- # Bundle resources.
805
- if self.is_mac_bundle:
806
- all_mac_bundle_resources = (
807
- spec.get('mac_bundle_resources', []) + extra_mac_bundle_resources)
808
- self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps)
809
- self.WriteMacInfoPlist(mac_bundle_deps)
810
-
811
- # Sources.
812
- all_sources = spec.get('sources', []) + extra_sources
813
- if all_sources:
814
- if self.flavor == 'mac':
815
- # libtool on OS X generates warnings for duplicate basenames in the same
816
- # target.
817
- _ValidateSourcesForOSX(spec, all_sources)
818
- self.WriteSources(
819
- configs, deps, all_sources, extra_outputs,
820
- extra_link_deps, part_of_all,
821
- gyp.xcode_emulation.MacPrefixHeader(
822
- self.xcode_settings, lambda p: Sourceify(self.Absolutify(p)),
823
- self.Pchify))
824
- sources = list(filter(Compilable, all_sources))
825
- if sources:
826
- self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1)
827
- extensions = set([os.path.splitext(s)[1] for s in sources])
828
- for ext in extensions:
829
- if ext in self.suffix_rules_srcdir:
830
- self.WriteLn(self.suffix_rules_srcdir[ext])
831
- self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2)
832
- for ext in extensions:
833
- if ext in self.suffix_rules_objdir1:
834
- self.WriteLn(self.suffix_rules_objdir1[ext])
835
- for ext in extensions:
836
- if ext in self.suffix_rules_objdir2:
837
- self.WriteLn(self.suffix_rules_objdir2[ext])
838
- self.WriteLn('# End of this set of suffix rules')
839
-
840
- # Add dependency from bundle to bundle binary.
841
879
  if self.is_mac_bundle:
842
- mac_bundle_deps.append(self.output_binary)
843
-
844
- self.WriteTarget(spec, configs, deps, extra_link_deps + link_deps,
845
- mac_bundle_deps, extra_outputs, part_of_all)
846
-
847
- # Update global list of target outputs, used in dependency tracking.
848
- target_outputs[qualified_target] = install_path
849
-
850
- # Update global list of link dependencies.
851
- if self.type in ('static_library', 'shared_library'):
852
- target_link_deps[qualified_target] = self.output_binary
853
-
854
- # Currently any versions have the same effect, but in future the behavior
855
- # could be different.
856
- if self.generator_flags.get('android_ndk_version', None):
857
- self.WriteAndroidNdkModuleRule(self.target, all_sources, link_deps)
858
-
859
- self.fp.close()
860
-
861
-
862
- def WriteSubMake(self, output_filename, makefile_path, targets, build_dir):
863
- """Write a "sub-project" Makefile.
880
+ self.output = self.ComputeMacBundleOutput(spec)
881
+ self.output_binary = self.ComputeMacBundleBinaryOutput(spec)
882
+ else:
883
+ self.output = self.output_binary = replace_sep(self.ComputeOutput(spec))
884
+
885
+ self.is_standalone_static_library = bool(
886
+ spec.get("standalone_static_library", 0)
887
+ )
888
+ self._INSTALLABLE_TARGETS = ("executable", "loadable_module", "shared_library")
889
+ if self.is_standalone_static_library or self.type in self._INSTALLABLE_TARGETS:
890
+ self.alias = os.path.basename(self.output)
891
+ install_path = self._InstallableTargetInstallPath()
892
+ else:
893
+ self.alias = self.output
894
+ install_path = self.output
895
+
896
+ self.WriteLn("TOOLSET := " + self.toolset)
897
+ self.WriteLn("TARGET := " + self.target)
898
+
899
+ # Actions must come first, since they can generate more OBJs for use below.
900
+ if "actions" in spec:
901
+ self.WriteActions(
902
+ spec["actions"],
903
+ extra_sources,
904
+ extra_outputs,
905
+ extra_mac_bundle_resources,
906
+ part_of_all,
907
+ )
908
+
909
+ # Rules must be early like actions.
910
+ if "rules" in spec:
911
+ self.WriteRules(
912
+ spec["rules"],
913
+ extra_sources,
914
+ extra_outputs,
915
+ extra_mac_bundle_resources,
916
+ part_of_all,
917
+ )
918
+
919
+ if "copies" in spec:
920
+ self.WriteCopies(spec["copies"], extra_outputs, part_of_all)
921
+
922
+ # Bundle resources.
923
+ if self.is_mac_bundle:
924
+ all_mac_bundle_resources = (
925
+ spec.get("mac_bundle_resources", []) + extra_mac_bundle_resources
926
+ )
927
+ self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps)
928
+ self.WriteMacInfoPlist(mac_bundle_deps)
929
+
930
+ # Sources.
931
+ all_sources = spec.get("sources", []) + extra_sources
932
+ if all_sources:
933
+ self.WriteSources(
934
+ configs,
935
+ deps,
936
+ all_sources,
937
+ extra_outputs,
938
+ extra_link_deps,
939
+ part_of_all,
940
+ gyp.xcode_emulation.MacPrefixHeader(
941
+ self.xcode_settings,
942
+ lambda p: Sourceify(self.Absolutify(p)),
943
+ self.Pchify,
944
+ ),
945
+ )
946
+ sources = [x for x in all_sources if Compilable(x)]
947
+ if sources:
948
+ self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1)
949
+ extensions = {os.path.splitext(s)[1] for s in sources}
950
+ for ext in extensions:
951
+ if ext in self.suffix_rules_srcdir:
952
+ self.WriteLn(self.suffix_rules_srcdir[ext])
953
+ self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2)
954
+ for ext in extensions:
955
+ if ext in self.suffix_rules_objdir1:
956
+ self.WriteLn(self.suffix_rules_objdir1[ext])
957
+ for ext in extensions:
958
+ if ext in self.suffix_rules_objdir2:
959
+ self.WriteLn(self.suffix_rules_objdir2[ext])
960
+ self.WriteLn("# End of this set of suffix rules")
961
+
962
+ # Add dependency from bundle to bundle binary.
963
+ if self.is_mac_bundle:
964
+ mac_bundle_deps.append(self.output_binary)
965
+
966
+ self.WriteTarget(
967
+ spec,
968
+ configs,
969
+ deps,
970
+ extra_link_deps + link_deps,
971
+ mac_bundle_deps,
972
+ extra_outputs,
973
+ part_of_all,
974
+ )
975
+
976
+ # Update global list of target outputs, used in dependency tracking.
977
+ target_outputs[qualified_target] = install_path
978
+
979
+ # Update global list of link dependencies.
980
+ if self.type in ("static_library", "shared_library"):
981
+ target_link_deps[qualified_target] = self.output_binary
982
+
983
+ # Currently any versions have the same effect, but in future the behavior
984
+ # could be different.
985
+ if self.generator_flags.get("android_ndk_version", None):
986
+ self.WriteAndroidNdkModuleRule(self.target, all_sources, link_deps)
987
+
988
+ self.fp.close()
989
+
990
+ def WriteSubMake(self, output_filename, makefile_path, targets, build_dir):
991
+ """Write a "sub-project" Makefile.
992
+
993
+ This is a small, wrapper Makefile that calls the top-level Makefile to build
994
+ the targets from a single gyp file (i.e. a sub-project).
995
+
996
+ Arguments:
997
+ output_filename: sub-project Makefile name to write
998
+ makefile_path: path to the top-level Makefile
999
+ targets: list of "all" targets for this sub-project
1000
+ build_dir: build output directory, relative to the sub-project
1001
+ """
1002
+ gyp.common.EnsureDirExists(output_filename)
1003
+ self.fp = open(output_filename, "w")
1004
+ self.fp.write(header)
1005
+ # For consistency with other builders, put sub-project build output in the
1006
+ # sub-project dir (see test/subdirectory/gyptest-subdir-all.py).
1007
+ self.WriteLn(
1008
+ "export builddir_name ?= %s"
1009
+ % replace_sep(os.path.join(os.path.dirname(output_filename), build_dir))
1010
+ )
1011
+ self.WriteLn(".PHONY: all")
1012
+ self.WriteLn("all:")
1013
+ if makefile_path:
1014
+ makefile_path = " -C " + makefile_path
1015
+ self.WriteLn("\t$(MAKE){} {}".format(makefile_path, " ".join(targets)))
1016
+ self.fp.close()
1017
+
1018
+ def WriteActions(
1019
+ self,
1020
+ actions,
1021
+ extra_sources,
1022
+ extra_outputs,
1023
+ extra_mac_bundle_resources,
1024
+ part_of_all,
1025
+ ):
1026
+ """Write Makefile code for any 'actions' from the gyp input.
1027
+
1028
+ extra_sources: a list that will be filled in with newly generated source
1029
+ files, if any
1030
+ extra_outputs: a list that will be filled in with any outputs of these
1031
+ actions (used to make other pieces dependent on these
1032
+ actions)
1033
+ part_of_all: flag indicating this target is part of 'all'
1034
+ """
1035
+ env = self.GetSortedXcodeEnv()
1036
+ for action in actions:
1037
+ name = StringToMakefileVariable(
1038
+ "{}_{}".format(self.qualified_target, action["action_name"])
1039
+ )
1040
+ self.WriteLn('### Rules for action "%s":' % action["action_name"])
1041
+ inputs = action["inputs"]
1042
+ outputs = action["outputs"]
1043
+
1044
+ # Build up a list of outputs.
1045
+ # Collect the output dirs we'll need.
1046
+ dirs = set()
1047
+ for out in outputs:
1048
+ dir = os.path.split(out)[0]
1049
+ if dir:
1050
+ dirs.add(dir)
1051
+ if int(action.get("process_outputs_as_sources", False)):
1052
+ extra_sources += outputs
1053
+ if int(action.get("process_outputs_as_mac_bundle_resources", False)):
1054
+ extra_mac_bundle_resources += outputs
1055
+
1056
+ # Write the actual command.
1057
+ action_commands = action["action"]
1058
+ if self.flavor == "mac":
1059
+ action_commands = [
1060
+ gyp.xcode_emulation.ExpandEnvVars(command, env)
1061
+ for command in action_commands
1062
+ ]
1063
+ command = gyp.common.EncodePOSIXShellList(action_commands)
1064
+ if "message" in action:
1065
+ self.WriteLn(
1066
+ "quiet_cmd_{} = ACTION {} $@".format(name, action["message"])
1067
+ )
1068
+ else:
1069
+ self.WriteLn(f"quiet_cmd_{name} = ACTION {name} $@")
1070
+ if len(dirs) > 0:
1071
+ command = "mkdir -p %s" % " ".join(dirs) + "; " + command
1072
+
1073
+ cd_action = "cd %s; " % Sourceify(self.path or ".")
1074
+
1075
+ # command and cd_action get written to a toplevel variable called
1076
+ # cmd_foo. Toplevel variables can't handle things that change per
1077
+ # makefile like $(TARGET), so hardcode the target.
1078
+ command = command.replace("$(TARGET)", self.target)
1079
+ cd_action = cd_action.replace("$(TARGET)", self.target)
1080
+
1081
+ # Set LD_LIBRARY_PATH in case the action runs an executable from this
1082
+ # build which links to shared libs from this build.
1083
+ # actions run on the host, so they should in theory only use host
1084
+ # libraries, but until everything is made cross-compile safe, also use
1085
+ # target libraries.
1086
+ # TODO(piman): when everything is cross-compile safe, remove lib.target
1087
+ if self.flavor in {"zos", "aix"}:
1088
+ self.WriteLn(
1089
+ "cmd_%s = LIBPATH=$(builddir)/lib.host:"
1090
+ "$(builddir)/lib.target:$$LIBPATH; "
1091
+ "export LIBPATH; "
1092
+ "%s%s" % (name, cd_action, command)
1093
+ )
1094
+ else:
1095
+ self.WriteLn(
1096
+ "cmd_%s = LD_LIBRARY_PATH=$(builddir)/lib.host:"
1097
+ "$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
1098
+ "export LD_LIBRARY_PATH; "
1099
+ "%s%s" % (name, cd_action, command)
1100
+ )
1101
+ self.WriteLn()
1102
+ outputs = [self.Absolutify(o) for o in outputs]
1103
+ # The makefile rules are all relative to the top dir, but the gyp actions
1104
+ # are defined relative to their containing dir. This replaces the obj
1105
+ # variable for the action rule with an absolute version so that the output
1106
+ # goes in the right place.
1107
+ # Only write the 'obj' and 'builddir' rules for the "primary" output (:1);
1108
+ # it's superfluous for the "extra outputs", and this avoids accidentally
1109
+ # writing duplicate dummy rules for those outputs.
1110
+ # Same for environment.
1111
+ self.WriteLn("%s: obj := $(abs_obj)" % QuoteSpaces(outputs[0]))
1112
+ self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(outputs[0]))
1113
+ self.WriteSortedXcodeEnv(outputs[0], self.GetSortedXcodeEnv())
1114
+
1115
+ for input in inputs:
1116
+ assert " " not in input, (
1117
+ "Spaces in action input filenames not supported (%s)" % input
1118
+ )
1119
+ for output in outputs:
1120
+ assert " " not in output, (
1121
+ "Spaces in action output filenames not supported (%s)" % output
1122
+ )
1123
+
1124
+ # See the comment in WriteCopies about expanding env vars.
1125
+ outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
1126
+ inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
1127
+
1128
+ self.WriteDoCmd(
1129
+ outputs,
1130
+ [Sourceify(self.Absolutify(i)) for i in inputs],
1131
+ part_of_all=part_of_all,
1132
+ command=name,
1133
+ )
1134
+
1135
+ # Stuff the outputs in a variable so we can refer to them later.
1136
+ outputs_variable = "action_%s_outputs" % name
1137
+ self.WriteLn("{} := {}".format(outputs_variable, " ".join(outputs)))
1138
+ extra_outputs.append("$(%s)" % outputs_variable)
1139
+ self.WriteLn()
864
1140
 
865
- This is a small, wrapper Makefile that calls the top-level Makefile to build
866
- the targets from a single gyp file (i.e. a sub-project).
1141
+ self.WriteLn()
867
1142
 
868
- Arguments:
869
- output_filename: sub-project Makefile name to write
870
- makefile_path: path to the top-level Makefile
871
- targets: list of "all" targets for this sub-project
872
- build_dir: build output directory, relative to the sub-project
873
- """
874
- gyp.common.EnsureDirExists(output_filename)
875
- self.fp = open(output_filename, 'w')
876
- self.fp.write(header)
877
- # For consistency with other builders, put sub-project build output in the
878
- # sub-project dir (see test/subdirectory/gyptest-subdir-all.py).
879
- self.WriteLn('export builddir_name ?= %s' %
880
- os.path.join(os.path.dirname(output_filename), build_dir))
881
- self.WriteLn('.PHONY: all')
882
- self.WriteLn('all:')
883
- if makefile_path:
884
- makefile_path = ' -C ' + makefile_path
885
- self.WriteLn('\t$(MAKE)%s %s' % (makefile_path, ' '.join(targets)))
886
- self.fp.close()
887
-
888
-
889
- def WriteActions(self, actions, extra_sources, extra_outputs,
890
- extra_mac_bundle_resources, part_of_all):
891
- """Write Makefile code for any 'actions' from the gyp input.
892
-
893
- extra_sources: a list that will be filled in with newly generated source
894
- files, if any
895
- extra_outputs: a list that will be filled in with any outputs of these
896
- actions (used to make other pieces dependent on these
897
- actions)
898
- part_of_all: flag indicating this target is part of 'all'
899
- """
900
- env = self.GetSortedXcodeEnv()
901
- for action in actions:
902
- name = StringToMakefileVariable('%s_%s' % (self.qualified_target,
903
- action['action_name']))
904
- self.WriteLn('### Rules for action "%s":' % action['action_name'])
905
- inputs = action['inputs']
906
- outputs = action['outputs']
907
-
908
- # Build up a list of outputs.
909
- # Collect the output dirs we'll need.
910
- dirs = set()
911
- for out in outputs:
912
- dir = os.path.split(out)[0]
913
- if dir:
914
- dirs.add(dir)
915
- if int(action.get('process_outputs_as_sources', False)):
916
- extra_sources += outputs
917
- if int(action.get('process_outputs_as_mac_bundle_resources', False)):
918
- extra_mac_bundle_resources += outputs
919
-
920
- # Write the actual command.
921
- action_commands = action['action']
922
- if self.flavor == 'mac':
923
- action_commands = [gyp.xcode_emulation.ExpandEnvVars(command, env)
924
- for command in action_commands]
925
- command = gyp.common.EncodePOSIXShellList(action_commands)
926
- if 'message' in action:
927
- self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, action['message']))
928
- else:
929
- self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, name))
930
- if len(dirs) > 0:
931
- command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
932
-
933
- cd_action = 'cd %s; ' % Sourceify(self.path or '.')
934
-
935
- # command and cd_action get written to a toplevel variable called
936
- # cmd_foo. Toplevel variables can't handle things that change per
937
- # makefile like $(TARGET), so hardcode the target.
938
- command = command.replace('$(TARGET)', self.target)
939
- cd_action = cd_action.replace('$(TARGET)', self.target)
940
-
941
- # Set LD_LIBRARY_PATH in case the action runs an executable from this
942
- # build which links to shared libs from this build.
943
- # actions run on the host, so they should in theory only use host
944
- # libraries, but until everything is made cross-compile safe, also use
945
- # target libraries.
946
- # TODO(piman): when everything is cross-compile safe, remove lib.target
947
- self.WriteLn('cmd_%s = LD_LIBRARY_PATH=$(builddir)/lib.host:'
948
- '$(builddir)/lib.target:$$LD_LIBRARY_PATH; '
949
- 'export LD_LIBRARY_PATH; '
950
- '%s%s'
951
- % (name, cd_action, command))
952
- self.WriteLn()
953
- outputs = [self.Absolutify(output) for output in outputs]
954
- # The makefile rules are all relative to the top dir, but the gyp actions
955
- # are defined relative to their containing dir. This replaces the obj
956
- # variable for the action rule with an absolute version so that the output
957
- # goes in the right place.
958
- # Only write the 'obj' and 'builddir' rules for the "primary" output (:1);
959
- # it's superfluous for the "extra outputs", and this avoids accidentally
960
- # writing duplicate dummy rules for those outputs.
961
- # Same for environment.
962
- self.WriteLn("%s: obj := $(abs_obj)" % QuoteSpaces(outputs[0]))
963
- self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(outputs[0]))
964
- self.WriteSortedXcodeEnv(outputs[0], self.GetSortedXcodeEnv())
965
-
966
- for input in inputs:
967
- assert ' ' not in input, (
968
- "Spaces in action input filenames not supported (%s)" % input)
969
- for output in outputs:
970
- assert ' ' not in output, (
971
- "Spaces in action output filenames not supported (%s)" % output)
972
-
973
- # See the comment in WriteCopies about expanding env vars.
974
- outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
975
- inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
976
-
977
- self.WriteDoCmd(outputs, [Sourceify(self.Absolutify(i)) for i in inputs],
978
- part_of_all=part_of_all, command=name)
979
-
980
- # Stuff the outputs in a variable so we can refer to them later.
981
- outputs_variable = 'action_%s_outputs' % name
982
- self.WriteLn('%s := %s' % (outputs_variable, ' '.join(outputs)))
983
- extra_outputs.append('$(%s)' % outputs_variable)
984
- self.WriteLn()
985
-
986
- self.WriteLn()
987
-
988
-
989
- def WriteRules(self, rules, extra_sources, extra_outputs,
990
- extra_mac_bundle_resources, part_of_all):
991
- """Write Makefile code for any 'rules' from the gyp input.
992
-
993
- extra_sources: a list that will be filled in with newly generated source
994
- files, if any
995
- extra_outputs: a list that will be filled in with any outputs of these
996
- rules (used to make other pieces dependent on these rules)
997
- part_of_all: flag indicating this target is part of 'all'
998
- """
999
- env = self.GetSortedXcodeEnv()
1000
- for rule in rules:
1001
- name = StringToMakefileVariable('%s_%s' % (self.qualified_target,
1002
- rule['rule_name']))
1003
- count = 0
1004
- self.WriteLn('### Generated for rule %s:' % name)
1005
-
1006
- all_outputs = []
1007
-
1008
- for rule_source in rule.get('rule_sources', []):
1009
- dirs = set()
1010
- (rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
1011
- (rule_source_root, rule_source_ext) = \
1012
- os.path.splitext(rule_source_basename)
1013
-
1014
- outputs = [self.ExpandInputRoot(out, rule_source_root,
1015
- rule_source_dirname)
1016
- for out in rule['outputs']]
1017
-
1018
- for out in outputs:
1019
- dir = os.path.dirname(out)
1020
- if dir:
1021
- dirs.add(dir)
1022
- if int(rule.get('process_outputs_as_sources', False)):
1023
- extra_sources += outputs
1024
- if int(rule.get('process_outputs_as_mac_bundle_resources', False)):
1025
- extra_mac_bundle_resources += outputs
1026
- inputs = [Sourceify(self.Absolutify(i)) for i
1027
- in [rule_source] + rule.get('inputs', [])]
1028
- actions = ['$(call do_cmd,%s_%d)' % (name, count)]
1029
-
1030
- if name == 'resources_grit':
1031
- # HACK: This is ugly. Grit intentionally doesn't touch the
1032
- # timestamp of its output file when the file doesn't change,
1033
- # which is fine in hash-based dependency systems like scons
1034
- # and forge, but not kosher in the make world. After some
1035
- # discussion, hacking around it here seems like the least
1036
- # amount of pain.
1037
- actions += ['@touch --no-create $@']
1038
-
1039
- # See the comment in WriteCopies about expanding env vars.
1040
- outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
1041
- inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
1042
-
1043
- outputs = [self.Absolutify(output) for output in outputs]
1044
- all_outputs += outputs
1045
- # Only write the 'obj' and 'builddir' rules for the "primary" output
1046
- # (:1); it's superfluous for the "extra outputs", and this avoids
1047
- # accidentally writing duplicate dummy rules for those outputs.
1048
- self.WriteLn('%s: obj := $(abs_obj)' % outputs[0])
1049
- self.WriteLn('%s: builddir := $(abs_builddir)' % outputs[0])
1050
- self.WriteMakeRule(outputs, inputs, actions,
1051
- command="%s_%d" % (name, count))
1052
- # Spaces in rule filenames are not supported, but rule variables have
1053
- # spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)').
1054
- # The spaces within the variables are valid, so remove the variables
1055
- # before checking.
1056
- variables_with_spaces = re.compile(r'\$\([^ ]* \$<\)')
1057
- for output in outputs:
1058
- output = re.sub(variables_with_spaces, '', output)
1059
- assert ' ' not in output, (
1060
- "Spaces in rule filenames not yet supported (%s)" % output)
1061
- self.WriteLn('all_deps += %s' % ' '.join(outputs))
1062
-
1063
- action = [self.ExpandInputRoot(ac, rule_source_root,
1064
- rule_source_dirname)
1065
- for ac in rule['action']]
1066
- mkdirs = ''
1067
- if len(dirs) > 0:
1068
- mkdirs = 'mkdir -p %s; ' % ' '.join(dirs)
1069
- cd_action = 'cd %s; ' % Sourceify(self.path or '.')
1070
-
1071
- # action, cd_action, and mkdirs get written to a toplevel variable
1072
- # called cmd_foo. Toplevel variables can't handle things that change
1073
- # per makefile like $(TARGET), so hardcode the target.
1074
- if self.flavor == 'mac':
1075
- action = [gyp.xcode_emulation.ExpandEnvVars(command, env)
1076
- for command in action]
1077
- action = gyp.common.EncodePOSIXShellList(action)
1078
- action = action.replace('$(TARGET)', self.target)
1079
- cd_action = cd_action.replace('$(TARGET)', self.target)
1080
- mkdirs = mkdirs.replace('$(TARGET)', self.target)
1081
-
1082
- # Set LD_LIBRARY_PATH in case the rule runs an executable from this
1083
- # build which links to shared libs from this build.
1084
- # rules run on the host, so they should in theory only use host
1085
- # libraries, but until everything is made cross-compile safe, also use
1086
- # target libraries.
1087
- # TODO(piman): when everything is cross-compile safe, remove lib.target
1088
- self.WriteLn(
1089
- "cmd_%(name)s_%(count)d = LD_LIBRARY_PATH="
1090
- "$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
1091
- "export LD_LIBRARY_PATH; "
1092
- "%(cd_action)s%(mkdirs)s%(action)s" % {
1093
- 'action': action,
1094
- 'cd_action': cd_action,
1095
- 'count': count,
1096
- 'mkdirs': mkdirs,
1097
- 'name': name,
1098
- })
1143
+ def WriteRules(
1144
+ self,
1145
+ rules,
1146
+ extra_sources,
1147
+ extra_outputs,
1148
+ extra_mac_bundle_resources,
1149
+ part_of_all,
1150
+ ):
1151
+ """Write Makefile code for any 'rules' from the gyp input.
1152
+
1153
+ extra_sources: a list that will be filled in with newly generated source
1154
+ files, if any
1155
+ extra_outputs: a list that will be filled in with any outputs of these
1156
+ rules (used to make other pieces dependent on these rules)
1157
+ part_of_all: flag indicating this target is part of 'all'
1158
+ """
1159
+ env = self.GetSortedXcodeEnv()
1160
+ for rule in rules:
1161
+ name = StringToMakefileVariable(
1162
+ "{}_{}".format(self.qualified_target, rule["rule_name"])
1163
+ )
1164
+ count = 0
1165
+ self.WriteLn("### Generated for rule %s:" % name)
1166
+
1167
+ all_outputs = []
1168
+
1169
+ for rule_source in rule.get("rule_sources", []):
1170
+ dirs = set()
1171
+ (rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
1172
+ (rule_source_root, _rule_source_ext) = os.path.splitext(
1173
+ rule_source_basename
1174
+ )
1175
+
1176
+ outputs = [
1177
+ self.ExpandInputRoot(out, rule_source_root, rule_source_dirname)
1178
+ for out in rule["outputs"]
1179
+ ]
1180
+
1181
+ for out in outputs:
1182
+ dir = os.path.dirname(out)
1183
+ if dir:
1184
+ dirs.add(dir)
1185
+ if int(rule.get("process_outputs_as_sources", False)):
1186
+ extra_sources += outputs
1187
+ if int(rule.get("process_outputs_as_mac_bundle_resources", False)):
1188
+ extra_mac_bundle_resources += outputs
1189
+ inputs = [
1190
+ Sourceify(self.Absolutify(i))
1191
+ for i in [rule_source] + rule.get("inputs", [])
1192
+ ]
1193
+ actions = ["$(call do_cmd,%s_%d)" % (name, count)]
1194
+
1195
+ if name == "resources_grit":
1196
+ # HACK: This is ugly. Grit intentionally doesn't touch the
1197
+ # timestamp of its output file when the file doesn't change,
1198
+ # which is fine in hash-based dependency systems like scons
1199
+ # and forge, but not kosher in the make world. After some
1200
+ # discussion, hacking around it here seems like the least
1201
+ # amount of pain.
1202
+ actions += ["@touch --no-create $@"]
1203
+
1204
+ # See the comment in WriteCopies about expanding env vars.
1205
+ outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
1206
+ inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
1207
+
1208
+ outputs = [self.Absolutify(o) for o in outputs]
1209
+ all_outputs += outputs
1210
+ # Only write the 'obj' and 'builddir' rules for the "primary" output
1211
+ # (:1); it's superfluous for the "extra outputs", and this avoids
1212
+ # accidentally writing duplicate dummy rules for those outputs.
1213
+ self.WriteLn("%s: obj := $(abs_obj)" % outputs[0])
1214
+ self.WriteLn("%s: builddir := $(abs_builddir)" % outputs[0])
1215
+ self.WriteMakeRule(
1216
+ outputs, inputs, actions, command="%s_%d" % (name, count)
1217
+ )
1218
+ # Spaces in rule filenames are not supported, but rule variables have
1219
+ # spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)').
1220
+ # The spaces within the variables are valid, so remove the variables
1221
+ # before checking.
1222
+ variables_with_spaces = re.compile(r"\$\([^ ]* \$<\)")
1223
+ for output in outputs:
1224
+ output = re.sub(variables_with_spaces, "", output)
1225
+ assert " " not in output, (
1226
+ "Spaces in rule filenames not yet supported (%s)" % output
1227
+ )
1228
+ self.WriteLn("all_deps += %s" % " ".join(outputs))
1229
+
1230
+ action = [
1231
+ self.ExpandInputRoot(ac, rule_source_root, rule_source_dirname)
1232
+ for ac in rule["action"]
1233
+ ]
1234
+ mkdirs = ""
1235
+ if len(dirs) > 0:
1236
+ mkdirs = "mkdir -p %s; " % " ".join(dirs)
1237
+ cd_action = "cd %s; " % Sourceify(self.path or ".")
1238
+
1239
+ # action, cd_action, and mkdirs get written to a toplevel variable
1240
+ # called cmd_foo. Toplevel variables can't handle things that change
1241
+ # per makefile like $(TARGET), so hardcode the target.
1242
+ if self.flavor == "mac":
1243
+ action = [
1244
+ gyp.xcode_emulation.ExpandEnvVars(command, env)
1245
+ for command in action
1246
+ ]
1247
+ action = gyp.common.EncodePOSIXShellList(action)
1248
+ action = action.replace("$(TARGET)", self.target)
1249
+ cd_action = cd_action.replace("$(TARGET)", self.target)
1250
+ mkdirs = mkdirs.replace("$(TARGET)", self.target)
1251
+
1252
+ # Set LD_LIBRARY_PATH in case the rule runs an executable from this
1253
+ # build which links to shared libs from this build.
1254
+ # rules run on the host, so they should in theory only use host
1255
+ # libraries, but until everything is made cross-compile safe, also use
1256
+ # target libraries.
1257
+ # TODO(piman): when everything is cross-compile safe, remove lib.target
1258
+ self.WriteLn(
1259
+ "cmd_%(name)s_%(count)d = LD_LIBRARY_PATH="
1260
+ "$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
1261
+ "export LD_LIBRARY_PATH; "
1262
+ "%(cd_action)s%(mkdirs)s%(action)s"
1263
+ % {
1264
+ "action": action,
1265
+ "cd_action": cd_action,
1266
+ "count": count,
1267
+ "mkdirs": mkdirs,
1268
+ "name": name,
1269
+ }
1270
+ )
1271
+ self.WriteLn(
1272
+ "quiet_cmd_%(name)s_%(count)d = RULE %(name)s_%(count)d $@"
1273
+ % {"count": count, "name": name}
1274
+ )
1275
+ self.WriteLn()
1276
+ count += 1
1277
+
1278
+ outputs_variable = "rule_%s_outputs" % name
1279
+ self.WriteList(all_outputs, outputs_variable)
1280
+ extra_outputs.append("$(%s)" % outputs_variable)
1281
+
1282
+ self.WriteLn("### Finished generating for rule: %s" % name)
1283
+ self.WriteLn()
1284
+ self.WriteLn("### Finished generating for all rules")
1285
+ self.WriteLn("")
1286
+
1287
+ def WriteCopies(self, copies, extra_outputs, part_of_all):
1288
+ """Write Makefile code for any 'copies' from the gyp input.
1289
+
1290
+ extra_outputs: a list that will be filled in with any outputs of this action
1291
+ (used to make other pieces dependent on this action)
1292
+ part_of_all: flag indicating this target is part of 'all'
1293
+ """
1294
+ self.WriteLn("### Generated for copy rule.")
1295
+
1296
+ variable = StringToMakefileVariable(self.qualified_target + "_copies")
1297
+ outputs = []
1298
+ for copy in copies:
1299
+ for path in copy["files"]:
1300
+ # Absolutify() may call normpath, and will strip trailing slashes.
1301
+ path = Sourceify(self.Absolutify(path))
1302
+ filename = os.path.split(path)[1]
1303
+ output = Sourceify(
1304
+ self.Absolutify(os.path.join(copy["destination"], filename))
1305
+ )
1306
+
1307
+ # If the output path has variables in it, which happens in practice for
1308
+ # 'copies', writing the environment as target-local doesn't work,
1309
+ # because the variables are already needed for the target name.
1310
+ # Copying the environment variables into global make variables doesn't
1311
+ # work either, because then the .d files will potentially contain spaces
1312
+ # after variable expansion, and .d file handling cannot handle spaces.
1313
+ # As a workaround, manually expand variables at gyp time. Since 'copies'
1314
+ # can't run scripts, there's no need to write the env then.
1315
+ # WriteDoCmd() will escape spaces for .d files.
1316
+ env = self.GetSortedXcodeEnv()
1317
+ output = gyp.xcode_emulation.ExpandEnvVars(output, env)
1318
+ path = gyp.xcode_emulation.ExpandEnvVars(path, env)
1319
+ self.WriteDoCmd([output], [path], "copy", part_of_all)
1320
+ outputs.append(output)
1099
1321
  self.WriteLn(
1100
- 'quiet_cmd_%(name)s_%(count)d = RULE %(name)s_%(count)d $@' % {
1101
- 'count': count,
1102
- 'name': name,
1103
- })
1322
+ "{} = {}".format(variable, " ".join(QuoteSpaces(o) for o in outputs))
1323
+ )
1324
+ extra_outputs.append("$(%s)" % variable)
1104
1325
  self.WriteLn()
1105
- count += 1
1106
-
1107
- outputs_variable = 'rule_%s_outputs' % name
1108
- self.WriteList(all_outputs, outputs_variable)
1109
- extra_outputs.append('$(%s)' % outputs_variable)
1110
-
1111
- self.WriteLn('### Finished generating for rule: %s' % name)
1112
- self.WriteLn()
1113
- self.WriteLn('### Finished generating for all rules')
1114
- self.WriteLn('')
1115
-
1116
1326
 
1117
- def WriteCopies(self, copies, extra_outputs, part_of_all):
1118
- """Write Makefile code for any 'copies' from the gyp input.
1119
-
1120
- extra_outputs: a list that will be filled in with any outputs of this action
1121
- (used to make other pieces dependent on this action)
1122
- part_of_all: flag indicating this target is part of 'all'
1123
- """
1124
- self.WriteLn('### Generated for copy rule.')
1125
-
1126
- variable = StringToMakefileVariable(self.qualified_target + '_copies')
1127
- outputs = []
1128
- for copy in copies:
1129
- for path in copy['files']:
1130
- # Absolutify() may call normpath, and will strip trailing slashes.
1131
- path = Sourceify(self.Absolutify(path))
1132
- filename = os.path.split(path)[1]
1133
- output = Sourceify(self.Absolutify(os.path.join(copy['destination'],
1134
- filename)))
1135
-
1136
- # If the output path has variables in it, which happens in practice for
1137
- # 'copies', writing the environment as target-local doesn't work,
1138
- # because the variables are already needed for the target name.
1139
- # Copying the environment variables into global make variables doesn't
1140
- # work either, because then the .d files will potentially contain spaces
1141
- # after variable expansion, and .d file handling cannot handle spaces.
1142
- # As a workaround, manually expand variables at gyp time. Since 'copies'
1143
- # can't run scripts, there's no need to write the env then.
1144
- # WriteDoCmd() will escape spaces for .d files.
1145
- env = self.GetSortedXcodeEnv()
1146
- output = gyp.xcode_emulation.ExpandEnvVars(output, env)
1147
- path = gyp.xcode_emulation.ExpandEnvVars(path, env)
1148
- self.WriteDoCmd([output], [path], 'copy', part_of_all)
1149
- outputs.append(output)
1150
- self.WriteLn('%s = %s' % (variable, ' '.join(QuoteSpaces(o) for o in outputs)))
1151
- extra_outputs.append('$(%s)' % variable)
1152
- self.WriteLn()
1153
-
1154
-
1155
- def WriteMacBundleResources(self, resources, bundle_deps):
1156
- """Writes Makefile code for 'mac_bundle_resources'."""
1157
- self.WriteLn('### Generated for mac_bundle_resources')
1158
-
1159
- for output, res in gyp.xcode_emulation.GetMacBundleResources(
1160
- generator_default_variables['PRODUCT_DIR'], self.xcode_settings,
1161
- [Sourceify(self.Absolutify(r)) for r in resources]):
1162
- _, ext = os.path.splitext(output)
1163
- if ext != '.xcassets':
1164
- # Make does not supports '.xcassets' emulation.
1165
- self.WriteDoCmd([output], [res], 'mac_tool,,,copy-bundle-resource',
1166
- part_of_all=True)
1167
- bundle_deps.append(output)
1168
-
1169
-
1170
- def WriteMacInfoPlist(self, bundle_deps):
1171
- """Write Makefile code for bundle Info.plist files."""
1172
- info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist(
1173
- generator_default_variables['PRODUCT_DIR'], self.xcode_settings,
1174
- lambda p: Sourceify(self.Absolutify(p)))
1175
- if not info_plist:
1176
- return
1177
- if defines:
1178
- # Create an intermediate file to store preprocessed results.
1179
- intermediate_plist = ('$(obj).$(TOOLSET)/$(TARGET)/' +
1180
- os.path.basename(info_plist))
1181
- self.WriteList(defines, intermediate_plist + ': INFOPLIST_DEFINES', '-D',
1182
- quoter=EscapeCppDefine)
1183
- self.WriteMakeRule([intermediate_plist], [info_plist],
1184
- ['$(call do_cmd,infoplist)',
1185
- # "Convert" the plist so that any weird whitespace changes from the
1186
- # preprocessor do not affect the XML parser in mac_tool.
1187
- '@plutil -convert xml1 $@ $@'])
1188
- info_plist = intermediate_plist
1189
- # plists can contain envvars and substitute them into the file.
1190
- self.WriteSortedXcodeEnv(
1191
- out, self.GetSortedXcodeEnv(additional_settings=extra_env))
1192
- self.WriteDoCmd([out], [info_plist], 'mac_tool,,,copy-info-plist',
1193
- part_of_all=True)
1194
- bundle_deps.append(out)
1195
-
1196
-
1197
- def WriteSources(self, configs, deps, sources,
1198
- extra_outputs, extra_link_deps,
1199
- part_of_all, precompiled_header):
1200
- """Write Makefile code for any 'sources' from the gyp input.
1201
- These are source files necessary to build the current target.
1202
-
1203
- configs, deps, sources: input from gyp.
1204
- extra_outputs: a list of extra outputs this action should be dependent on;
1205
- used to serialize action/rules before compilation
1206
- extra_link_deps: a list that will be filled in with any outputs of
1207
- compilation (to be used in link lines)
1208
- part_of_all: flag indicating this target is part of 'all'
1209
- """
1327
+ def WriteMacBundleResources(self, resources, bundle_deps):
1328
+ """Writes Makefile code for 'mac_bundle_resources'."""
1329
+ self.WriteLn("### Generated for mac_bundle_resources")
1330
+
1331
+ for output, res in gyp.xcode_emulation.GetMacBundleResources(
1332
+ generator_default_variables["PRODUCT_DIR"],
1333
+ self.xcode_settings,
1334
+ [Sourceify(self.Absolutify(r)) for r in resources],
1335
+ ):
1336
+ _, ext = os.path.splitext(output)
1337
+ if ext != ".xcassets":
1338
+ # Make does not supports '.xcassets' emulation.
1339
+ self.WriteDoCmd(
1340
+ [output], [res], "mac_tool,,,copy-bundle-resource", part_of_all=True
1341
+ )
1342
+ bundle_deps.append(output)
1343
+
1344
+ def WriteMacInfoPlist(self, bundle_deps):
1345
+ """Write Makefile code for bundle Info.plist files."""
1346
+ info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist(
1347
+ generator_default_variables["PRODUCT_DIR"],
1348
+ self.xcode_settings,
1349
+ lambda p: Sourceify(self.Absolutify(p)),
1350
+ )
1351
+ if not info_plist:
1352
+ return
1353
+ if defines:
1354
+ # Create an intermediate file to store preprocessed results.
1355
+ intermediate_plist = "$(obj).$(TOOLSET)/$(TARGET)/" + os.path.basename(
1356
+ info_plist
1357
+ )
1358
+ self.WriteList(
1359
+ defines,
1360
+ intermediate_plist + ": INFOPLIST_DEFINES",
1361
+ "-D",
1362
+ quoter=EscapeCppDefine,
1363
+ )
1364
+ self.WriteMakeRule(
1365
+ [intermediate_plist],
1366
+ [info_plist],
1367
+ [
1368
+ "$(call do_cmd,infoplist)",
1369
+ # "Convert" the plist so that any weird whitespace changes from the
1370
+ # preprocessor do not affect the XML parser in mac_tool.
1371
+ "@plutil -convert xml1 $@ $@",
1372
+ ],
1373
+ )
1374
+ info_plist = intermediate_plist
1375
+ # plists can contain envvars and substitute them into the file.
1376
+ self.WriteSortedXcodeEnv(
1377
+ out, self.GetSortedXcodeEnv(additional_settings=extra_env)
1378
+ )
1379
+ self.WriteDoCmd(
1380
+ [out], [info_plist], "mac_tool,,,copy-info-plist", part_of_all=True
1381
+ )
1382
+ bundle_deps.append(out)
1383
+
1384
+ def WriteSources(
1385
+ self,
1386
+ configs,
1387
+ deps,
1388
+ sources,
1389
+ extra_outputs,
1390
+ extra_link_deps,
1391
+ part_of_all,
1392
+ precompiled_header,
1393
+ ):
1394
+ """Write Makefile code for any 'sources' from the gyp input.
1395
+ These are source files necessary to build the current target.
1396
+
1397
+ configs, deps, sources: input from gyp.
1398
+ extra_outputs: a list of extra outputs this action should be dependent on;
1399
+ used to serialize action/rules before compilation
1400
+ extra_link_deps: a list that will be filled in with any outputs of
1401
+ compilation (to be used in link lines)
1402
+ part_of_all: flag indicating this target is part of 'all'
1403
+ """
1404
+
1405
+ # Write configuration-specific variables for CFLAGS, etc.
1406
+ for configname in sorted(configs.keys()):
1407
+ config = configs[configname]
1408
+ self.WriteList(
1409
+ config.get("defines"),
1410
+ "DEFS_%s" % configname,
1411
+ prefix="-D",
1412
+ quoter=EscapeCppDefine,
1413
+ )
1414
+
1415
+ if self.flavor == "mac":
1416
+ cflags = self.xcode_settings.GetCflags(
1417
+ configname, arch=config.get("xcode_configuration_platform")
1418
+ )
1419
+ cflags_c = self.xcode_settings.GetCflagsC(configname)
1420
+ cflags_cc = self.xcode_settings.GetCflagsCC(configname)
1421
+ cflags_objc = self.xcode_settings.GetCflagsObjC(configname)
1422
+ cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname)
1423
+ else:
1424
+ cflags = config.get("cflags")
1425
+ cflags_c = config.get("cflags_c")
1426
+ cflags_cc = config.get("cflags_cc")
1427
+
1428
+ self.WriteLn("# Flags passed to all source files.")
1429
+ self.WriteList(cflags, "CFLAGS_%s" % configname)
1430
+ self.WriteLn("# Flags passed to only C files.")
1431
+ self.WriteList(cflags_c, "CFLAGS_C_%s" % configname)
1432
+ self.WriteLn("# Flags passed to only C++ files.")
1433
+ self.WriteList(cflags_cc, "CFLAGS_CC_%s" % configname)
1434
+ if self.flavor == "mac":
1435
+ self.WriteLn("# Flags passed to only ObjC files.")
1436
+ self.WriteList(cflags_objc, "CFLAGS_OBJC_%s" % configname)
1437
+ self.WriteLn("# Flags passed to only ObjC++ files.")
1438
+ self.WriteList(cflags_objcc, "CFLAGS_OBJCC_%s" % configname)
1439
+ includes = config.get("include_dirs")
1440
+ if includes:
1441
+ includes = [Sourceify(self.Absolutify(i)) for i in includes]
1442
+ self.WriteList(includes, "INCS_%s" % configname, prefix="-I")
1443
+
1444
+ compilable = list(filter(Compilable, sources))
1445
+ objs = [self.Objectify(self.Absolutify(Target(c))) for c in compilable]
1446
+ self.WriteList(objs, "OBJS")
1447
+
1448
+ for obj in objs:
1449
+ assert " " not in obj, "Spaces in object filenames not supported (%s)" % obj
1450
+ self.WriteLn("# Add to the list of files we specially track dependencies for.")
1451
+ self.WriteLn("all_deps += $(OBJS)")
1452
+ self.WriteLn()
1210
1453
 
1211
- # Write configuration-specific variables for CFLAGS, etc.
1212
- for configname in sorted(configs.keys()):
1213
- config = configs[configname]
1214
- self.WriteList(config.get('defines'), 'DEFS_%s' % configname, prefix='-D',
1215
- quoter=EscapeCppDefine)
1216
-
1217
- if self.flavor == 'mac':
1218
- cflags = self.xcode_settings.GetCflags(configname)
1219
- cflags_c = self.xcode_settings.GetCflagsC(configname)
1220
- cflags_cc = self.xcode_settings.GetCflagsCC(configname)
1221
- cflags_objc = self.xcode_settings.GetCflagsObjC(configname)
1222
- cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname)
1223
- else:
1224
- cflags = config.get('cflags')
1225
- cflags_c = config.get('cflags_c')
1226
- cflags_cc = config.get('cflags_cc')
1227
-
1228
- self.WriteLn("# Flags passed to all source files.")
1229
- self.WriteList(cflags, 'CFLAGS_%s' % configname)
1230
- self.WriteLn("# Flags passed to only C files.")
1231
- self.WriteList(cflags_c, 'CFLAGS_C_%s' % configname)
1232
- self.WriteLn("# Flags passed to only C++ files.")
1233
- self.WriteList(cflags_cc, 'CFLAGS_CC_%s' % configname)
1234
- if self.flavor == 'mac':
1235
- self.WriteLn("# Flags passed to only ObjC files.")
1236
- self.WriteList(cflags_objc, 'CFLAGS_OBJC_%s' % configname)
1237
- self.WriteLn("# Flags passed to only ObjC++ files.")
1238
- self.WriteList(cflags_objcc, 'CFLAGS_OBJCC_%s' % configname)
1239
- includes = config.get('include_dirs')
1240
- if includes:
1241
- includes = [Sourceify(self.Absolutify(i)) for i in includes]
1242
- self.WriteList(includes, 'INCS_%s' % configname, prefix='-I')
1243
-
1244
- compilable = list(filter(Compilable, sources))
1245
- objs = [self.Objectify(self.Absolutify(Target(c))) for c in compilable]
1246
- self.WriteList(objs, 'OBJS')
1247
-
1248
- for obj in objs:
1249
- assert ' ' not in obj, (
1250
- "Spaces in object filenames not supported (%s)" % obj)
1251
- self.WriteLn('# Add to the list of files we specially track '
1252
- 'dependencies for.')
1253
- self.WriteLn('all_deps += $(OBJS)')
1254
- self.WriteLn()
1255
-
1256
- # Make sure our dependencies are built first.
1257
- if deps:
1258
- self.WriteMakeRule(['$(OBJS)'], deps,
1259
- comment = 'Make sure our dependencies are built '
1260
- 'before any of us.',
1261
- order_only = True)
1262
-
1263
- # Make sure the actions and rules run first.
1264
- # If they generate any extra headers etc., the per-.o file dep tracking
1265
- # will catch the proper rebuilds, so order only is still ok here.
1266
- if extra_outputs:
1267
- self.WriteMakeRule(['$(OBJS)'], extra_outputs,
1268
- comment = 'Make sure our actions/rules run '
1269
- 'before any of us.',
1270
- order_only = True)
1271
-
1272
- pchdeps = precompiled_header.GetObjDependencies(compilable, objs )
1273
- if pchdeps:
1274
- self.WriteLn('# Dependencies from obj files to their precompiled headers')
1275
- for source, obj, gch in pchdeps:
1276
- self.WriteLn('%s: %s' % (obj, gch))
1277
- self.WriteLn('# End precompiled header dependencies')
1278
-
1279
- if objs:
1280
- extra_link_deps.append('$(OBJS)')
1281
- self.WriteLn("""\
1454
+ # Make sure our dependencies are built first.
1455
+ if deps:
1456
+ self.WriteMakeRule(
1457
+ ["$(OBJS)"],
1458
+ deps,
1459
+ comment="Make sure our dependencies are built before any of us.",
1460
+ order_only=True,
1461
+ )
1462
+
1463
+ # Make sure the actions and rules run first.
1464
+ # If they generate any extra headers etc., the per-.o file dep tracking
1465
+ # will catch the proper rebuilds, so order only is still ok here.
1466
+ if extra_outputs:
1467
+ self.WriteMakeRule(
1468
+ ["$(OBJS)"],
1469
+ extra_outputs,
1470
+ comment="Make sure our actions/rules run before any of us.",
1471
+ order_only=True,
1472
+ )
1473
+
1474
+ if pchdeps := precompiled_header.GetObjDependencies(compilable, objs):
1475
+ self.WriteLn("# Dependencies from obj files to their precompiled headers")
1476
+ for source, obj, gch in pchdeps:
1477
+ self.WriteLn(f"{obj}: {gch}")
1478
+ self.WriteLn("# End precompiled header dependencies")
1479
+
1480
+ if objs:
1481
+ extra_link_deps.append("$(OBJS)")
1482
+ self.WriteLn(
1483
+ """\
1282
1484
  # CFLAGS et al overrides must be target-local.
1283
- # See "Target-specific Variable Values" in the GNU Make manual.""")
1284
- self.WriteLn("$(OBJS): TOOLSET := $(TOOLSET)")
1285
- self.WriteLn("$(OBJS): GYP_CFLAGS := "
1286
- "$(DEFS_$(BUILDTYPE)) "
1287
- "$(INCS_$(BUILDTYPE)) "
1288
- "%s " % precompiled_header.GetInclude('c') +
1289
- "$(CFLAGS_$(BUILDTYPE)) "
1290
- "$(CFLAGS_C_$(BUILDTYPE))")
1291
- self.WriteLn("$(OBJS): GYP_CXXFLAGS := "
1292
- "$(DEFS_$(BUILDTYPE)) "
1293
- "$(INCS_$(BUILDTYPE)) "
1294
- "%s " % precompiled_header.GetInclude('cc') +
1295
- "$(CFLAGS_$(BUILDTYPE)) "
1296
- "$(CFLAGS_CC_$(BUILDTYPE))")
1297
- if self.flavor == 'mac':
1298
- self.WriteLn("$(OBJS): GYP_OBJCFLAGS := "
1299
- "$(DEFS_$(BUILDTYPE)) "
1300
- "$(INCS_$(BUILDTYPE)) "
1301
- "%s " % precompiled_header.GetInclude('m') +
1302
- "$(CFLAGS_$(BUILDTYPE)) "
1303
- "$(CFLAGS_C_$(BUILDTYPE)) "
1304
- "$(CFLAGS_OBJC_$(BUILDTYPE))")
1305
- self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := "
1306
- "$(DEFS_$(BUILDTYPE)) "
1307
- "$(INCS_$(BUILDTYPE)) "
1308
- "%s " % precompiled_header.GetInclude('mm') +
1309
- "$(CFLAGS_$(BUILDTYPE)) "
1310
- "$(CFLAGS_CC_$(BUILDTYPE)) "
1311
- "$(CFLAGS_OBJCC_$(BUILDTYPE))")
1312
-
1313
- self.WritePchTargets(precompiled_header.GetPchBuildCommands())
1314
-
1315
- # If there are any object files in our input file list, link them into our
1316
- # output.
1317
- extra_link_deps += list(filter(Linkable, sources))
1318
-
1319
- self.WriteLn()
1320
-
1321
- def WritePchTargets(self, pch_commands):
1322
- """Writes make rules to compile prefix headers."""
1323
- if not pch_commands:
1324
- return
1325
-
1326
- for gch, lang_flag, lang, input in pch_commands:
1327
- extra_flags = {
1328
- 'c': '$(CFLAGS_C_$(BUILDTYPE))',
1329
- 'cc': '$(CFLAGS_CC_$(BUILDTYPE))',
1330
- 'm': '$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))',
1331
- 'mm': '$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))',
1332
- }[lang]
1333
- var_name = {
1334
- 'c': 'GYP_PCH_CFLAGS',
1335
- 'cc': 'GYP_PCH_CXXFLAGS',
1336
- 'm': 'GYP_PCH_OBJCFLAGS',
1337
- 'mm': 'GYP_PCH_OBJCXXFLAGS',
1338
- }[lang]
1339
- self.WriteLn("%s: %s := %s " % (gch, var_name, lang_flag) +
1340
- "$(DEFS_$(BUILDTYPE)) "
1341
- "$(INCS_$(BUILDTYPE)) "
1342
- "$(CFLAGS_$(BUILDTYPE)) " +
1343
- extra_flags)
1344
-
1345
- self.WriteLn('%s: %s FORCE_DO_CMD' % (gch, input))
1346
- self.WriteLn('\t@$(call do_cmd,pch_%s,1)' % lang)
1347
- self.WriteLn('')
1348
- assert ' ' not in gch, (
1349
- "Spaces in gch filenames not supported (%s)" % gch)
1350
- self.WriteLn('all_deps += %s' % gch)
1351
- self.WriteLn('')
1352
-
1353
-
1354
- def ComputeOutputBasename(self, spec):
1355
- """Return the 'output basename' of a gyp spec.
1356
-
1357
- E.g., the loadable module 'foobar' in directory 'baz' will produce
1358
- 'libfoobar.so'
1359
- """
1360
- assert not self.is_mac_bundle
1361
-
1362
- if self.flavor == 'mac' and self.type in (
1363
- 'static_library', 'executable', 'shared_library', 'loadable_module'):
1364
- return self.xcode_settings.GetExecutablePath()
1365
-
1366
- target = spec['target_name']
1367
- target_prefix = ''
1368
- target_ext = ''
1369
- if self.type == 'static_library':
1370
- if target[:3] == 'lib':
1371
- target = target[3:]
1372
- target_prefix = 'lib'
1373
- target_ext = '.a'
1374
- elif self.type in ('loadable_module', 'shared_library'):
1375
- if target[:3] == 'lib':
1376
- target = target[3:]
1377
- target_prefix = 'lib'
1378
- if self.flavor == 'aix':
1379
- target_ext = '.a'
1380
- else:
1381
- target_ext = '.so'
1382
- elif self.type == 'none':
1383
- target = '%s.stamp' % target
1384
- elif self.type != 'executable':
1385
- print("ERROR: What output file should be generated?",
1386
- "type", self.type, "target", target)
1387
-
1388
- target_prefix = spec.get('product_prefix', target_prefix)
1389
- target = spec.get('product_name', target)
1390
- product_ext = spec.get('product_extension')
1391
- if product_ext:
1392
- target_ext = '.' + product_ext
1393
-
1394
- return target_prefix + target + target_ext
1395
-
1396
-
1397
- def _InstallImmediately(self):
1398
- return self.toolset == 'target' and self.flavor == 'mac' and self.type in (
1399
- 'static_library', 'executable', 'shared_library', 'loadable_module')
1400
-
1401
-
1402
- def ComputeOutput(self, spec):
1403
- """Return the 'output' (full output path) of a gyp spec.
1404
-
1405
- E.g., the loadable module 'foobar' in directory 'baz' will produce
1406
- '$(obj)/baz/libfoobar.so'
1407
- """
1408
- assert not self.is_mac_bundle
1409
-
1410
- path = os.path.join('$(obj).' + self.toolset, self.path)
1411
- if self.type == 'executable' or self._InstallImmediately():
1412
- path = '$(builddir)'
1413
- path = spec.get('product_dir', path)
1414
- return os.path.join(path, self.ComputeOutputBasename(spec))
1415
-
1416
-
1417
- def ComputeMacBundleOutput(self, spec):
1418
- """Return the 'output' (full output path) to a bundle output directory."""
1419
- assert self.is_mac_bundle
1420
- path = generator_default_variables['PRODUCT_DIR']
1421
- return os.path.join(path, self.xcode_settings.GetWrapperName())
1422
-
1423
-
1424
- def ComputeMacBundleBinaryOutput(self, spec):
1425
- """Return the 'output' (full output path) to the binary in a bundle."""
1426
- path = generator_default_variables['PRODUCT_DIR']
1427
- return os.path.join(path, self.xcode_settings.GetExecutablePath())
1485
+ # See "Target-specific Variable Values" in the GNU Make manual."""
1486
+ )
1487
+ self.WriteLn("$(OBJS): TOOLSET := $(TOOLSET)")
1488
+ self.WriteLn(
1489
+ "$(OBJS): GYP_CFLAGS := "
1490
+ "$(DEFS_$(BUILDTYPE)) "
1491
+ "$(INCS_$(BUILDTYPE)) "
1492
+ "%s " % precompiled_header.GetInclude("c") + "$(CFLAGS_$(BUILDTYPE)) "
1493
+ "$(CFLAGS_C_$(BUILDTYPE))"
1494
+ )
1495
+ self.WriteLn(
1496
+ "$(OBJS): GYP_CXXFLAGS := "
1497
+ "$(DEFS_$(BUILDTYPE)) "
1498
+ "$(INCS_$(BUILDTYPE)) "
1499
+ "%s " % precompiled_header.GetInclude("cc") + "$(CFLAGS_$(BUILDTYPE)) "
1500
+ "$(CFLAGS_CC_$(BUILDTYPE))"
1501
+ )
1502
+ if self.flavor == "mac":
1503
+ self.WriteLn(
1504
+ "$(OBJS): GYP_OBJCFLAGS := "
1505
+ "$(DEFS_$(BUILDTYPE)) "
1506
+ "$(INCS_$(BUILDTYPE)) "
1507
+ "%s "
1508
+ % precompiled_header.GetInclude("m")
1509
+ + "$(CFLAGS_$(BUILDTYPE)) "
1510
+ "$(CFLAGS_C_$(BUILDTYPE)) "
1511
+ "$(CFLAGS_OBJC_$(BUILDTYPE))"
1512
+ )
1513
+ self.WriteLn(
1514
+ "$(OBJS): GYP_OBJCXXFLAGS := "
1515
+ "$(DEFS_$(BUILDTYPE)) "
1516
+ "$(INCS_$(BUILDTYPE)) "
1517
+ "%s "
1518
+ % precompiled_header.GetInclude("mm")
1519
+ + "$(CFLAGS_$(BUILDTYPE)) "
1520
+ "$(CFLAGS_CC_$(BUILDTYPE)) "
1521
+ "$(CFLAGS_OBJCC_$(BUILDTYPE))"
1522
+ )
1523
+
1524
+ self.WritePchTargets(precompiled_header.GetPchBuildCommands())
1525
+
1526
+ # If there are any object files in our input file list, link them into our
1527
+ # output.
1528
+ extra_link_deps += [source for source in sources if Linkable(source)]
1428
1529
 
1530
+ self.WriteLn()
1429
1531
 
1430
- def ComputeDeps(self, spec):
1431
- """Compute the dependencies of a gyp spec.
1432
-
1433
- Returns a tuple (deps, link_deps), where each is a list of
1434
- filenames that will need to be put in front of make for either
1435
- building (deps) or linking (link_deps).
1436
- """
1437
- deps = []
1438
- link_deps = []
1439
- if 'dependencies' in spec:
1440
- deps.extend([target_outputs[dep] for dep in spec['dependencies']
1441
- if target_outputs[dep]])
1442
- for dep in spec['dependencies']:
1443
- if dep in target_link_deps:
1444
- link_deps.append(target_link_deps[dep])
1445
- deps.extend(link_deps)
1446
- # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
1447
- # This hack makes it work:
1448
- # link_deps.extend(spec.get('libraries', []))
1449
- return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
1450
-
1451
-
1452
- def WriteDependencyOnExtraOutputs(self, target, extra_outputs):
1453
- self.WriteMakeRule([self.output_binary], extra_outputs,
1454
- comment = 'Build our special outputs first.',
1455
- order_only = True)
1456
-
1457
-
1458
- def WriteTarget(self, spec, configs, deps, link_deps, bundle_deps,
1459
- extra_outputs, part_of_all):
1460
- """Write Makefile code to produce the final target of the gyp spec.
1461
-
1462
- spec, configs: input from gyp.
1463
- deps, link_deps: dependency lists; see ComputeDeps()
1464
- extra_outputs: any extra outputs that our target should depend on
1465
- part_of_all: flag indicating this target is part of 'all'
1466
- """
1467
-
1468
- self.WriteLn('### Rules for final target.')
1469
-
1470
- if extra_outputs:
1471
- self.WriteDependencyOnExtraOutputs(self.output_binary, extra_outputs)
1472
- self.WriteMakeRule(extra_outputs, deps,
1473
- comment=('Preserve order dependency of '
1474
- 'special output on deps.'),
1475
- order_only = True)
1476
-
1477
- target_postbuilds = {}
1478
- if self.type != 'none':
1479
- for configname in sorted(configs.keys()):
1480
- config = configs[configname]
1481
- if self.flavor == 'mac':
1482
- ldflags = self.xcode_settings.GetLdflags(configname,
1483
- generator_default_variables['PRODUCT_DIR'],
1484
- lambda p: Sourceify(self.Absolutify(p)))
1485
-
1486
- # TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on.
1487
- gyp_to_build = gyp.common.InvertRelativePath(self.path)
1488
- target_postbuild = self.xcode_settings.AddImplicitPostbuilds(
1489
- configname,
1490
- QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build,
1491
- self.output))),
1492
- QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build,
1493
- self.output_binary))))
1494
- if target_postbuild:
1495
- target_postbuilds[configname] = target_postbuild
1532
+ def WritePchTargets(self, pch_commands):
1533
+ """Writes make rules to compile prefix headers."""
1534
+ if not pch_commands:
1535
+ return
1536
+
1537
+ for gch, lang_flag, lang, input in pch_commands:
1538
+ extra_flags = {
1539
+ "c": "$(CFLAGS_C_$(BUILDTYPE))",
1540
+ "cc": "$(CFLAGS_CC_$(BUILDTYPE))",
1541
+ "m": "$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))",
1542
+ "mm": "$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))",
1543
+ }[lang]
1544
+ var_name = {
1545
+ "c": "GYP_PCH_CFLAGS",
1546
+ "cc": "GYP_PCH_CXXFLAGS",
1547
+ "m": "GYP_PCH_OBJCFLAGS",
1548
+ "mm": "GYP_PCH_OBJCXXFLAGS",
1549
+ }[lang]
1550
+ self.WriteLn(
1551
+ f"{gch}: {var_name} := {lang_flag} " + "$(DEFS_$(BUILDTYPE)) "
1552
+ "$(INCS_$(BUILDTYPE)) "
1553
+ "$(CFLAGS_$(BUILDTYPE)) " + extra_flags
1554
+ )
1555
+
1556
+ self.WriteLn(f"{gch}: {input} FORCE_DO_CMD")
1557
+ self.WriteLn("\t@$(call do_cmd,pch_%s,1)" % lang)
1558
+ self.WriteLn("")
1559
+ assert " " not in gch, "Spaces in gch filenames not supported (%s)" % gch
1560
+ self.WriteLn("all_deps += %s" % gch)
1561
+ self.WriteLn("")
1562
+
1563
+ def ComputeOutputBasename(self, spec):
1564
+ """Return the 'output basename' of a gyp spec.
1565
+
1566
+ E.g., the loadable module 'foobar' in directory 'baz' will produce
1567
+ 'libfoobar.so'
1568
+ """
1569
+ assert not self.is_mac_bundle
1570
+
1571
+ if self.flavor == "mac" and self.type in (
1572
+ "static_library",
1573
+ "executable",
1574
+ "shared_library",
1575
+ "loadable_module",
1576
+ ):
1577
+ return self.xcode_settings.GetExecutablePath()
1578
+
1579
+ target = spec["target_name"]
1580
+ target_prefix = ""
1581
+ target_ext = ""
1582
+ if self.type == "static_library":
1583
+ if target[:3] == "lib":
1584
+ target = target[3:]
1585
+ target_prefix = "lib"
1586
+ target_ext = ".a"
1587
+ elif self.type in ("loadable_module", "shared_library"):
1588
+ if target[:3] == "lib":
1589
+ target = target[3:]
1590
+ target_prefix = "lib"
1591
+ if self.flavor == "aix":
1592
+ target_ext = ".a"
1593
+ elif self.flavor == "zos":
1594
+ target_ext = ".x"
1595
+ else:
1596
+ target_ext = ".so"
1597
+ elif self.type == "none":
1598
+ target = "%s.stamp" % target
1599
+ elif self.type != "executable":
1600
+ print(
1601
+ "ERROR: What output file should be generated?",
1602
+ "type",
1603
+ self.type,
1604
+ "target",
1605
+ target,
1606
+ )
1607
+
1608
+ target_prefix = spec.get("product_prefix", target_prefix)
1609
+ target = spec.get("product_name", target)
1610
+ if product_ext := spec.get("product_extension"):
1611
+ target_ext = "." + product_ext
1612
+
1613
+ return target_prefix + target + target_ext
1614
+
1615
+ def _InstallImmediately(self):
1616
+ return (
1617
+ self.toolset == "target"
1618
+ and self.flavor == "mac"
1619
+ and self.type
1620
+ in ("static_library", "executable", "shared_library", "loadable_module")
1621
+ )
1622
+
1623
+ def ComputeOutput(self, spec):
1624
+ """Return the 'output' (full output path) of a gyp spec.
1625
+
1626
+ E.g., the loadable module 'foobar' in directory 'baz' will produce
1627
+ '$(obj)/baz/libfoobar.so'
1628
+ """
1629
+ assert not self.is_mac_bundle
1630
+
1631
+ path = os.path.join("$(obj)." + self.toolset, self.path)
1632
+ if self.type == "executable" or self._InstallImmediately():
1633
+ path = "$(builddir)"
1634
+ path = spec.get("product_dir", path)
1635
+ return os.path.join(path, self.ComputeOutputBasename(spec))
1636
+
1637
+ def ComputeMacBundleOutput(self, spec):
1638
+ """Return the 'output' (full output path) to a bundle output directory."""
1639
+ assert self.is_mac_bundle
1640
+ path = generator_default_variables["PRODUCT_DIR"]
1641
+ return os.path.join(path, self.xcode_settings.GetWrapperName())
1642
+
1643
+ def ComputeMacBundleBinaryOutput(self, spec):
1644
+ """Return the 'output' (full output path) to the binary in a bundle."""
1645
+ path = generator_default_variables["PRODUCT_DIR"]
1646
+ return os.path.join(path, self.xcode_settings.GetExecutablePath())
1647
+
1648
+ def ComputeDeps(self, spec):
1649
+ """Compute the dependencies of a gyp spec.
1650
+
1651
+ Returns a tuple (deps, link_deps), where each is a list of
1652
+ filenames that will need to be put in front of make for either
1653
+ building (deps) or linking (link_deps).
1654
+ """
1655
+ deps = []
1656
+ link_deps = []
1657
+ if "dependencies" in spec:
1658
+ deps.extend(
1659
+ [
1660
+ target_outputs[dep]
1661
+ for dep in spec["dependencies"]
1662
+ if target_outputs[dep]
1663
+ ]
1664
+ )
1665
+ for dep in spec["dependencies"]:
1666
+ if dep in target_link_deps:
1667
+ link_deps.append(target_link_deps[dep])
1668
+ deps.extend(link_deps)
1669
+ # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
1670
+ # This hack makes it work:
1671
+ # link_deps.extend(spec.get('libraries', []))
1672
+ return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
1673
+
1674
+ def GetSharedObjectFromSidedeck(self, sidedeck):
1675
+ """Return the shared object files based on sidedeck"""
1676
+ return re.sub(r"\.x$", ".so", sidedeck)
1677
+
1678
+ def GetUnversionedSidedeckFromSidedeck(self, sidedeck):
1679
+ """Return the shared object files based on sidedeck"""
1680
+ return re.sub(r"\.\d+\.x$", ".x", sidedeck)
1681
+
1682
+ def WriteDependencyOnExtraOutputs(self, target, extra_outputs):
1683
+ self.WriteMakeRule(
1684
+ [self.output_binary],
1685
+ extra_outputs,
1686
+ comment="Build our special outputs first.",
1687
+ order_only=True,
1688
+ )
1689
+
1690
+ def WriteTarget(
1691
+ self, spec, configs, deps, link_deps, bundle_deps, extra_outputs, part_of_all
1692
+ ):
1693
+ """Write Makefile code to produce the final target of the gyp spec.
1694
+
1695
+ spec, configs: input from gyp.
1696
+ deps, link_deps: dependency lists; see ComputeDeps()
1697
+ extra_outputs: any extra outputs that our target should depend on
1698
+ part_of_all: flag indicating this target is part of 'all'
1699
+ """
1700
+
1701
+ self.WriteLn("### Rules for final target.")
1702
+
1703
+ if extra_outputs:
1704
+ self.WriteDependencyOnExtraOutputs(self.output_binary, extra_outputs)
1705
+ self.WriteMakeRule(
1706
+ extra_outputs,
1707
+ deps,
1708
+ comment=("Preserve order dependency of special output on deps."),
1709
+ order_only=True,
1710
+ )
1711
+
1712
+ target_postbuilds = {}
1713
+ if self.type != "none":
1714
+ for configname in sorted(configs.keys()):
1715
+ config = configs[configname]
1716
+ if self.flavor == "mac":
1717
+ ldflags = self.xcode_settings.GetLdflags(
1718
+ configname,
1719
+ generator_default_variables["PRODUCT_DIR"],
1720
+ lambda p: Sourceify(self.Absolutify(p)),
1721
+ arch=config.get("xcode_configuration_platform"),
1722
+ )
1723
+
1724
+ # TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on.
1725
+ gyp_to_build = gyp.common.InvertRelativePath(self.path)
1726
+ target_postbuild = self.xcode_settings.AddImplicitPostbuilds(
1727
+ configname,
1728
+ QuoteSpaces(
1729
+ os.path.normpath(os.path.join(gyp_to_build, self.output))
1730
+ ),
1731
+ QuoteSpaces(
1732
+ os.path.normpath(
1733
+ os.path.join(gyp_to_build, self.output_binary)
1734
+ )
1735
+ ),
1736
+ )
1737
+ if target_postbuild:
1738
+ target_postbuilds[configname] = target_postbuild
1739
+ else:
1740
+ ldflags = config.get("ldflags", [])
1741
+ # Compute an rpath for this output if needed.
1742
+ if any(dep.endswith(".so") or ".so." in dep for dep in deps):
1743
+ # We want to get the literal string "$ORIGIN"
1744
+ # into the link command, so we need lots of escaping.
1745
+ ldflags.append(r"-Wl,-rpath=\$$ORIGIN/")
1746
+ ldflags.append(r"-Wl,-rpath-link=\$(builddir)/")
1747
+ if library_dirs := config.get("library_dirs", []):
1748
+ library_dirs = [Sourceify(self.Absolutify(i)) for i in library_dirs]
1749
+ ldflags += [("-L%s" % library_dir) for library_dir in library_dirs]
1750
+ self.WriteList(ldflags, "LDFLAGS_%s" % configname)
1751
+ if self.flavor == "mac":
1752
+ self.WriteList(
1753
+ self.xcode_settings.GetLibtoolflags(configname),
1754
+ "LIBTOOLFLAGS_%s" % configname,
1755
+ )
1756
+ libraries = spec.get("libraries")
1757
+ if libraries:
1758
+ # Remove duplicate entries
1759
+ libraries = gyp.common.uniquer(libraries)
1760
+ if self.flavor == "mac":
1761
+ libraries = self.xcode_settings.AdjustLibraries(libraries)
1762
+ self.WriteList(libraries, "LIBS")
1763
+ self.WriteLn(
1764
+ "%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))"
1765
+ % QuoteSpaces(self.output_binary)
1766
+ )
1767
+ self.WriteLn("%s: LIBS := $(LIBS)" % QuoteSpaces(self.output_binary))
1768
+
1769
+ if self.flavor == "mac":
1770
+ self.WriteLn(
1771
+ "%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))"
1772
+ % QuoteSpaces(self.output_binary)
1773
+ )
1774
+
1775
+ # Postbuild actions. Like actions, but implicitly depend on the target's
1776
+ # output.
1777
+ postbuilds = []
1778
+ if self.flavor == "mac":
1779
+ if target_postbuilds:
1780
+ postbuilds.append("$(TARGET_POSTBUILDS_$(BUILDTYPE))")
1781
+ postbuilds.extend(gyp.xcode_emulation.GetSpecPostbuildCommands(spec))
1782
+
1783
+ if postbuilds:
1784
+ # Envvars may be referenced by TARGET_POSTBUILDS_$(BUILDTYPE),
1785
+ # so we must output its definition first, since we declare variables
1786
+ # using ":=".
1787
+ self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
1788
+
1789
+ for configname, value in target_postbuilds.items():
1790
+ self.WriteLn(
1791
+ "%s: TARGET_POSTBUILDS_%s := %s"
1792
+ % (
1793
+ QuoteSpaces(self.output),
1794
+ configname,
1795
+ gyp.common.EncodePOSIXShellList(value),
1796
+ )
1797
+ )
1798
+
1799
+ # Postbuilds expect to be run in the gyp file's directory, so insert an
1800
+ # implicit postbuild to cd to there.
1801
+ postbuilds.insert(0, gyp.common.EncodePOSIXShellList(["cd", self.path]))
1802
+ for i, postbuild in enumerate(postbuilds):
1803
+ if not postbuild.startswith("$"):
1804
+ postbuilds[i] = EscapeShellArgument(postbuild)
1805
+ self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(self.output))
1806
+ self.WriteLn(
1807
+ "%s: POSTBUILDS := %s"
1808
+ % (QuoteSpaces(self.output), " ".join(postbuilds))
1809
+ )
1810
+
1811
+ # A bundle directory depends on its dependencies such as bundle resources
1812
+ # and bundle binary. When all dependencies have been built, the bundle
1813
+ # needs to be packaged.
1814
+ if self.is_mac_bundle:
1815
+ # If the framework doesn't contain a binary, then nothing depends
1816
+ # on the actions -- make the framework depend on them directly too.
1817
+ self.WriteDependencyOnExtraOutputs(self.output, extra_outputs)
1818
+
1819
+ # Bundle dependencies. Note that the code below adds actions to this
1820
+ # target, so if you move these two lines, move the lines below as well.
1821
+ self.WriteList([QuoteSpaces(dep) for dep in bundle_deps], "BUNDLE_DEPS")
1822
+ self.WriteLn("%s: $(BUNDLE_DEPS)" % QuoteSpaces(self.output))
1823
+
1824
+ # After the framework is built, package it. Needs to happen before
1825
+ # postbuilds, since postbuilds depend on this.
1826
+ if self.type in ("shared_library", "loadable_module"):
1827
+ self.WriteLn(
1828
+ "\t@$(call do_cmd,mac_package_framework,,,%s)"
1829
+ % self.xcode_settings.GetFrameworkVersion()
1830
+ )
1831
+
1832
+ # Bundle postbuilds can depend on the whole bundle, so run them after
1833
+ # the bundle is packaged, not already after the bundle binary is done.
1834
+ if postbuilds:
1835
+ self.WriteLn("\t@$(call do_postbuilds)")
1836
+ postbuilds = [] # Don't write postbuilds for target's output.
1837
+
1838
+ # Needed by test/mac/gyptest-rebuild.py.
1839
+ self.WriteLn("\t@true # No-op, used by tests")
1840
+
1841
+ # Since this target depends on binary and resources which are in
1842
+ # nested subfolders, the framework directory will be older than
1843
+ # its dependencies usually. To prevent this rule from executing
1844
+ # on every build (expensive, especially with postbuilds), explicitly
1845
+ # update the time on the framework directory.
1846
+ self.WriteLn("\t@touch -c %s" % QuoteSpaces(self.output))
1847
+
1848
+ if postbuilds:
1849
+ assert not self.is_mac_bundle, (
1850
+ "Postbuilds for bundles should be done "
1851
+ "on the bundle, not the binary (target '%s')" % self.target
1852
+ )
1853
+ assert "product_dir" not in spec, (
1854
+ "Postbuilds do not work with custom product_dir"
1855
+ )
1856
+
1857
+ if self.type == "executable":
1858
+ self.WriteLn(
1859
+ "%s: LD_INPUTS := %s"
1860
+ % (
1861
+ QuoteSpaces(self.output_binary),
1862
+ " ".join(QuoteSpaces(dep) for dep in link_deps),
1863
+ )
1864
+ )
1865
+ if self.toolset == "host" and self.flavor == "android":
1866
+ self.WriteDoCmd(
1867
+ [self.output_binary],
1868
+ link_deps,
1869
+ "link_host",
1870
+ part_of_all,
1871
+ postbuilds=postbuilds,
1872
+ )
1873
+ else:
1874
+ self.WriteDoCmd(
1875
+ [self.output_binary],
1876
+ link_deps,
1877
+ "link",
1878
+ part_of_all,
1879
+ postbuilds=postbuilds,
1880
+ )
1881
+
1882
+ elif self.type == "static_library":
1883
+ for link_dep in link_deps:
1884
+ assert " " not in link_dep, (
1885
+ "Spaces in alink input filenames not supported (%s)" % link_dep
1886
+ )
1887
+ if (
1888
+ self.flavor not in ("mac", "openbsd", "netbsd", "win")
1889
+ and not self.is_standalone_static_library
1890
+ ):
1891
+ if self.flavor in ("linux", "android", "openharmony"):
1892
+ self.WriteMakeRule(
1893
+ [self.output_binary],
1894
+ link_deps,
1895
+ actions=["$(call create_thin_archive,$@,$^)"],
1896
+ )
1897
+ else:
1898
+ self.WriteDoCmd(
1899
+ [self.output_binary],
1900
+ link_deps,
1901
+ "alink_thin",
1902
+ part_of_all,
1903
+ postbuilds=postbuilds,
1904
+ )
1905
+ elif self.flavor in ("linux", "android", "openharmony"):
1906
+ self.WriteMakeRule(
1907
+ [self.output_binary],
1908
+ link_deps,
1909
+ actions=["$(call create_archive,$@,$^)"],
1910
+ )
1911
+ else:
1912
+ self.WriteDoCmd(
1913
+ [self.output_binary],
1914
+ link_deps,
1915
+ "alink",
1916
+ part_of_all,
1917
+ postbuilds=postbuilds,
1918
+ )
1919
+ elif self.type == "shared_library":
1920
+ self.WriteLn(
1921
+ "%s: LD_INPUTS := %s"
1922
+ % (
1923
+ QuoteSpaces(self.output_binary),
1924
+ " ".join(QuoteSpaces(dep) for dep in link_deps),
1925
+ )
1926
+ )
1927
+ self.WriteDoCmd(
1928
+ [self.output_binary],
1929
+ link_deps,
1930
+ "solink",
1931
+ part_of_all,
1932
+ postbuilds=postbuilds,
1933
+ )
1934
+ # z/OS has a .so target as well as a sidedeck .x target
1935
+ if self.flavor == "zos":
1936
+ self.WriteLn(
1937
+ "%s: %s"
1938
+ % (
1939
+ QuoteSpaces(
1940
+ self.GetSharedObjectFromSidedeck(self.output_binary)
1941
+ ),
1942
+ QuoteSpaces(self.output_binary),
1943
+ )
1944
+ )
1945
+ elif self.type == "loadable_module":
1946
+ for link_dep in link_deps:
1947
+ assert " " not in link_dep, (
1948
+ "Spaces in module input filenames not supported (%s)" % link_dep
1949
+ )
1950
+ if self.toolset == "host" and self.flavor == "android":
1951
+ self.WriteDoCmd(
1952
+ [self.output_binary],
1953
+ link_deps,
1954
+ "solink_module_host",
1955
+ part_of_all,
1956
+ postbuilds=postbuilds,
1957
+ )
1958
+ else:
1959
+ self.WriteDoCmd(
1960
+ [self.output_binary],
1961
+ link_deps,
1962
+ "solink_module",
1963
+ part_of_all,
1964
+ postbuilds=postbuilds,
1965
+ )
1966
+ elif self.type == "none":
1967
+ # Write a stamp line.
1968
+ self.WriteDoCmd(
1969
+ [self.output_binary], deps, "touch", part_of_all, postbuilds=postbuilds
1970
+ )
1496
1971
  else:
1497
- ldflags = config.get('ldflags', [])
1498
- # Compute an rpath for this output if needed.
1499
- if any(dep.endswith('.so') or '.so.' in dep for dep in deps):
1500
- # We want to get the literal string "$ORIGIN" into the link command,
1501
- # so we need lots of escaping.
1502
- ldflags.append(r'-Wl,-rpath=\$$ORIGIN/lib.%s/' % self.toolset)
1503
- ldflags.append(r'-Wl,-rpath-link=\$(builddir)/lib.%s/' %
1504
- self.toolset)
1505
- library_dirs = config.get('library_dirs', [])
1506
- ldflags += [('-L%s' % library_dir) for library_dir in library_dirs]
1507
- self.WriteList(ldflags, 'LDFLAGS_%s' % configname)
1508
- if self.flavor == 'mac':
1509
- self.WriteList(self.xcode_settings.GetLibtoolflags(configname),
1510
- 'LIBTOOLFLAGS_%s' % configname)
1511
- libraries = spec.get('libraries')
1512
- if libraries:
1513
- # Remove duplicate entries
1514
- libraries = gyp.common.uniquer(libraries)
1515
- if self.flavor == 'mac':
1516
- libraries = self.xcode_settings.AdjustLibraries(libraries)
1517
- self.WriteList(libraries, 'LIBS')
1518
- self.WriteLn('%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))' %
1519
- QuoteSpaces(self.output_binary))
1520
- self.WriteLn('%s: LIBS := $(LIBS)' % QuoteSpaces(self.output_binary))
1521
-
1522
- if self.flavor == 'mac':
1523
- self.WriteLn('%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))' %
1524
- QuoteSpaces(self.output_binary))
1525
-
1526
- # Postbuild actions. Like actions, but implicitly depend on the target's
1527
- # output.
1528
- postbuilds = []
1529
- if self.flavor == 'mac':
1530
- if target_postbuilds:
1531
- postbuilds.append('$(TARGET_POSTBUILDS_$(BUILDTYPE))')
1532
- postbuilds.extend(
1533
- gyp.xcode_emulation.GetSpecPostbuildCommands(spec))
1534
-
1535
- if postbuilds:
1536
- # Envvars may be referenced by TARGET_POSTBUILDS_$(BUILDTYPE),
1537
- # so we must output its definition first, since we declare variables
1538
- # using ":=".
1539
- self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
1540
-
1541
- for configname in target_postbuilds:
1542
- self.WriteLn('%s: TARGET_POSTBUILDS_%s := %s' %
1543
- (QuoteSpaces(self.output),
1544
- configname,
1545
- gyp.common.EncodePOSIXShellList(target_postbuilds[configname])))
1546
-
1547
- # Postbuilds expect to be run in the gyp file's directory, so insert an
1548
- # implicit postbuild to cd to there.
1549
- postbuilds.insert(0, gyp.common.EncodePOSIXShellList(['cd', self.path]))
1550
- for i in range(len(postbuilds)):
1551
- if not postbuilds[i].startswith('$'):
1552
- postbuilds[i] = EscapeShellArgument(postbuilds[i])
1553
- self.WriteLn('%s: builddir := $(abs_builddir)' % QuoteSpaces(self.output))
1554
- self.WriteLn('%s: POSTBUILDS := %s' % (
1555
- QuoteSpaces(self.output), ' '.join(postbuilds)))
1556
-
1557
- # A bundle directory depends on its dependencies such as bundle resources
1558
- # and bundle binary. When all dependencies have been built, the bundle
1559
- # needs to be packaged.
1560
- if self.is_mac_bundle:
1561
- # If the framework doesn't contain a binary, then nothing depends
1562
- # on the actions -- make the framework depend on them directly too.
1563
- self.WriteDependencyOnExtraOutputs(self.output, extra_outputs)
1564
-
1565
- # Bundle dependencies. Note that the code below adds actions to this
1566
- # target, so if you move these two lines, move the lines below as well.
1567
- self.WriteList([QuoteSpaces(dep) for dep in bundle_deps], 'BUNDLE_DEPS')
1568
- self.WriteLn('%s: $(BUNDLE_DEPS)' % QuoteSpaces(self.output))
1569
-
1570
- # After the framework is built, package it. Needs to happen before
1571
- # postbuilds, since postbuilds depend on this.
1572
- if self.type in ('shared_library', 'loadable_module'):
1573
- self.WriteLn('\t@$(call do_cmd,mac_package_framework,,,%s)' %
1574
- self.xcode_settings.GetFrameworkVersion())
1575
-
1576
- # Bundle postbuilds can depend on the whole bundle, so run them after
1577
- # the bundle is packaged, not already after the bundle binary is done.
1578
- if postbuilds:
1579
- self.WriteLn('\t@$(call do_postbuilds)')
1580
- postbuilds = [] # Don't write postbuilds for target's output.
1581
-
1582
- # Needed by test/mac/gyptest-rebuild.py.
1583
- self.WriteLn('\t@true # No-op, used by tests')
1584
-
1585
- # Since this target depends on binary and resources which are in
1586
- # nested subfolders, the framework directory will be older than
1587
- # its dependencies usually. To prevent this rule from executing
1588
- # on every build (expensive, especially with postbuilds), expliclity
1589
- # update the time on the framework directory.
1590
- self.WriteLn('\t@touch -c %s' % QuoteSpaces(self.output))
1591
-
1592
- if postbuilds:
1593
- assert not self.is_mac_bundle, ('Postbuilds for bundles should be done '
1594
- 'on the bundle, not the binary (target \'%s\')' % self.target)
1595
- assert 'product_dir' not in spec, ('Postbuilds do not work with '
1596
- 'custom product_dir')
1597
-
1598
- if self.type == 'executable':
1599
- self.WriteLn('%s: LD_INPUTS := %s' % (
1600
- QuoteSpaces(self.output_binary),
1601
- ' '.join(QuoteSpaces(dep) for dep in link_deps)))
1602
- if self.toolset == 'host' and self.flavor == 'android':
1603
- self.WriteDoCmd([self.output_binary], link_deps, 'link_host',
1604
- part_of_all, postbuilds=postbuilds)
1605
- else:
1606
- self.WriteDoCmd([self.output_binary], link_deps, 'link', part_of_all,
1607
- postbuilds=postbuilds)
1608
-
1609
- elif self.type == 'static_library':
1610
- for link_dep in link_deps:
1611
- assert ' ' not in link_dep, (
1612
- "Spaces in alink input filenames not supported (%s)" % link_dep)
1613
- if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not
1614
- self.is_standalone_static_library):
1615
- self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
1616
- part_of_all, postbuilds=postbuilds)
1617
- else:
1618
- self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
1619
- postbuilds=postbuilds)
1620
- elif self.type == 'shared_library':
1621
- self.WriteLn('%s: LD_INPUTS := %s' % (
1622
- QuoteSpaces(self.output_binary),
1623
- ' '.join(QuoteSpaces(dep) for dep in link_deps)))
1624
- self.WriteDoCmd([self.output_binary], link_deps, 'solink', part_of_all,
1625
- postbuilds=postbuilds)
1626
- elif self.type == 'loadable_module':
1627
- for link_dep in link_deps:
1628
- assert ' ' not in link_dep, (
1629
- "Spaces in module input filenames not supported (%s)" % link_dep)
1630
- if self.toolset == 'host' and self.flavor == 'android':
1631
- self.WriteDoCmd([self.output_binary], link_deps, 'solink_module_host',
1632
- part_of_all, postbuilds=postbuilds)
1633
- else:
1634
- self.WriteDoCmd(
1635
- [self.output_binary], link_deps, 'solink_module', part_of_all,
1636
- postbuilds=postbuilds)
1637
- elif self.type == 'none':
1638
- # Write a stamp line.
1639
- self.WriteDoCmd([self.output_binary], deps, 'touch', part_of_all,
1640
- postbuilds=postbuilds)
1641
- else:
1642
- print("WARNING: no output for", self.type, self.target)
1643
-
1644
- # Add an alias for each target (if there are any outputs).
1645
- # Installable target aliases are created below.
1646
- if ((self.output and self.output != self.target) and
1647
- (self.type not in self._INSTALLABLE_TARGETS)):
1648
- self.WriteMakeRule([self.target], [self.output],
1649
- comment='Add target alias', phony = True)
1650
- if part_of_all:
1651
- self.WriteMakeRule(['all'], [self.target],
1652
- comment = 'Add target alias to "all" target.',
1653
- phony = True)
1654
-
1655
- # Add special-case rules for our installable targets.
1656
- # 1) They need to install to the build dir or "product" dir.
1657
- # 2) They get shortcuts for building (e.g. "make chrome").
1658
- # 3) They are part of "make all".
1659
- if (self.type in self._INSTALLABLE_TARGETS or
1660
- self.is_standalone_static_library):
1661
- if self.type == 'shared_library':
1662
- file_desc = 'shared library'
1663
- elif self.type == 'static_library':
1664
- file_desc = 'static library'
1665
- else:
1666
- file_desc = 'executable'
1667
- install_path = self._InstallableTargetInstallPath()
1668
- installable_deps = [self.output]
1669
- if (self.flavor == 'mac' and not 'product_dir' in spec and
1670
- self.toolset == 'target'):
1671
- # On mac, products are created in install_path immediately.
1672
- assert install_path == self.output, '%s != %s' % (
1673
- install_path, self.output)
1674
-
1675
- # Point the target alias to the final binary output.
1676
- self.WriteMakeRule([self.target], [install_path],
1677
- comment='Add target alias', phony = True)
1678
- if install_path != self.output:
1679
- assert not self.is_mac_bundle # See comment a few lines above.
1680
- self.WriteDoCmd([install_path], [self.output], 'copy',
1681
- comment = 'Copy this to the %s output path.' %
1682
- file_desc, part_of_all=part_of_all)
1683
- installable_deps.append(install_path)
1684
- if self.output != self.alias and self.alias != self.target:
1685
- self.WriteMakeRule([self.alias], installable_deps,
1686
- comment = 'Short alias for building this %s.' %
1687
- file_desc, phony = True)
1688
- if part_of_all:
1689
- self.WriteMakeRule(['all'], [install_path],
1690
- comment = 'Add %s to "all" target.' % file_desc,
1691
- phony = True)
1692
-
1693
-
1694
- def WriteList(self, value_list, variable=None, prefix='',
1695
- quoter=QuoteIfNecessary):
1696
- """Write a variable definition that is a list of values.
1697
-
1698
- E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
1699
- foo = blaha blahb
1700
- but in a pretty-printed style.
1701
- """
1702
- values = ''
1703
- if value_list:
1704
- value_list = [quoter(prefix + l) for l in value_list]
1705
- values = ' \\\n\t' + ' \\\n\t'.join(value_list)
1706
- self.fp.write('%s :=%s\n\n' % (variable, values))
1972
+ print("WARNING: no output for", self.type, self.target)
1973
+
1974
+ # Add an alias for each target (if there are any outputs).
1975
+ # Installable target aliases are created below.
1976
+ if (self.output and self.output != self.target) and (
1977
+ self.type not in self._INSTALLABLE_TARGETS
1978
+ ):
1979
+ self.WriteMakeRule(
1980
+ [self.target], [self.output], comment="Add target alias", phony=True
1981
+ )
1982
+ if part_of_all:
1983
+ self.WriteMakeRule(
1984
+ ["all"],
1985
+ [self.target],
1986
+ comment='Add target alias to "all" target.',
1987
+ phony=True,
1988
+ )
1989
+
1990
+ # Add special-case rules for our installable targets.
1991
+ # 1) They need to install to the build dir or "product" dir.
1992
+ # 2) They get shortcuts for building (e.g. "make chrome").
1993
+ # 3) They are part of "make all".
1994
+ if self.type in self._INSTALLABLE_TARGETS or self.is_standalone_static_library:
1995
+ if self.type == "shared_library":
1996
+ file_desc = "shared library"
1997
+ elif self.type == "static_library":
1998
+ file_desc = "static library"
1999
+ else:
2000
+ file_desc = "executable"
2001
+ install_path = self._InstallableTargetInstallPath()
2002
+ installable_deps = []
2003
+ if self.flavor != "zos":
2004
+ installable_deps.append(self.output)
2005
+ if (
2006
+ self.flavor == "mac"
2007
+ and "product_dir" not in spec
2008
+ and self.toolset == "target"
2009
+ ):
2010
+ # On mac, products are created in install_path immediately.
2011
+ assert install_path == self.output, f"{install_path} != {self.output}"
2012
+
2013
+ # Point the target alias to the final binary output.
2014
+ self.WriteMakeRule(
2015
+ [self.target], [install_path], comment="Add target alias", phony=True
2016
+ )
2017
+ if install_path != self.output:
2018
+ assert not self.is_mac_bundle # See comment a few lines above.
2019
+ self.WriteDoCmd(
2020
+ [install_path],
2021
+ [self.output],
2022
+ "copy",
2023
+ comment="Copy this to the %s output path." % file_desc,
2024
+ part_of_all=part_of_all,
2025
+ )
2026
+ if self.flavor != "zos":
2027
+ installable_deps.append(install_path)
2028
+ if self.flavor == "zos" and self.type == "shared_library":
2029
+ # lib.target/libnode.so has a dependency on $(obj).target/libnode.so
2030
+ self.WriteDoCmd(
2031
+ [self.GetSharedObjectFromSidedeck(install_path)],
2032
+ [self.GetSharedObjectFromSidedeck(self.output)],
2033
+ "copy",
2034
+ comment="Copy this to the %s output path." % file_desc,
2035
+ part_of_all=part_of_all,
2036
+ )
2037
+ # Create a symlink of libnode.x to libnode.version.x
2038
+ self.WriteDoCmd(
2039
+ [self.GetUnversionedSidedeckFromSidedeck(install_path)],
2040
+ [install_path],
2041
+ "symlink",
2042
+ comment="Symlnk this to the %s output path." % file_desc,
2043
+ part_of_all=part_of_all,
2044
+ )
2045
+ # Place libnode.version.so and libnode.x symlink in lib.target dir
2046
+ installable_deps.append(self.GetSharedObjectFromSidedeck(install_path))
2047
+ installable_deps.append(
2048
+ self.GetUnversionedSidedeckFromSidedeck(install_path)
2049
+ )
2050
+ if self.alias not in (self.output, self.target):
2051
+ self.WriteMakeRule(
2052
+ [self.alias],
2053
+ installable_deps,
2054
+ comment="Short alias for building this %s." % file_desc,
2055
+ phony=True,
2056
+ )
2057
+ if self.flavor == "zos" and self.type == "shared_library":
2058
+ # Make sure that .x symlink target is run
2059
+ self.WriteMakeRule(
2060
+ ["all"],
2061
+ [
2062
+ self.GetUnversionedSidedeckFromSidedeck(install_path),
2063
+ self.GetSharedObjectFromSidedeck(install_path),
2064
+ ],
2065
+ comment='Add %s to "all" target.' % file_desc,
2066
+ phony=True,
2067
+ )
2068
+ elif part_of_all:
2069
+ self.WriteMakeRule(
2070
+ ["all"],
2071
+ [install_path],
2072
+ comment='Add %s to "all" target.' % file_desc,
2073
+ phony=True,
2074
+ )
2075
+
2076
+ def WriteList(self, value_list, variable=None, prefix="", quoter=QuoteIfNecessary):
2077
+ """Write a variable definition that is a list of values.
2078
+
2079
+ E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
2080
+ foo = blaha blahb
2081
+ but in a pretty-printed style.
2082
+ """
2083
+ values = ""
2084
+ if value_list:
2085
+ value_list = [replace_sep(quoter(prefix + value)) for value in value_list]
2086
+ values = " \\\n\t" + " \\\n\t".join(value_list)
2087
+ self.fp.write(f"{variable} :={values}\n\n")
2088
+
2089
+ def WriteDoCmd(
2090
+ self, outputs, inputs, command, part_of_all, comment=None, postbuilds=False
2091
+ ):
2092
+ """Write a Makefile rule that uses do_cmd.
2093
+
2094
+ This makes the outputs dependent on the command line that was run,
2095
+ as well as support the V= make command line flag.
2096
+ """
2097
+ suffix = ""
2098
+ if postbuilds:
2099
+ assert "," not in command
2100
+ suffix = ",,1" # Tell do_cmd to honor $POSTBUILDS
2101
+ self.WriteMakeRule(
2102
+ outputs,
2103
+ inputs,
2104
+ actions=[f"$(call do_cmd,{command}{suffix})"],
2105
+ comment=comment,
2106
+ command=command,
2107
+ force=True,
2108
+ )
2109
+ # Add our outputs to the list of targets we read depfiles from.
2110
+ # all_deps is only used for deps file reading, and for deps files we replace
2111
+ # spaces with ? because escaping doesn't work with make's $(sort) and
2112
+ # other functions.
2113
+ outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
2114
+ self.WriteLn("all_deps += %s" % " ".join(outputs))
2115
+
2116
+ def WriteMakeRule(
2117
+ self,
2118
+ outputs,
2119
+ inputs,
2120
+ actions=None,
2121
+ comment=None,
2122
+ order_only=False,
2123
+ force=False,
2124
+ phony=False,
2125
+ command=None,
2126
+ ):
2127
+ """Write a Makefile rule, with some extra tricks.
2128
+
2129
+ outputs: a list of outputs for the rule (note: this is not directly
2130
+ supported by make; see comments below)
2131
+ inputs: a list of inputs for the rule
2132
+ actions: a list of shell commands to run for the rule
2133
+ comment: a comment to put in the Makefile above the rule (also useful
2134
+ for making this Python script's code self-documenting)
2135
+ order_only: if true, makes the dependency order-only
2136
+ force: if true, include FORCE_DO_CMD as an order-only dep
2137
+ phony: if true, the rule does not actually generate the named output, the
2138
+ output is just a name to run the rule
2139
+ command: (optional) command name to generate unambiguous labels
2140
+ """
2141
+ outputs = [QuoteSpaces(o) for o in outputs]
2142
+ inputs = [QuoteSpaces(i) for i in inputs]
2143
+
2144
+ if comment:
2145
+ self.WriteLn("# " + comment)
2146
+ if phony:
2147
+ self.WriteLn(".PHONY: " + " ".join(outputs))
2148
+ if actions:
2149
+ self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0])
2150
+ force_append = " FORCE_DO_CMD" if force else ""
2151
+
2152
+ if order_only:
2153
+ # Order only rule: Just write a simple rule.
2154
+ # TODO(evanm): just make order_only a list of deps instead of this hack.
2155
+ self.WriteLn(
2156
+ "{}: | {}{}".format(" ".join(outputs), " ".join(inputs), force_append)
2157
+ )
2158
+ elif len(outputs) == 1:
2159
+ # Regular rule, one output: Just write a simple rule.
2160
+ self.WriteLn("{}: {}{}".format(outputs[0], " ".join(inputs), force_append))
2161
+ else:
2162
+ # Regular rule, more than one output: Multiple outputs are tricky in
2163
+ # make. We will write three rules:
2164
+ # - All outputs depend on an intermediate file.
2165
+ # - Make .INTERMEDIATE depend on the intermediate.
2166
+ # - The intermediate file depends on the inputs and executes the
2167
+ # actual command.
2168
+ # - The intermediate recipe will 'touch' the intermediate file.
2169
+ # - The multi-output rule will have an do-nothing recipe.
2170
+
2171
+ # Hash the target name to avoid generating overlong filenames.
2172
+ cmddigest = hashlib.sha256(
2173
+ (command or self.target).encode("utf-8")
2174
+ ).hexdigest()
2175
+ intermediate = "%s.intermediate" % cmddigest
2176
+ self.WriteLn("{}: {}".format(" ".join(outputs), intermediate))
2177
+ self.WriteLn("\t%s" % "@:")
2178
+ self.WriteLn("{}: {}".format(".INTERMEDIATE", intermediate))
2179
+ self.WriteLn(
2180
+ "{}: {}{}".format(intermediate, " ".join(inputs), force_append)
2181
+ )
2182
+ actions.insert(0, "$(call do_cmd,touch)")
2183
+
2184
+ if actions:
2185
+ for action in actions:
2186
+ self.WriteLn("\t%s" % action)
2187
+ self.WriteLn()
1707
2188
 
2189
+ def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps):
2190
+ """Write a set of LOCAL_XXX definitions for Android NDK.
2191
+
2192
+ These variable definitions will be used by Android NDK but do nothing for
2193
+ non-Android applications.
2194
+
2195
+ Arguments:
2196
+ module_name: Android NDK module name, which must be unique among all
2197
+ module names.
2198
+ all_sources: A list of source files (will be filtered by Compilable).
2199
+ link_deps: A list of link dependencies, which must be sorted in
2200
+ the order from dependencies to dependents.
2201
+ """
2202
+ if self.type not in ("executable", "shared_library", "static_library"):
2203
+ return
2204
+
2205
+ self.WriteLn("# Variable definitions for Android applications")
2206
+ self.WriteLn("include $(CLEAR_VARS)")
2207
+ self.WriteLn("LOCAL_MODULE := " + module_name)
2208
+ self.WriteLn(
2209
+ "LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) "
2210
+ "$(DEFS_$(BUILDTYPE)) "
2211
+ # LOCAL_CFLAGS is applied to both of C and C++. There is
2212
+ # no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C
2213
+ # sources.
2214
+ "$(CFLAGS_C_$(BUILDTYPE)) "
2215
+ # $(INCS_$(BUILDTYPE)) includes the prefix '-I' while
2216
+ # LOCAL_C_INCLUDES does not expect it. So put it in
2217
+ # LOCAL_CFLAGS.
2218
+ "$(INCS_$(BUILDTYPE))"
2219
+ )
2220
+ # LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred.
2221
+ self.WriteLn("LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))")
2222
+ self.WriteLn("LOCAL_C_INCLUDES :=")
2223
+ self.WriteLn("LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)")
2224
+
2225
+ # Detect the C++ extension.
2226
+ cpp_ext = {".cc": 0, ".cpp": 0, ".cxx": 0}
2227
+ default_cpp_ext = ".cpp"
2228
+ for filename in all_sources:
2229
+ ext = os.path.splitext(filename)[1]
2230
+ if ext in cpp_ext:
2231
+ cpp_ext[ext] += 1
2232
+ if cpp_ext[ext] > cpp_ext[default_cpp_ext]:
2233
+ default_cpp_ext = ext
2234
+ self.WriteLn("LOCAL_CPP_EXTENSION := " + default_cpp_ext)
2235
+
2236
+ self.WriteList(
2237
+ list(map(self.Absolutify, filter(Compilable, all_sources))),
2238
+ "LOCAL_SRC_FILES",
2239
+ )
2240
+
2241
+ # Filter out those which do not match prefix and suffix and produce
2242
+ # the resulting list without prefix and suffix.
2243
+ def DepsToModules(deps, prefix, suffix):
2244
+ modules = []
2245
+ for filepath in deps:
2246
+ filename = os.path.basename(filepath)
2247
+ if filename.startswith(prefix) and filename.endswith(suffix):
2248
+ modules.append(filename[len(prefix) : -len(suffix)])
2249
+ return modules
2250
+
2251
+ # Retrieve the default value of 'SHARED_LIB_SUFFIX'
2252
+ params = {"flavor": "linux"}
2253
+ default_variables = {}
2254
+ CalculateVariables(default_variables, params)
2255
+
2256
+ self.WriteList(
2257
+ DepsToModules(
2258
+ link_deps,
2259
+ generator_default_variables["SHARED_LIB_PREFIX"],
2260
+ default_variables["SHARED_LIB_SUFFIX"],
2261
+ ),
2262
+ "LOCAL_SHARED_LIBRARIES",
2263
+ )
2264
+ self.WriteList(
2265
+ DepsToModules(
2266
+ link_deps,
2267
+ generator_default_variables["STATIC_LIB_PREFIX"],
2268
+ generator_default_variables["STATIC_LIB_SUFFIX"],
2269
+ ),
2270
+ "LOCAL_STATIC_LIBRARIES",
2271
+ )
2272
+
2273
+ if self.type == "executable":
2274
+ self.WriteLn("include $(BUILD_EXECUTABLE)")
2275
+ elif self.type == "shared_library":
2276
+ self.WriteLn("include $(BUILD_SHARED_LIBRARY)")
2277
+ elif self.type == "static_library":
2278
+ self.WriteLn("include $(BUILD_STATIC_LIBRARY)")
2279
+ self.WriteLn()
1708
2280
 
1709
- def WriteDoCmd(self, outputs, inputs, command, part_of_all, comment=None,
1710
- postbuilds=False):
1711
- """Write a Makefile rule that uses do_cmd.
2281
+ def WriteLn(self, text=""):
2282
+ self.fp.write(text + "\n")
2283
+
2284
+ def GetSortedXcodeEnv(self, additional_settings=None):
2285
+ return gyp.xcode_emulation.GetSortedXcodeEnv(
2286
+ self.xcode_settings,
2287
+ "$(abs_builddir)",
2288
+ os.path.join("$(abs_srcdir)", self.path),
2289
+ "$(BUILDTYPE)",
2290
+ additional_settings,
2291
+ )
2292
+
2293
+ def GetSortedXcodePostbuildEnv(self):
2294
+ # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
2295
+ # TODO(thakis): It would be nice to have some general mechanism instead.
2296
+ strip_save_file = self.xcode_settings.GetPerTargetSetting(
2297
+ "CHROMIUM_STRIP_SAVE_FILE", ""
2298
+ )
2299
+ # Even if strip_save_file is empty, explicitly write it. Else a postbuild
2300
+ # might pick up an export from an earlier target.
2301
+ return self.GetSortedXcodeEnv(
2302
+ additional_settings={"CHROMIUM_STRIP_SAVE_FILE": strip_save_file}
2303
+ )
2304
+
2305
+ def WriteSortedXcodeEnv(self, target, env):
2306
+ for k, v in env:
2307
+ # For
2308
+ # foo := a\ b
2309
+ # the escaped space does the right thing. For
2310
+ # export foo := a\ b
2311
+ # it does not -- the backslash is written to the env as literal character.
2312
+ # So don't escape spaces in |env[k]|.
2313
+ self.WriteLn(f"{QuoteSpaces(target)}: export {k} := {v}")
2314
+
2315
+ def Objectify(self, path):
2316
+ """Convert a path to its output directory form."""
2317
+ if "$(" in path:
2318
+ path = path.replace("$(obj)/", "$(obj).%s/$(TARGET)/" % self.toolset)
2319
+ if "$(obj)" not in path:
2320
+ path = f"$(obj).{self.toolset}/$(TARGET)/{path}"
2321
+ return path
2322
+
2323
+ def Pchify(self, path, lang):
2324
+ """Convert a prefix header path to its output directory form."""
2325
+ path = self.Absolutify(path)
2326
+ if "$(" in path:
2327
+ path = path.replace(
2328
+ "$(obj)/", f"$(obj).{self.toolset}/$(TARGET)/pch-{lang}"
2329
+ )
2330
+ return path
2331
+ return f"$(obj).{self.toolset}/$(TARGET)/pch-{lang}/{path}"
2332
+
2333
+ def Absolutify(self, path):
2334
+ """Convert a subdirectory-relative path into a base-relative path.
2335
+ Skips over paths that contain variables."""
2336
+ if "$(" in path:
2337
+ # Don't call normpath in this case, as it might collapse the
2338
+ # path too aggressively if it features '..'. However it's still
2339
+ # important to strip trailing slashes.
2340
+ return path.rstrip("/")
2341
+ return os.path.normpath(os.path.join(self.path, path))
2342
+
2343
+ def ExpandInputRoot(self, template, expansion, dirname):
2344
+ if "%(INPUT_ROOT)s" not in template and "%(INPUT_DIRNAME)s" not in template:
2345
+ return template
2346
+ path = template % {
2347
+ "INPUT_ROOT": expansion,
2348
+ "INPUT_DIRNAME": dirname,
2349
+ }
2350
+ return path
2351
+
2352
+ def _InstallableTargetInstallPath(self):
2353
+ """Returns the location of the final output for an installable target."""
2354
+ # Functionality removed for all platforms to match Xcode and hoist
2355
+ # shared libraries into PRODUCT_DIR for users:
2356
+ # Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
2357
+ # rely on this. Emulate this behavior for mac.
2358
+ # if self.type == "shared_library" and (
2359
+ # self.flavor != "mac" or self.toolset != "target"
2360
+ # ):
2361
+ # # Install all shared libs into a common directory (per toolset) for
2362
+ # # convenient access with LD_LIBRARY_PATH.
2363
+ # return "$(builddir)/lib.%s/%s" % (self.toolset, self.alias)
2364
+ if self.flavor == "zos" and self.type == "shared_library":
2365
+ return "$(builddir)/lib.%s/%s" % (self.toolset, self.alias)
2366
+
2367
+ return "$(builddir)/" + self.alias
2368
+
2369
+
2370
+ def WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files):
2371
+ """Write the target to regenerate the Makefile."""
2372
+ options = params["options"]
2373
+ build_files_args = [
2374
+ gyp.common.RelativePath(filename, options.toplevel_dir)
2375
+ for filename in params["build_files_arg"]
2376
+ ]
2377
+
2378
+ gyp_binary = gyp.common.FixIfRelativePath(
2379
+ params["gyp_binary"], options.toplevel_dir
2380
+ )
2381
+ if not gyp_binary.startswith(os.sep):
2382
+ gyp_binary = os.path.join(".", gyp_binary)
1712
2383
 
1713
- This makes the outputs dependent on the command line that was run,
1714
- as well as support the V= make command line flag.
1715
- """
1716
- suffix = ''
1717
- if postbuilds:
1718
- assert ',' not in command
1719
- suffix = ',,1' # Tell do_cmd to honor $POSTBUILDS
1720
- self.WriteMakeRule(outputs, inputs,
1721
- actions = ['$(call do_cmd,%s%s)' % (command, suffix)],
1722
- comment = comment,
1723
- command = command,
1724
- force = True)
1725
- # Add our outputs to the list of targets we read depfiles from.
1726
- # all_deps is only used for deps file reading, and for deps files we replace
1727
- # spaces with ? because escaping doesn't work with make's $(sort) and
1728
- # other functions.
1729
- outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
1730
- self.WriteLn('all_deps += %s' % ' '.join(outputs))
1731
-
1732
-
1733
- def WriteMakeRule(self, outputs, inputs, actions=None, comment=None,
1734
- order_only=False, force=False, phony=False, command=None):
1735
- """Write a Makefile rule, with some extra tricks.
1736
-
1737
- outputs: a list of outputs for the rule (note: this is not directly
1738
- supported by make; see comments below)
1739
- inputs: a list of inputs for the rule
1740
- actions: a list of shell commands to run for the rule
1741
- comment: a comment to put in the Makefile above the rule (also useful
1742
- for making this Python script's code self-documenting)
1743
- order_only: if true, makes the dependency order-only
1744
- force: if true, include FORCE_DO_CMD as an order-only dep
1745
- phony: if true, the rule does not actually generate the named output, the
1746
- output is just a name to run the rule
1747
- command: (optional) command name to generate unambiguous labels
1748
- """
1749
- outputs = [QuoteSpaces(o) for o in outputs]
1750
- inputs = [QuoteSpaces(i) for i in inputs]
1751
-
1752
- if comment:
1753
- self.WriteLn('# ' + comment)
1754
- if phony:
1755
- self.WriteLn('.PHONY: ' + ' '.join(outputs))
1756
- if actions:
1757
- self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0])
1758
- force_append = ' FORCE_DO_CMD' if force else ''
1759
-
1760
- if order_only:
1761
- # Order only rule: Just write a simple rule.
1762
- # TODO(evanm): just make order_only a list of deps instead of this hack.
1763
- self.WriteLn('%s: | %s%s' %
1764
- (' '.join(outputs), ' '.join(inputs), force_append))
1765
- elif len(outputs) == 1:
1766
- # Regular rule, one output: Just write a simple rule.
1767
- self.WriteLn('%s: %s%s' % (outputs[0], ' '.join(inputs), force_append))
1768
- else:
1769
- # Regular rule, more than one output: Multiple outputs are tricky in
1770
- # make. We will write three rules:
1771
- # - All outputs depend on an intermediate file.
1772
- # - Make .INTERMEDIATE depend on the intermediate.
1773
- # - The intermediate file depends on the inputs and executes the
1774
- # actual command.
1775
- # - The intermediate recipe will 'touch' the intermediate file.
1776
- # - The multi-output rule will have an do-nothing recipe.
1777
-
1778
- # Hash the target name to avoid generating overlong filenames.
1779
- cmddigest = hashlib.sha1((command or self.target).encode('utf-8')).hexdigest()
1780
- intermediate = "%s.intermediate" % cmddigest
1781
- self.WriteLn('%s: %s' % (' '.join(outputs), intermediate))
1782
- self.WriteLn('\t%s' % '@:')
1783
- self.WriteLn('%s: %s' % ('.INTERMEDIATE', intermediate))
1784
- self.WriteLn('%s: %s%s' %
1785
- (intermediate, ' '.join(inputs), force_append))
1786
- actions.insert(0, '$(call do_cmd,touch)')
1787
-
1788
- if actions:
1789
- for action in actions:
1790
- self.WriteLn('\t%s' % action)
1791
- self.WriteLn()
1792
-
1793
-
1794
- def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps):
1795
- """Write a set of LOCAL_XXX definitions for Android NDK.
1796
-
1797
- These variable definitions will be used by Android NDK but do nothing for
1798
- non-Android applications.
1799
-
1800
- Arguments:
1801
- module_name: Android NDK module name, which must be unique among all
1802
- module names.
1803
- all_sources: A list of source files (will be filtered by Compilable).
1804
- link_deps: A list of link dependencies, which must be sorted in
1805
- the order from dependencies to dependents.
1806
- """
1807
- if self.type not in ('executable', 'shared_library', 'static_library'):
1808
- return
1809
-
1810
- self.WriteLn('# Variable definitions for Android applications')
1811
- self.WriteLn('include $(CLEAR_VARS)')
1812
- self.WriteLn('LOCAL_MODULE := ' + module_name)
1813
- self.WriteLn('LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) '
1814
- '$(DEFS_$(BUILDTYPE)) '
1815
- # LOCAL_CFLAGS is applied to both of C and C++. There is
1816
- # no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C
1817
- # sources.
1818
- '$(CFLAGS_C_$(BUILDTYPE)) '
1819
- # $(INCS_$(BUILDTYPE)) includes the prefix '-I' while
1820
- # LOCAL_C_INCLUDES does not expect it. So put it in
1821
- # LOCAL_CFLAGS.
1822
- '$(INCS_$(BUILDTYPE))')
1823
- # LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred.
1824
- self.WriteLn('LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))')
1825
- self.WriteLn('LOCAL_C_INCLUDES :=')
1826
- self.WriteLn('LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)')
1827
-
1828
- # Detect the C++ extension.
1829
- cpp_ext = {'.cc': 0, '.cpp': 0, '.cxx': 0}
1830
- default_cpp_ext = '.cpp'
1831
- for filename in all_sources:
1832
- ext = os.path.splitext(filename)[1]
1833
- if ext in cpp_ext:
1834
- cpp_ext[ext] += 1
1835
- if cpp_ext[ext] > cpp_ext[default_cpp_ext]:
1836
- default_cpp_ext = ext
1837
- self.WriteLn('LOCAL_CPP_EXTENSION := ' + default_cpp_ext)
1838
-
1839
- self.WriteList(list(map(self.Absolutify, filter(Compilable, all_sources))),
1840
- 'LOCAL_SRC_FILES')
1841
-
1842
- # Filter out those which do not match prefix and suffix and produce
1843
- # the resulting list without prefix and suffix.
1844
- def DepsToModules(deps, prefix, suffix):
1845
- modules = []
1846
- for filepath in deps:
1847
- filename = os.path.basename(filepath)
1848
- if filename.startswith(prefix) and filename.endswith(suffix):
1849
- modules.append(filename[len(prefix):-len(suffix)])
1850
- return modules
1851
-
1852
- # Retrieve the default value of 'SHARED_LIB_SUFFIX'
1853
- params = {'flavor': 'linux'}
1854
- default_variables = {}
1855
- CalculateVariables(default_variables, params)
1856
-
1857
- self.WriteList(
1858
- DepsToModules(link_deps,
1859
- generator_default_variables['SHARED_LIB_PREFIX'],
1860
- default_variables['SHARED_LIB_SUFFIX']),
1861
- 'LOCAL_SHARED_LIBRARIES')
1862
- self.WriteList(
1863
- DepsToModules(link_deps,
1864
- generator_default_variables['STATIC_LIB_PREFIX'],
1865
- generator_default_variables['STATIC_LIB_SUFFIX']),
1866
- 'LOCAL_STATIC_LIBRARIES')
1867
-
1868
- if self.type == 'executable':
1869
- self.WriteLn('include $(BUILD_EXECUTABLE)')
1870
- elif self.type == 'shared_library':
1871
- self.WriteLn('include $(BUILD_SHARED_LIBRARY)')
1872
- elif self.type == 'static_library':
1873
- self.WriteLn('include $(BUILD_STATIC_LIBRARY)')
1874
- self.WriteLn()
1875
-
1876
-
1877
- def WriteLn(self, text=''):
1878
- self.fp.write(text + '\n')
1879
-
1880
-
1881
- def GetSortedXcodeEnv(self, additional_settings=None):
1882
- return gyp.xcode_emulation.GetSortedXcodeEnv(
1883
- self.xcode_settings, "$(abs_builddir)",
1884
- os.path.join("$(abs_srcdir)", self.path), "$(BUILDTYPE)",
1885
- additional_settings)
1886
-
1887
-
1888
- def GetSortedXcodePostbuildEnv(self):
1889
- # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
1890
- # TODO(thakis): It would be nice to have some general mechanism instead.
1891
- strip_save_file = self.xcode_settings.GetPerTargetSetting(
1892
- 'CHROMIUM_STRIP_SAVE_FILE', '')
1893
- # Even if strip_save_file is empty, explicitly write it. Else a postbuild
1894
- # might pick up an export from an earlier target.
1895
- return self.GetSortedXcodeEnv(
1896
- additional_settings={'CHROMIUM_STRIP_SAVE_FILE': strip_save_file})
1897
-
1898
-
1899
- def WriteSortedXcodeEnv(self, target, env):
1900
- for k, v in env:
1901
- # For
1902
- # foo := a\ b
1903
- # the escaped space does the right thing. For
1904
- # export foo := a\ b
1905
- # it does not -- the backslash is written to the env as literal character.
1906
- # So don't escape spaces in |env[k]|.
1907
- self.WriteLn('%s: export %s := %s' % (QuoteSpaces(target), k, v))
1908
-
1909
-
1910
- def Objectify(self, path):
1911
- """Convert a path to its output directory form."""
1912
- if '$(' in path:
1913
- path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/' % self.toolset)
1914
- if not '$(obj)' in path:
1915
- path = '$(obj).%s/$(TARGET)/%s' % (self.toolset, path)
1916
- return path
1917
-
1918
-
1919
- def Pchify(self, path, lang):
1920
- """Convert a prefix header path to its output directory form."""
1921
- path = self.Absolutify(path)
1922
- if '$(' in path:
1923
- path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/pch-%s' %
1924
- (self.toolset, lang))
1925
- return path
1926
- return '$(obj).%s/$(TARGET)/pch-%s/%s' % (self.toolset, lang, path)
1927
-
1928
-
1929
- def Absolutify(self, path):
1930
- """Convert a subdirectory-relative path into a base-relative path.
1931
- Skips over paths that contain variables."""
1932
- if '$(' in path:
1933
- # Don't call normpath in this case, as it might collapse the
1934
- # path too aggressively if it features '..'. However it's still
1935
- # important to strip trailing slashes.
1936
- return path.rstrip('/')
1937
- return os.path.normpath(os.path.join(self.path, path))
1938
-
1939
-
1940
- def ExpandInputRoot(self, template, expansion, dirname):
1941
- if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template:
1942
- return template
1943
- path = template % {
1944
- 'INPUT_ROOT': expansion,
1945
- 'INPUT_DIRNAME': dirname,
2384
+ root_makefile.write(
2385
+ "quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
2386
+ "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
2387
+ "%(makefile_name)s: %(deps)s\n"
2388
+ "\t$(call do_cmd,regen_makefile)\n\n"
2389
+ % {
2390
+ "makefile_name": makefile_name,
2391
+ "deps": replace_sep(
2392
+ " ".join(sorted(SourceifyAndQuoteSpaces(bf) for bf in build_files))
2393
+ ),
2394
+ "cmd": replace_sep(
2395
+ gyp.common.EncodePOSIXShellList(
2396
+ [gyp_binary, "-fmake"]
2397
+ + gyp.RegenerateFlags(options)
2398
+ + build_files_args
2399
+ )
2400
+ ),
1946
2401
  }
1947
- return path
1948
-
1949
-
1950
- def _InstallableTargetInstallPath(self):
1951
- """Returns the location of the final output for an installable target."""
1952
- # Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
1953
- # rely on this. Emulate this behavior for mac.
1954
-
1955
- # XXX(TooTallNate): disabling this code since we don't want this behavior...
1956
- #if (self.type == 'shared_library' and
1957
- # (self.flavor != 'mac' or self.toolset != 'target')):
1958
- # # Install all shared libs into a common directory (per toolset) for
1959
- # # convenient access with LD_LIBRARY_PATH.
1960
- # return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias)
1961
- return '$(builddir)/' + self.alias
1962
-
1963
-
1964
- def WriteAutoRegenerationRule(params, root_makefile, makefile_name,
1965
- build_files):
1966
- """Write the target to regenerate the Makefile."""
1967
- options = params['options']
1968
- build_files_args = [gyp.common.RelativePath(filename, options.toplevel_dir)
1969
- for filename in params['build_files_arg']]
1970
-
1971
- gyp_binary = gyp.common.FixIfRelativePath(params['gyp_binary'],
1972
- options.toplevel_dir)
1973
- if not gyp_binary.startswith(os.sep):
1974
- gyp_binary = os.path.join('.', gyp_binary)
1975
-
1976
- root_makefile.write(
1977
- "quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
1978
- "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
1979
- "%(makefile_name)s: %(deps)s\n"
1980
- "\t$(call do_cmd,regen_makefile)\n\n" % {
1981
- 'makefile_name': makefile_name,
1982
- 'deps': ' '.join(SourceifyAndQuoteSpaces(bf) for bf in build_files),
1983
- 'cmd': gyp.common.EncodePOSIXShellList(
1984
- [gyp_binary, '-fmake'] +
1985
- gyp.RegenerateFlags(options) +
1986
- build_files_args)})
2402
+ )
1987
2403
 
1988
2404
 
1989
2405
  def PerformBuild(data, configurations, params):
1990
- options = params['options']
1991
- for config in configurations:
1992
- arguments = ['make']
1993
- if options.toplevel_dir and options.toplevel_dir != '.':
1994
- arguments += '-C', options.toplevel_dir
1995
- arguments.append('BUILDTYPE=' + config)
1996
- print('Building [%s]: %s' % (config, arguments))
1997
- subprocess.check_call(arguments)
2406
+ options = params["options"]
2407
+ for config in configurations:
2408
+ arguments = ["make"]
2409
+ if options.toplevel_dir and options.toplevel_dir != ".":
2410
+ arguments += "-C", options.toplevel_dir
2411
+ arguments.append("BUILDTYPE=" + config)
2412
+ print(f"Building [{config}]: {arguments}")
2413
+ subprocess.check_call(arguments)
1998
2414
 
1999
2415
 
2000
2416
  def GenerateOutput(target_list, target_dicts, data, params):
2001
- options = params['options']
2002
- flavor = gyp.common.GetFlavor(params)
2003
- generator_flags = params.get('generator_flags', {})
2004
- builddir_name = generator_flags.get('output_dir', 'out')
2005
- android_ndk_version = generator_flags.get('android_ndk_version', None)
2006
- default_target = generator_flags.get('default_target', 'all')
2007
-
2008
- def CalculateMakefilePath(build_file, base_name):
2009
- """Determine where to write a Makefile for a given gyp file."""
2010
- # Paths in gyp files are relative to the .gyp file, but we want
2011
- # paths relative to the source root for the master makefile. Grab
2012
- # the path of the .gyp file as the base to relativize against.
2013
- # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
2014
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
2015
- options.depth)
2016
- # We write the file in the base_path directory.
2017
- output_file = os.path.join(options.depth, base_path, base_name)
2417
+ options = params["options"]
2418
+ flavor = gyp.common.GetFlavor(params)
2419
+ generator_flags = params.get("generator_flags", {})
2420
+ builddir_name = generator_flags.get("output_dir", "out")
2421
+ android_ndk_version = generator_flags.get("android_ndk_version", None)
2422
+ default_target = generator_flags.get("default_target", "all")
2423
+
2424
+ def CalculateMakefilePath(build_file, base_name):
2425
+ """Determine where to write a Makefile for a given gyp file."""
2426
+ # Paths in gyp files are relative to the .gyp file, but we want
2427
+ # paths relative to the source root for the master makefile. Grab
2428
+ # the path of the .gyp file as the base to relativize against.
2429
+ # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
2430
+ base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.depth)
2431
+ # We write the file in the base_path directory.
2432
+ output_file = os.path.join(options.depth, base_path, base_name)
2433
+ if options.generator_output:
2434
+ output_file = os.path.join(
2435
+ options.depth, options.generator_output, base_path, base_name
2436
+ )
2437
+ base_path = gyp.common.RelativePath(
2438
+ os.path.dirname(build_file), options.toplevel_dir
2439
+ )
2440
+ return base_path, output_file
2441
+
2442
+ # TODO: search for the first non-'Default' target. This can go
2443
+ # away when we add verification that all targets have the
2444
+ # necessary configurations.
2445
+ default_configuration = None
2446
+ toolsets = {target_dicts[target]["toolset"] for target in target_list}
2447
+ for target in target_list:
2448
+ spec = target_dicts[target]
2449
+ if spec["default_configuration"] != "Default":
2450
+ default_configuration = spec["default_configuration"]
2451
+ break
2452
+ if not default_configuration:
2453
+ default_configuration = "Default"
2454
+
2455
+ srcdir = "."
2456
+ makefile_name = "Makefile" + options.suffix
2457
+ makefile_path = os.path.join(options.toplevel_dir, makefile_name)
2018
2458
  if options.generator_output:
2019
- output_file = os.path.join(
2020
- options.depth, options.generator_output, base_path, base_name)
2021
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
2022
- options.toplevel_dir)
2023
- return base_path, output_file
2024
-
2025
- # TODO: search for the first non-'Default' target. This can go
2026
- # away when we add verification that all targets have the
2027
- # necessary configurations.
2028
- default_configuration = None
2029
- toolsets = set([target_dicts[target]['toolset'] for target in target_list])
2030
- for target in target_list:
2031
- spec = target_dicts[target]
2032
- if spec['default_configuration'] != 'Default':
2033
- default_configuration = spec['default_configuration']
2034
- break
2035
- if not default_configuration:
2036
- default_configuration = 'Default'
2037
-
2038
- srcdir = '.'
2039
- makefile_name = 'Makefile' + options.suffix
2040
- makefile_path = os.path.join(options.toplevel_dir, makefile_name)
2041
- if options.generator_output:
2042
- global srcdir_prefix
2043
- makefile_path = os.path.join(
2044
- options.toplevel_dir, options.generator_output, makefile_name)
2045
- srcdir = gyp.common.RelativePath(srcdir, options.generator_output)
2046
- srcdir_prefix = '$(srcdir)/'
2047
-
2048
- flock_command= 'flock'
2049
- copy_archive_arguments = '-af'
2050
- makedep_arguments = '-MMD'
2051
- header_params = {
2052
- 'default_target': default_target,
2053
- 'builddir': builddir_name,
2054
- 'default_configuration': default_configuration,
2055
- 'flock': flock_command,
2056
- 'flock_index': 1,
2057
- 'link_commands': LINK_COMMANDS_LINUX,
2058
- 'extra_commands': '',
2059
- 'srcdir': srcdir,
2060
- 'copy_archive_args': copy_archive_arguments,
2061
- 'makedep_args': makedep_arguments,
2062
- 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'),
2063
- 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'),
2064
- 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'),
2065
- 'LINK.target': GetEnvironFallback(('LINK_target', 'LINK'), '$(LINK)'),
2066
- 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'gcc'),
2067
- 'AR.host': GetEnvironFallback(('AR_host', 'AR'), 'ar'),
2068
- 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'g++'),
2069
- 'LINK.host': GetEnvironFallback(('LINK_host', 'LINK'), '$(CXX.host)'),
2459
+ global srcdir_prefix
2460
+ makefile_path = os.path.join(
2461
+ options.toplevel_dir, options.generator_output, makefile_name
2462
+ )
2463
+ srcdir = replace_sep(gyp.common.RelativePath(srcdir, options.generator_output))
2464
+ srcdir_prefix = "$(srcdir)/"
2465
+
2466
+ flock_command = "flock"
2467
+ copy_archive_arguments = "-af"
2468
+ makedep_arguments = "-MMD"
2469
+
2470
+ # wasm-ld doesn't support --start-group/--end-group
2471
+ link_commands = LINK_COMMANDS_LINUX
2472
+ if flavor in ["wasi", "wasm"]:
2473
+ link_commands = link_commands.replace(" -Wl,--start-group", "").replace(
2474
+ " -Wl,--end-group", ""
2475
+ )
2476
+
2477
+ CC_target = replace_sep(GetEnvironFallback(("CC_target", "CC"), "$(CC)"))
2478
+ AR_target = replace_sep(GetEnvironFallback(("AR_target", "AR"), "$(AR)"))
2479
+ CXX_target = replace_sep(GetEnvironFallback(("CXX_target", "CXX"), "$(CXX)"))
2480
+ LINK_target = replace_sep(GetEnvironFallback(("LINK_target", "LINK"), "$(LINK)"))
2481
+ PLI_target = replace_sep(GetEnvironFallback(("PLI_target", "PLI"), "pli"))
2482
+ CC_host = replace_sep(GetEnvironFallback(("CC_host", "CC"), "gcc"))
2483
+ AR_host = replace_sep(GetEnvironFallback(("AR_host", "AR"), "ar"))
2484
+ CXX_host = replace_sep(GetEnvironFallback(("CXX_host", "CXX"), "g++"))
2485
+ LINK_host = replace_sep(GetEnvironFallback(("LINK_host", "LINK"), "$(CXX.host)"))
2486
+ PLI_host = replace_sep(GetEnvironFallback(("PLI_host", "PLI"), "pli"))
2487
+
2488
+ header_params = {
2489
+ "default_target": default_target,
2490
+ "builddir": builddir_name,
2491
+ "default_configuration": default_configuration,
2492
+ "flock": flock_command,
2493
+ "flock_index": 1,
2494
+ "link_commands": link_commands,
2495
+ "extra_commands": "",
2496
+ "srcdir": srcdir,
2497
+ "copy_archive_args": copy_archive_arguments,
2498
+ "makedep_args": makedep_arguments,
2499
+ "CC.target": CC_target,
2500
+ "AR.target": AR_target,
2501
+ "CXX.target": CXX_target,
2502
+ "LINK.target": LINK_target,
2503
+ "PLI.target": PLI_target,
2504
+ "CC.host": CC_host,
2505
+ "AR.host": AR_host,
2506
+ "CXX.host": CXX_host,
2507
+ "LINK.host": LINK_host,
2508
+ "PLI.host": PLI_host,
2070
2509
  }
2071
- if flavor == 'mac':
2072
- flock_command = './gyp-mac-tool flock'
2073
- header_params.update({
2074
- 'flock': flock_command,
2075
- 'flock_index': 2,
2076
- 'link_commands': LINK_COMMANDS_MAC,
2077
- 'extra_commands': SHARED_HEADER_MAC_COMMANDS,
2078
- })
2079
- elif flavor == 'android':
2080
- header_params.update({
2081
- 'link_commands': LINK_COMMANDS_ANDROID,
2082
- })
2083
- elif flavor == 'zos':
2084
- copy_archive_arguments = '-fPR'
2085
- makedep_arguments = '-qmakedep=gcc'
2086
- header_params.update({
2087
- 'copy_archive_args': copy_archive_arguments,
2088
- 'makedep_args': makedep_arguments,
2089
- 'link_commands': LINK_COMMANDS_OS390,
2090
- 'CC.target': GetEnvironFallback(('CC_target', 'CC'), 'njsc'),
2091
- 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), 'njsc++'),
2092
- 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'njsc'),
2093
- 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'njsc++'),
2094
- })
2095
- elif flavor == 'solaris':
2096
- header_params.update({
2097
- 'flock': './gyp-flock-tool flock',
2098
- 'flock_index': 2,
2099
- })
2100
- elif flavor == 'freebsd':
2101
- # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
2102
- header_params.update({
2103
- 'flock': 'lockf',
2104
- })
2105
- elif flavor == 'openbsd':
2106
- copy_archive_arguments = '-pPRf'
2107
- header_params.update({
2108
- 'copy_archive_args': copy_archive_arguments,
2109
- })
2110
- elif flavor == 'aix':
2111
- copy_archive_arguments = '-pPRf'
2112
- header_params.update({
2113
- 'copy_archive_args': copy_archive_arguments,
2114
- 'link_commands': LINK_COMMANDS_AIX,
2115
- 'flock': './gyp-flock-tool flock',
2116
- 'flock_index': 2,
2117
- })
2118
-
2119
- build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
2120
- make_global_settings_array = data[build_file].get('make_global_settings', [])
2121
- wrappers = {}
2122
- for key, value in make_global_settings_array:
2123
- if key.endswith('_wrapper'):
2124
- wrappers[key[:-len('_wrapper')]] = '$(abspath %s)' % value
2125
- make_global_settings = ''
2126
- for key, value in make_global_settings_array:
2127
- if re.match('.*_wrapper', key):
2128
- continue
2129
- if value[0] != '$':
2130
- value = '$(abspath %s)' % value
2131
- wrapper = wrappers.get(key)
2132
- if wrapper:
2133
- value = '%s %s' % (wrapper, value)
2134
- del wrappers[key]
2135
- if key in ('CC', 'CC.host', 'CXX', 'CXX.host'):
2136
- make_global_settings += (
2137
- 'ifneq (,$(filter $(origin %s), undefined default))\n' % key)
2138
- # Let gyp-time envvars win over global settings.
2139
- env_key = key.replace('.', '_') # CC.host -> CC_host
2140
- if env_key in os.environ:
2141
- value = os.environ[env_key]
2142
- make_global_settings += ' %s = %s\n' % (key, value)
2143
- make_global_settings += 'endif\n'
2144
- else:
2145
- make_global_settings += '%s ?= %s\n' % (key, value)
2146
- # TODO(ukai): define cmd when only wrapper is specified in
2147
- # make_global_settings.
2148
-
2149
- header_params['make_global_settings'] = make_global_settings
2150
-
2151
- gyp.common.EnsureDirExists(makefile_path)
2152
- root_makefile = open(makefile_path, 'w')
2153
- root_makefile.write(SHARED_HEADER % header_params)
2154
- # Currently any versions have the same effect, but in future the behavior
2155
- # could be different.
2156
- if android_ndk_version:
2157
- root_makefile.write(
2158
- '# Define LOCAL_PATH for build of Android applications.\n'
2159
- 'LOCAL_PATH := $(call my-dir)\n'
2160
- '\n')
2161
- for toolset in toolsets:
2162
- root_makefile.write('TOOLSET := %s\n' % toolset)
2163
- WriteRootHeaderSuffixRules(root_makefile)
2164
-
2165
- # Put build-time support tools next to the root Makefile.
2166
- dest_path = os.path.dirname(makefile_path)
2167
- gyp.common.CopyTool(flavor, dest_path)
2168
-
2169
- # Find the list of targets that derive from the gyp file(s) being built.
2170
- needed_targets = set()
2171
- for build_file in params['build_files']:
2172
- for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
2173
- needed_targets.add(target)
2174
-
2175
- build_files = set()
2176
- include_list = set()
2177
- for qualified_target in target_list:
2178
- build_file, target, toolset = gyp.common.ParseQualifiedTarget(
2179
- qualified_target)
2180
-
2181
- this_make_global_settings = data[build_file].get('make_global_settings', [])
2182
- assert make_global_settings_array == this_make_global_settings, (
2183
- "make_global_settings needs to be the same for all targets. %s vs. %s" %
2184
- (this_make_global_settings, make_global_settings))
2185
-
2186
- build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir))
2187
- included_files = data[build_file]['included_files']
2188
- for included_file in included_files:
2189
- # The included_files entries are relative to the dir of the build file
2190
- # that included them, so we have to undo that and then make them relative
2191
- # to the root dir.
2192
- relative_include_file = gyp.common.RelativePath(
2193
- gyp.common.UnrelativePath(included_file, build_file),
2194
- options.toplevel_dir)
2195
- abs_include_file = os.path.abspath(relative_include_file)
2196
- # If the include file is from the ~/.gyp dir, we should use absolute path
2197
- # so that relocating the src dir doesn't break the path.
2198
- if (params['home_dot_gyp'] and
2199
- abs_include_file.startswith(params['home_dot_gyp'])):
2200
- build_files.add(abs_include_file)
2201
- else:
2202
- build_files.add(relative_include_file)
2203
-
2204
- base_path, output_file = CalculateMakefilePath(build_file,
2205
- target + '.' + toolset + options.suffix + '.mk')
2206
-
2207
- spec = target_dicts[qualified_target]
2208
- configs = spec['configurations']
2209
-
2210
- if flavor == 'mac':
2211
- gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
2212
-
2213
- writer = MakefileWriter(generator_flags, flavor)
2214
- writer.Write(qualified_target, base_path, output_file, spec, configs,
2215
- part_of_all=qualified_target in needed_targets)
2216
-
2217
- # Our root_makefile lives at the source root. Compute the relative path
2218
- # from there to the output_file for including.
2219
- mkfile_rel_path = gyp.common.RelativePath(output_file,
2220
- os.path.dirname(makefile_path))
2221
- include_list.add(mkfile_rel_path)
2222
-
2223
- # Write out per-gyp (sub-project) Makefiles.
2224
- depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd())
2225
- for build_file in build_files:
2226
- # The paths in build_files were relativized above, so undo that before
2227
- # testing against the non-relativized items in target_list and before
2228
- # calculating the Makefile path.
2229
- build_file = os.path.join(depth_rel_path, build_file)
2230
- gyp_targets = [target_dicts[target]['target_name'] for target in target_list
2231
- if target.startswith(build_file) and
2232
- target in needed_targets]
2233
- # Only generate Makefiles for gyp files with targets.
2234
- if not gyp_targets:
2235
- continue
2236
- base_path, output_file = CalculateMakefilePath(build_file,
2237
- os.path.splitext(os.path.basename(build_file))[0] + '.Makefile')
2238
- makefile_rel_path = gyp.common.RelativePath(os.path.dirname(makefile_path),
2239
- os.path.dirname(output_file))
2240
- writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets,
2241
- builddir_name)
2242
-
2243
-
2244
- # Write out the sorted list of includes.
2245
- root_makefile.write('\n')
2246
- for include_file in sorted(include_list):
2247
- # We wrap each .mk include in an if statement so users can tell make to
2248
- # not load a file by setting NO_LOAD. The below make code says, only
2249
- # load the .mk file if the .mk filename doesn't start with a token in
2250
- # NO_LOAD.
2251
- root_makefile.write(
2252
- "ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n"
2253
- " $(findstring $(join ^,$(prefix)),\\\n"
2254
- " $(join ^," + include_file + ")))),)\n")
2255
- root_makefile.write(" include " + include_file + "\n")
2256
- root_makefile.write("endif\n")
2257
- root_makefile.write('\n')
2258
-
2259
- if (not generator_flags.get('standalone')
2260
- and generator_flags.get('auto_regeneration', True)):
2261
- WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
2510
+ if flavor == "mac":
2511
+ flock_command = "%s gyp-mac-tool flock" % sys.executable
2512
+ header_params.update(
2513
+ {
2514
+ "flock": flock_command,
2515
+ "flock_index": 2,
2516
+ "link_commands": LINK_COMMANDS_MAC,
2517
+ "extra_commands": SHARED_HEADER_MAC_COMMANDS,
2518
+ }
2519
+ )
2520
+ elif flavor == "android":
2521
+ header_params.update({"link_commands": LINK_COMMANDS_ANDROID})
2522
+ elif flavor == "zos":
2523
+ copy_archive_arguments = "-fPR"
2524
+ CC_target = GetEnvironFallback(("CC_target", "CC"), "njsc")
2525
+ makedep_arguments = "-MMD"
2526
+ if CC_target == "clang":
2527
+ CC_host = GetEnvironFallback(("CC_host", "CC"), "clang")
2528
+ CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "clang++")
2529
+ CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "clang++")
2530
+ elif CC_target == "ibm-clang64":
2531
+ CC_host = GetEnvironFallback(("CC_host", "CC"), "ibm-clang64")
2532
+ CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "ibm-clang++64")
2533
+ CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "ibm-clang++64")
2534
+ elif CC_target == "ibm-clang":
2535
+ CC_host = GetEnvironFallback(("CC_host", "CC"), "ibm-clang")
2536
+ CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "ibm-clang++")
2537
+ CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "ibm-clang++")
2538
+ else:
2539
+ # Node.js versions prior to v18:
2540
+ makedep_arguments = "-qmakedep=gcc"
2541
+ CC_host = GetEnvironFallback(("CC_host", "CC"), "njsc")
2542
+ CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "njsc++")
2543
+ CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "njsc++")
2544
+ header_params.update(
2545
+ {
2546
+ "copy_archive_args": copy_archive_arguments,
2547
+ "makedep_args": makedep_arguments,
2548
+ "link_commands": LINK_COMMANDS_OS390,
2549
+ "extra_commands": SHARED_HEADER_OS390_COMMANDS,
2550
+ "CC.target": CC_target,
2551
+ "CXX.target": CXX_target,
2552
+ "CC.host": CC_host,
2553
+ "CXX.host": CXX_host,
2554
+ }
2555
+ )
2556
+ elif flavor == "solaris":
2557
+ copy_archive_arguments = "-pPRf@"
2558
+ header_params.update(
2559
+ {
2560
+ "copy_archive_args": copy_archive_arguments,
2561
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2562
+ "flock_index": 2,
2563
+ }
2564
+ )
2565
+ elif flavor == "freebsd":
2566
+ # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
2567
+ header_params.update({"flock": "lockf"})
2568
+ elif flavor == "openbsd":
2569
+ copy_archive_arguments = "-pPRf"
2570
+ header_params.update({"copy_archive_args": copy_archive_arguments})
2571
+ elif flavor == "aix":
2572
+ copy_archive_arguments = "-pPRf"
2573
+ header_params.update(
2574
+ {
2575
+ "copy_archive_args": copy_archive_arguments,
2576
+ "link_commands": LINK_COMMANDS_AIX,
2577
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2578
+ "flock_index": 2,
2579
+ }
2580
+ )
2581
+ elif flavor == "os400":
2582
+ copy_archive_arguments = "-pPRf"
2583
+ header_params.update(
2584
+ {
2585
+ "copy_archive_args": copy_archive_arguments,
2586
+ "link_commands": LINK_COMMANDS_OS400,
2587
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2588
+ "flock_index": 2,
2589
+ }
2590
+ )
2591
+
2592
+ build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
2593
+ make_global_settings_array = data[build_file].get("make_global_settings", [])
2594
+ wrappers = {}
2595
+ for key, value in make_global_settings_array:
2596
+ if key.endswith("_wrapper"):
2597
+ wrappers[key[: -len("_wrapper")]] = "$(abspath %s)" % value
2598
+ make_global_settings = ""
2599
+ for key, value in make_global_settings_array:
2600
+ if re.match(".*_wrapper", key):
2601
+ continue
2602
+ if value[0] != "$":
2603
+ value = "$(abspath %s)" % value
2604
+ wrapper = wrappers.get(key)
2605
+ if wrapper:
2606
+ value = f"{wrapper} {value}"
2607
+ del wrappers[key]
2608
+ if key in ("CC", "CC.host", "CXX", "CXX.host"):
2609
+ make_global_settings += (
2610
+ "ifneq (,$(filter $(origin %s), undefined default))\n" % key
2611
+ )
2612
+ # Let gyp-time envvars win over global settings.
2613
+ env_key = key.replace(".", "_") # CC.host -> CC_host
2614
+ if env_key in os.environ:
2615
+ value = os.environ[env_key]
2616
+ make_global_settings += f" {key} = {value}\n"
2617
+ make_global_settings += "endif\n"
2618
+ else:
2619
+ make_global_settings += f"{key} ?= {value}\n"
2620
+ # TODO(ukai): define cmd when only wrapper is specified in
2621
+ # make_global_settings.
2262
2622
 
2263
- root_makefile.write(SHARED_FOOTER)
2623
+ header_params["make_global_settings"] = make_global_settings
2264
2624
 
2265
- root_makefile.close()
2625
+ gyp.common.EnsureDirExists(makefile_path)
2626
+ root_makefile = open(makefile_path, "w")
2627
+ root_makefile.write(SHARED_HEADER % header_params)
2628
+ # Currently any versions have the same effect, but in future the behavior
2629
+ # could be different.
2630
+ if android_ndk_version:
2631
+ root_makefile.write(
2632
+ "# Define LOCAL_PATH for build of Android applications.\n"
2633
+ "LOCAL_PATH := $(call my-dir)\n"
2634
+ "\n"
2635
+ )
2636
+ for toolset in toolsets:
2637
+ root_makefile.write("TOOLSET := %s\n" % toolset)
2638
+ WriteRootHeaderSuffixRules(root_makefile)
2639
+
2640
+ # Put build-time support tools next to the root Makefile.
2641
+ dest_path = os.path.dirname(makefile_path)
2642
+ gyp.common.CopyTool(flavor, dest_path)
2643
+
2644
+ # Find the list of targets that derive from the gyp file(s) being built.
2645
+ needed_targets = set()
2646
+ for build_file in params["build_files"]:
2647
+ for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
2648
+ needed_targets.add(target)
2649
+
2650
+ build_files = set()
2651
+ include_list = set()
2652
+ for qualified_target in target_list:
2653
+ build_file, target, toolset = gyp.common.ParseQualifiedTarget(qualified_target)
2654
+
2655
+ this_make_global_settings = data[build_file].get("make_global_settings", [])
2656
+ assert make_global_settings_array == this_make_global_settings, (
2657
+ "make_global_settings needs to be the same for all targets "
2658
+ f"{this_make_global_settings} vs. {make_global_settings}"
2659
+ )
2660
+
2661
+ build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir))
2662
+ included_files = data[build_file]["included_files"]
2663
+ for included_file in included_files:
2664
+ # The included_files entries are relative to the dir of the build file
2665
+ # that included them, so we have to undo that and then make them relative
2666
+ # to the root dir.
2667
+ relative_include_file = gyp.common.RelativePath(
2668
+ gyp.common.UnrelativePath(included_file, build_file),
2669
+ options.toplevel_dir,
2670
+ )
2671
+ abs_include_file = os.path.abspath(relative_include_file)
2672
+ # If the include file is from the ~/.gyp dir, we should use absolute path
2673
+ # so that relocating the src dir doesn't break the path.
2674
+ if params["home_dot_gyp"] and abs_include_file.startswith(
2675
+ params["home_dot_gyp"]
2676
+ ):
2677
+ build_files.add(abs_include_file)
2678
+ else:
2679
+ build_files.add(relative_include_file)
2680
+
2681
+ base_path, output_file = CalculateMakefilePath(
2682
+ build_file, target + "." + toolset + options.suffix + ".mk"
2683
+ )
2684
+
2685
+ spec = target_dicts[qualified_target]
2686
+ configs = spec["configurations"]
2687
+
2688
+ if flavor == "mac":
2689
+ gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
2690
+
2691
+ writer = MakefileWriter(generator_flags, flavor)
2692
+ writer.Write(
2693
+ qualified_target,
2694
+ base_path,
2695
+ output_file,
2696
+ spec,
2697
+ configs,
2698
+ part_of_all=qualified_target in needed_targets,
2699
+ )
2700
+
2701
+ # Our root_makefile lives at the source root. Compute the relative path
2702
+ # from there to the output_file for including.
2703
+ mkfile_rel_path = gyp.common.RelativePath(
2704
+ output_file, os.path.dirname(makefile_path)
2705
+ )
2706
+ include_list.add(mkfile_rel_path)
2707
+
2708
+ # Write out per-gyp (sub-project) Makefiles.
2709
+ depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd())
2710
+ for build_file in build_files:
2711
+ # The paths in build_files were relativized above, so undo that before
2712
+ # testing against the non-relativized items in target_list and before
2713
+ # calculating the Makefile path.
2714
+ build_file = os.path.join(depth_rel_path, build_file)
2715
+ gyp_targets = [
2716
+ target_dicts[qualified_target]["target_name"]
2717
+ for qualified_target in target_list
2718
+ if qualified_target.startswith(build_file)
2719
+ and qualified_target in needed_targets
2720
+ ]
2721
+ # Only generate Makefiles for gyp files with targets.
2722
+ if not gyp_targets:
2723
+ continue
2724
+ base_path, output_file = CalculateMakefilePath(
2725
+ build_file, os.path.splitext(os.path.basename(build_file))[0] + ".Makefile"
2726
+ )
2727
+ makefile_rel_path = gyp.common.RelativePath(
2728
+ os.path.dirname(makefile_path), os.path.dirname(output_file)
2729
+ )
2730
+ writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets, builddir_name)
2731
+
2732
+ # Write out the sorted list of includes.
2733
+ root_makefile.write("\n")
2734
+ for include_file in sorted(include_list):
2735
+ # We wrap each .mk include in an if statement so users can tell make to
2736
+ # not load a file by setting NO_LOAD. The below make code says, only
2737
+ # load the .mk file if the .mk filename doesn't start with a token in
2738
+ # NO_LOAD.
2739
+ root_makefile.write(
2740
+ "ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n"
2741
+ " $(findstring $(join ^,$(prefix)),\\\n"
2742
+ " $(join ^," + include_file + ")))),)\n"
2743
+ )
2744
+ root_makefile.write(" include " + include_file + "\n")
2745
+ root_makefile.write("endif\n")
2746
+ root_makefile.write("\n")
2747
+
2748
+ if not generator_flags.get("standalone") and generator_flags.get(
2749
+ "auto_regeneration", True
2750
+ ):
2751
+ WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
2752
+
2753
+ root_makefile.write(SHARED_FOOTER)
2754
+
2755
+ root_makefile.close()