@proteinjs/reflection-build 1.3.0 → 1.4.1

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 (297) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/src/build.js +6 -5
  3. package/dist/src/build.js.map +1 -1
  4. package/dist/src/codegen/writeGeneratedIndex.d.ts +8 -5
  5. package/dist/src/codegen/writeGeneratedIndex.js +35 -12
  6. package/dist/src/codegen/writeGeneratedIndex.js.map +1 -1
  7. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  8. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  9. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  10. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  11. package/package.json +4 -5
  12. package/src/build.ts +13 -6
  13. package/src/codegen/writeGeneratedIndex.ts +42 -8
  14. package/test/examples/source-repository/a/dist/build.js +6 -5
  15. package/test/examples/source-repository/a/dist/build.js.map +1 -1
  16. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.d.ts +8 -5
  17. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js +35 -12
  18. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js.map +1 -1
  19. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  20. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  21. package/test/examples/source-repository/a/generated/index.ts +33 -38
  22. package/test/examples/source-repository/a/node_modules/.package-lock.json +59 -6
  23. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
  24. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +4 -0
  25. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +8 -0
  26. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
  27. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
  28. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +18 -0
  29. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
  30. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
  31. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
  32. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
  33. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
  34. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
  35. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
  36. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
  37. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
  38. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
  39. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
  40. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
  41. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
  42. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
  43. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
  44. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
  45. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
  46. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
  47. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
  48. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +5 -0
  49. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +9 -0
  50. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +42 -0
  51. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
  52. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
  53. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
  54. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
  55. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
  56. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +236 -0
  57. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
  58. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
  59. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/CHANGELOG.md +11 -0
  60. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.d.ts +4 -4
  61. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +8 -20
  62. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
  63. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/package.json +2 -2
  64. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/src/PackageUtil.ts +4 -8
  65. package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +22 -0
  66. package/test/examples/source-repository/a/node_modules/bindings/README.md +98 -0
  67. package/test/examples/source-repository/a/node_modules/bindings/bindings.js +221 -0
  68. package/test/examples/source-repository/a/node_modules/bindings/package.json +28 -0
  69. package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +30 -0
  70. package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +21 -0
  71. package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +20 -0
  72. package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +74 -0
  73. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +2 -0
  74. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +66 -0
  75. package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +32 -0
  76. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +24 -0
  77. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +13 -0
  78. package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +22 -0
  79. package/test/examples/source-repository/a/node_modules/fsevents/README.md +89 -0
  80. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +46 -0
  81. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +83 -0
  82. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
  83. package/test/examples/source-repository/a/node_modules/fsevents/package.json +62 -0
  84. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
  85. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
  86. package/{LICENSE → test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/LICENSE} +6 -5
  87. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
  88. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
  89. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
  90. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
  91. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
  92. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +75 -0
  93. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  94. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
  95. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +188 -0
  96. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +772 -0
  97. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
  98. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
  99. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
  100. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
  101. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
  102. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
  103. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
  104. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
  105. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
  106. package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +557 -0
  107. package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +138 -0
  108. package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +9 -0
  109. package/test/examples/source-repository/a/node_modules/nan/README.md +456 -0
  110. package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +146 -0
  111. package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +54 -0
  112. package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +76 -0
  113. package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +41 -0
  114. package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +226 -0
  115. package/test/examples/source-repository/a/node_modules/nan/doc/json.md +62 -0
  116. package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +583 -0
  117. package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +672 -0
  118. package/test/examples/source-repository/a/node_modules/nan/doc/new.md +147 -0
  119. package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +123 -0
  120. package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +263 -0
  121. package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +296 -0
  122. package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +73 -0
  123. package/test/examples/source-repository/a/node_modules/nan/doc/script.md +58 -0
  124. package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +62 -0
  125. package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +199 -0
  126. package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +85 -0
  127. package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +1 -0
  128. package/test/examples/source-repository/a/node_modules/nan/nan.h +2958 -0
  129. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +92 -0
  130. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +520 -0
  131. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  132. package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +72 -0
  133. package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +68 -0
  134. package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  135. package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +29 -0
  136. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +430 -0
  137. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  138. package/test/examples/source-repository/a/node_modules/nan/nan_json.h +166 -0
  139. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +356 -0
  140. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  141. package/test/examples/source-repository/a/node_modules/nan/nan_new.h +340 -0
  142. package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +156 -0
  143. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +132 -0
  144. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  145. package/test/examples/source-repository/a/node_modules/nan/nan_private.h +73 -0
  146. package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +76 -0
  147. package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +305 -0
  148. package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +96 -0
  149. package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +437 -0
  150. package/test/examples/source-repository/a/node_modules/nan/package.json +38 -0
  151. package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +412 -0
  152. package/test/examples/source-repository/a/node_modules/nan/tools/README.md +14 -0
  153. package/test/examples/source-repository/a/node_modules/nan/tools/package.json +19 -0
  154. package/test/examples/source-repository/a/package-lock.json +8 -8
  155. package/test/examples/source-repository/a/package.json +3 -3
  156. package/test/examples/source-repository/b/dist/build.js +6 -5
  157. package/test/examples/source-repository/b/dist/build.js.map +1 -1
  158. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.d.ts +8 -5
  159. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js +35 -12
  160. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js.map +1 -1
  161. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  162. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  163. package/test/examples/source-repository/b/generated/index.ts +11 -10
  164. package/test/examples/source-repository/b/node_modules/.package-lock.json +57 -4
  165. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
  166. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +4 -0
  167. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +8 -0
  168. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
  169. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
  170. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +18 -0
  171. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
  172. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
  173. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
  174. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
  175. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
  176. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
  177. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
  178. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
  179. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
  180. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
  181. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
  182. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
  183. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
  184. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
  185. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
  186. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
  187. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
  188. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
  189. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
  190. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +5 -0
  191. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +9 -0
  192. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +42 -0
  193. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
  194. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
  195. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
  196. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
  197. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
  198. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +236 -0
  199. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
  200. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
  201. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/CHANGELOG.md +11 -0
  202. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.d.ts +4 -4
  203. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +8 -20
  204. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
  205. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/package.json +2 -2
  206. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/PackageUtil.ts +4 -8
  207. package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +22 -0
  208. package/test/examples/source-repository/b/node_modules/bindings/README.md +98 -0
  209. package/test/examples/source-repository/b/node_modules/bindings/bindings.js +221 -0
  210. package/test/examples/source-repository/b/node_modules/bindings/package.json +28 -0
  211. package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +30 -0
  212. package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +21 -0
  213. package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +20 -0
  214. package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +74 -0
  215. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +2 -0
  216. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +66 -0
  217. package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +32 -0
  218. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +24 -0
  219. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +13 -0
  220. package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +22 -0
  221. package/test/examples/source-repository/b/node_modules/fsevents/README.md +89 -0
  222. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +46 -0
  223. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +83 -0
  224. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
  225. package/test/examples/source-repository/b/node_modules/fsevents/package.json +62 -0
  226. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
  227. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
  228. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +22 -0
  229. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
  230. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
  231. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
  232. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
  233. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
  234. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +75 -0
  235. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  236. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
  237. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +188 -0
  238. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +772 -0
  239. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
  240. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
  241. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
  242. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
  243. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
  244. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
  245. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
  246. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
  247. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
  248. package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +557 -0
  249. package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +138 -0
  250. package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +9 -0
  251. package/test/examples/source-repository/b/node_modules/nan/README.md +456 -0
  252. package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +146 -0
  253. package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +54 -0
  254. package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +76 -0
  255. package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +41 -0
  256. package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +226 -0
  257. package/test/examples/source-repository/b/node_modules/nan/doc/json.md +62 -0
  258. package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +583 -0
  259. package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +672 -0
  260. package/test/examples/source-repository/b/node_modules/nan/doc/new.md +147 -0
  261. package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +123 -0
  262. package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +263 -0
  263. package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +296 -0
  264. package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +73 -0
  265. package/test/examples/source-repository/b/node_modules/nan/doc/script.md +58 -0
  266. package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +62 -0
  267. package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +199 -0
  268. package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +85 -0
  269. package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +1 -0
  270. package/test/examples/source-repository/b/node_modules/nan/nan.h +2958 -0
  271. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +92 -0
  272. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +520 -0
  273. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  274. package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +72 -0
  275. package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +68 -0
  276. package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  277. package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +29 -0
  278. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +430 -0
  279. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  280. package/test/examples/source-repository/b/node_modules/nan/nan_json.h +166 -0
  281. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +356 -0
  282. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  283. package/test/examples/source-repository/b/node_modules/nan/nan_new.h +340 -0
  284. package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +156 -0
  285. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +132 -0
  286. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  287. package/test/examples/source-repository/b/node_modules/nan/nan_private.h +73 -0
  288. package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +76 -0
  289. package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +305 -0
  290. package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +96 -0
  291. package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +437 -0
  292. package/test/examples/source-repository/b/node_modules/nan/package.json +38 -0
  293. package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +412 -0
  294. package/test/examples/source-repository/b/node_modules/nan/tools/README.md +14 -0
  295. package/test/examples/source-repository/b/node_modules/nan/tools/package.json +19 -0
  296. package/test/examples/source-repository/b/package-lock.json +6 -6
  297. package/test/examples/source-repository/b/package.json +3 -3
@@ -24,7 +24,7 @@ require("gulp");
24
24
  require("gulp-shell");
25
25
  require("jsesc");
26
26
  /** Generate Source Graph */
27
- var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"/home/runner/work/reflection/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
27
+ var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
28
28
  /** Generate Source Links */
29
29
  var LoadableForeignType_1 = require("../src/LoadableForeignType");
30
30
  var LoadableForeignType_2 = require("../src/LoadableForeignType");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../test/examples/source-repository/b/generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,6BAA2B;AAC3B,iCAA+B;AAC/B,2BAAyB;AACzB,gCAA8B;AAC9B,kBAAgB;AAChB,gBAAc;AACd,sBAAoB;AACpB,iBAAe;AAGf,4BAA4B;AAE5B,IAAM,WAAW,GAAG,86UAA86U,CAAC;AAGn8U,4BAA4B;AAE5B,kEAAmF;AACnF,kEAAwF;AACxF,kEAA0E;AAC1E,kEAAkF;AAClF,kEAA4F;AAE5F,IAAM,WAAW,GAAG;IACnB,0EAA0E,EAAE,2DAAqC;IACjH,+EAA+E,EAAE,gEAA0C;IAC3H,iEAAiE,EAAE,kDAA4B;IAC/F,yEAAyE,EAAE,0DAAoC;IAC/G,mFAAmF,EAAE,oEAA8C;CACnI,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../test/examples/source-repository/b/generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,6BAA2B;AAC3B,iCAA+B;AAC/B,2BAAyB;AACzB,gCAA8B;AAC9B,kBAAgB;AAChB,gBAAc;AACd,sBAAoB;AACpB,iBAAe;AAGf,4BAA4B;AAE5B,IAAM,WAAW,GAAG,0qVAA0qV,CAAC;AAG/rV,4BAA4B;AAE5B,kEAAmF;AACnF,kEAAwF;AACxF,kEAA0E;AAC1E,kEAAkF;AAClF,kEAA4F;AAE5F,IAAM,WAAW,GAAG;IACnB,0EAA0E,EAAE,2DAAqC;IACjH,+EAA+E,EAAE,gEAA0C;IAC3H,iEAAiE,EAAE,kDAA4B;IAC/F,yEAAyE,EAAE,0DAAoC;IAC/G,mFAAmF,EAAE,oEAA8C;CACnI,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/reflection-build",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Build system for reflection",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,14 +31,14 @@
31
31
  "@dagrejs/graphlib": "2.1.4",
32
32
  "@proteinjs/reflection": "^1.1.10",
33
33
  "@proteinjs/util": "1.5.0",
34
- "@proteinjs/util-node": "1.5.0",
34
+ "@proteinjs/util-node": "1.6.0",
35
35
  "globby": "11.0.1",
36
36
  "gulp": "4.0.2",
37
37
  "gulp-shell": "0.8.0",
38
38
  "jsesc": "^3.0.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@proteinjs/reflection-build-test-a": "^0.0.15",
41
+ "@proteinjs/reflection-build-test-a": "file:./test/examples/source-repository/a",
42
42
  "@types/graphlib": "2.1.6",
43
43
  "@types/gulp": "4.0.16",
44
44
  "@types/jest": "29.5.6",
@@ -52,6 +52,5 @@
52
52
  "jest": "29.7.0",
53
53
  "ts-jest": "29.1.1",
54
54
  "typescript": "5.2.2"
55
- },
56
- "gitHead": "37c02f922548511f3787a6d6b917727823d85820"
55
+ }
57
56
  }
package/src/build.ts CHANGED
@@ -9,7 +9,7 @@ export async function build() {
9
9
 
10
10
  // Env is ONLY read here.
11
11
  // Allow multiple comma-separated roots, e.g. "test,src" or "integration,examples,src".
12
- // The first root is the primary source.
12
+ // The first root is considered the "primary" tree for this invocation.
13
13
  const sourceRootsRaw = (process.env.REFLECTION_SOURCE_DIRS || '')
14
14
  .split(',')
15
15
  .map((s) => s.trim())
@@ -17,7 +17,11 @@ export async function build() {
17
17
 
18
18
  // If not provided, default to ['src'] for prod builds.
19
19
  const sourceRoots = sourceRootsRaw.length > 0 ? sourceRootsRaw : ['src'];
20
- const primaryRoot = sourceRoots[0]; // first entry is authoritative
20
+ const primaryRoot = sourceRoots[0];
21
+
22
+ // Optional: explicit public entry to re-export from (relative to package root)
23
+ // e.g. REFLECTION_EXPORT_FROM=test/index.ts
24
+ const publicEntryRelOverride = process.env.REFLECTION_EXPORT_FROM;
21
25
 
22
26
  const distDirRel = process.env.REFLECTION_DIST_DIR || 'dist';
23
27
 
@@ -33,7 +37,7 @@ export async function build() {
33
37
 
34
38
  await updatePackageJson();
35
39
  await writeTsconfig();
36
- await writeGeneratedIndex(targetDir, targetDirGenerated, generatedIndex, sourceRoots);
40
+ await writeGeneratedIndex(targetDir, targetDirGenerated, generatedIndex, sourceRoots, publicEntryRelOverride);
37
41
 
38
42
  // TODO save their index location in package.json and pass it in to writeGeneratedIndex above
39
43
  async function updatePackageJson() {
@@ -49,14 +53,17 @@ export async function build() {
49
53
  const isProd = primaryRoot === 'src';
50
54
  if (isProd) {
51
55
  const targetDirDist = path.join(targetDir, distDirRel);
56
+
57
+ // Rel path to /generated (may be './generated' or './generated/src' depending on primaryRoot)
52
58
  const relGenPath =
53
- primaryRoot === 'src'
54
- ? path.relative(targetDir, path.join(targetDir, 'generated'))
55
- : path.relative(targetDir, path.join(targetDir, 'generated', primaryRoot));
59
+ primaryRoot && primaryRoot !== 'src'
60
+ ? path.relative(targetDir, path.join(targetDir, 'generated', primaryRoot))
61
+ : path.relative(targetDir, path.join(targetDir, 'generated'));
56
62
 
57
63
  const targetDirDistGenerated = path.join(targetDirDist, relGenPath);
58
64
  const generatedIndexJs = path.join(targetDirDistGenerated, 'index.js');
59
65
  const generatedIndexDts = path.join(targetDirDistGenerated, 'index.d.ts');
66
+
60
67
  targetPackageJson.main = `./${path.relative(targetDir, generatedIndexJs)}`;
61
68
  targetPackageJson.types = `./${path.relative(targetDir, generatedIndexDts)}`;
62
69
  }
@@ -7,17 +7,23 @@ import { createSourceGraph } from '../parser/createSourceGraph';
7
7
  import { VariableDeclaration, PackageScope, ClassDeclaration, LOADABLE_QUALIFIED_NAME } from '@proteinjs/reflection';
8
8
 
9
9
  /**
10
- * @param packageDir Root of the package (contains package.json)
11
- * @param packageGeneratedDir Directory where generated/index.ts will be written
12
- * @param generatedIndexPath Full path to generated/index.ts
13
- * @param sourceRootRel Optional relative directories to scan (e.g. "test"); defaults to "src"
10
+ * @param packageDir Root of the package (contains package.json)
11
+ * @param packageGeneratedDir Directory where generated/index.ts will be written
12
+ * @param generatedIndexPath Full path to generated/index.ts
13
+ * @param sourceRootsRel Relative directories to scan (e.g. ['test','src']) defaults to 'src'
14
+ * @param publicEntryRelOverride Optional relative path (from package root) to the public entry that the
15
+ * generated index should re-export from (e.g. 'test/index.ts').
16
+ * If omitted, we re-export from '<packageRoot>/index'.
14
17
  */
15
18
  export async function writeGeneratedIndex(
16
19
  packageDir: string,
17
20
  packageGeneratedDir: string,
18
21
  generatedIndexPath: string,
19
- sourceRootsRel: string | string[] = 'src'
22
+ sourceRootsRel: string | string[] = 'src',
23
+ publicEntryRelOverride?: string
20
24
  ) {
25
+ // Keep the original safety check for a package entry.
26
+ // Even if we later re-export from a custom entry, most packages still have ./index.ts or ./src/index.ts.
21
27
  let packageIndexPath = path.join(packageDir, 'index.ts');
22
28
  if (!(await promisifiedFs.exists(packageIndexPath))) {
23
29
  packageIndexPath = path.join(packageDir, 'src/index.ts');
@@ -26,9 +32,37 @@ export async function writeGeneratedIndex(
26
32
  }
27
33
  }
28
34
 
35
+ // If an override was provided, optionally sanity-check that it exists. (Non-fatal if missing TS extension.)
36
+ if (publicEntryRelOverride) {
37
+ const overrideAbsCandidates = [
38
+ path.join(packageDir, publicEntryRelOverride),
39
+ path.join(packageDir, publicEntryRelOverride.replace(/\.[^/.]+$/, '') + '.ts'),
40
+ path.join(packageDir, publicEntryRelOverride.replace(/\.[^/.]+$/, '') + '.tsx'),
41
+ ];
42
+ const exists = await Promise.all(overrideAbsCandidates.map((p) => promisifiedFs.exists(p)));
43
+ if (!exists.some(Boolean)) {
44
+ // Soft fail with a better message; do not throw, to keep behavior minimal and predictable.
45
+ // If it truly doesn't exist, the final 'export * from' will fail at compile time which is also explicit.
46
+ // eslint-disable-next-line no-console
47
+ console.warn(
48
+ `[reflection-build] WARN: REFLECTION_EXPORT_FROM points at '${publicEntryRelOverride}', but no .ts/.tsx file was found under the package root.`
49
+ );
50
+ }
51
+ }
52
+
29
53
  await promisifiedFs.mkdir(packageGeneratedDir, { recursive: true });
54
+
30
55
  let generatedIndex = await sourceRepositoryLoader(packageDir, generatedIndexPath, sourceRootsRel);
31
- generatedIndex += `\n\n\nexport * from '${path.relative(packageGeneratedDir, packageDir)}/index';`;
56
+
57
+ // Choose the target module to re-export from:
58
+ // - If override provided, re-export from that (path relative to generated dir, without extension)
59
+ // - Else fallback to the current default: '<packageRoot>/index'
60
+ const exportTargetNoExt = publicEntryRelOverride
61
+ ? path.relative(packageGeneratedDir, path.join(packageDir, publicEntryRelOverride)).replace(/\.[^/.]+$/, '')
62
+ : `${path.relative(packageGeneratedDir, packageDir)}/index`;
63
+
64
+ generatedIndex += `\n\n\nexport * from '${exportTargetNoExt}';`;
65
+
32
66
  await promisifiedFs.writeFile(generatedIndexPath, generatedIndex);
33
67
  }
34
68
 
@@ -97,7 +131,7 @@ function getDependencyImportSpecifier(packageDir: string, packageName: string):
97
131
  require.resolve(packageName, { paths: [packageDir] });
98
132
  return packageName;
99
133
  } catch {
100
- // Load the dependency's package.json to inspect exports or entryfields
134
+ // Load the dependency's package.json to inspect exports or entry fields
101
135
  let depPkgJson: any;
102
136
  try {
103
137
  const pkgJsonPath = require.resolve(path.join(packageName, 'package.json'), { paths: [packageDir] });
@@ -165,7 +199,7 @@ function removeNonLoadables(sourceGraph: Graph, buildTargetPackageName: string):
165
199
  for (const nodeName of sourceGraph.nodes()) {
166
200
  const node = sourceGraph.node(nodeName);
167
201
  if (!node) {
168
- // may have been removed by a previous interation
202
+ // may have been removed by a previous iteration
169
203
  continue;
170
204
  }
171
205
 
@@ -84,9 +84,9 @@ function build() {
84
84
  isProd = primaryRoot === 'src';
85
85
  if (isProd) {
86
86
  targetDirDist = path.join(targetDir, distDirRel);
87
- relGenPath = primaryRoot === 'src'
88
- ? path.relative(targetDir, path.join(targetDir, 'generated'))
89
- : path.relative(targetDir, path.join(targetDir, 'generated', primaryRoot));
87
+ relGenPath = primaryRoot && primaryRoot !== 'src'
88
+ ? path.relative(targetDir, path.join(targetDir, 'generated', primaryRoot))
89
+ : path.relative(targetDir, path.join(targetDir, 'generated'));
90
90
  targetDirDistGenerated = path.join(targetDirDist, relGenPath);
91
91
  generatedIndexJs = path.join(targetDirDistGenerated, 'index.js');
92
92
  generatedIndexDts = path.join(targetDirDistGenerated, 'index.d.ts');
@@ -133,7 +133,7 @@ function build() {
133
133
  });
134
134
  });
135
135
  }
136
- var targetDir, targetDirTsconfig, sourceRootsRaw, sourceRoots, primaryRoot, distDirRel, targetDirGenerated, generatedIndex;
136
+ var targetDir, targetDirTsconfig, sourceRootsRaw, sourceRoots, primaryRoot, publicEntryRelOverride, distDirRel, targetDirGenerated, generatedIndex;
137
137
  return __generator(this, function (_a) {
138
138
  switch (_a.label) {
139
139
  case 0:
@@ -145,6 +145,7 @@ function build() {
145
145
  .filter(Boolean);
146
146
  sourceRoots = sourceRootsRaw.length > 0 ? sourceRootsRaw : ['src'];
147
147
  primaryRoot = sourceRoots[0];
148
+ publicEntryRelOverride = process.env.REFLECTION_EXPORT_FROM;
148
149
  distDirRel = process.env.REFLECTION_DIST_DIR || 'dist';
149
150
  targetDirGenerated = primaryRoot && primaryRoot !== 'src'
150
151
  ? path.join(targetDir, 'generated', primaryRoot)
@@ -156,7 +157,7 @@ function build() {
156
157
  return [4 /*yield*/, writeTsconfig()];
157
158
  case 2:
158
159
  _a.sent();
159
- return [4 /*yield*/, (0, writeGeneratedIndex_1.writeGeneratedIndex)(targetDir, targetDirGenerated, generatedIndex, sourceRoots)];
160
+ return [4 /*yield*/, (0, writeGeneratedIndex_1.writeGeneratedIndex)(targetDir, targetDirGenerated, generatedIndex, sourceRoots, publicEntryRelOverride)];
160
161
  case 3:
161
162
  _a.sent();
162
163
  return [2 /*return*/];
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../src/build.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA6B;AAC7B,IAAM,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACpD,kDAAqD;AACrD,qEAAoE;AAEpE,SAAsB,KAAK;;QAgCzB,6FAA6F;QAC7F,SAAe,iBAAiB;;;;;;4BACxB,oBAAoB,GAAG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AyB,CAAC;oBAC1B,qBAAM,aAAa,EAAE,EAAA;;oBAArB,SAAqB,CAAC;oBACtB,qBAAM,IAAA,yCAAmB,EAAC,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,sBAAsB,CAAC,EAAA;;oBAA7G,SAA6G,CAAC;;;;;CAmD/G;AArFD,sBAqFC"}
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @param packageDir Root of the package (contains package.json)
3
- * @param packageGeneratedDir Directory where generated/index.ts will be written
4
- * @param generatedIndexPath Full path to generated/index.ts
5
- * @param sourceRootRel Optional relative directories to scan (e.g. "test"); defaults to "src"
2
+ * @param packageDir Root of the package (contains package.json)
3
+ * @param packageGeneratedDir Directory where generated/index.ts will be written
4
+ * @param generatedIndexPath Full path to generated/index.ts
5
+ * @param sourceRootsRel Relative directories to scan (e.g. ['test','src']) defaults to 'src'
6
+ * @param publicEntryRelOverride Optional relative path (from package root) to the public entry that the
7
+ * generated index should re-export from (e.g. 'test/index.ts').
8
+ * If omitted, we re-export from '<packageRoot>/index'.
6
9
  */
7
- export declare function writeGeneratedIndex(packageDir: string, packageGeneratedDir: string, generatedIndexPath: string, sourceRootsRel?: string | string[]): Promise<void>;
10
+ export declare function writeGeneratedIndex(packageDir: string, packageGeneratedDir: string, generatedIndexPath: string, sourceRootsRel?: string | string[], publicEntryRelOverride?: string): Promise<void>;
@@ -70,15 +70,18 @@ var jsesc_1 = __importDefault(require("jsesc"));
70
70
  var createSourceGraph_1 = require("../parser/createSourceGraph");
71
71
  var reflection_1 = require("@proteinjs/reflection");
72
72
  /**
73
- * @param packageDir Root of the package (contains package.json)
74
- * @param packageGeneratedDir Directory where generated/index.ts will be written
75
- * @param generatedIndexPath Full path to generated/index.ts
76
- * @param sourceRootRel Optional relative directories to scan (e.g. "test"); defaults to "src"
73
+ * @param packageDir Root of the package (contains package.json)
74
+ * @param packageGeneratedDir Directory where generated/index.ts will be written
75
+ * @param generatedIndexPath Full path to generated/index.ts
76
+ * @param sourceRootsRel Relative directories to scan (e.g. ['test','src']) defaults to 'src'
77
+ * @param publicEntryRelOverride Optional relative path (from package root) to the public entry that the
78
+ * generated index should re-export from (e.g. 'test/index.ts').
79
+ * If omitted, we re-export from '<packageRoot>/index'.
77
80
  */
78
- function writeGeneratedIndex(packageDir, packageGeneratedDir, generatedIndexPath, sourceRootsRel) {
81
+ function writeGeneratedIndex(packageDir, packageGeneratedDir, generatedIndexPath, sourceRootsRel, publicEntryRelOverride) {
79
82
  if (sourceRootsRel === void 0) { sourceRootsRel = 'src'; }
80
83
  return __awaiter(this, void 0, void 0, function () {
81
- var packageIndexPath, generatedIndex;
84
+ var packageIndexPath, overrideAbsCandidates, exists, generatedIndex, exportTargetNoExt;
82
85
  return __generator(this, function (_a) {
83
86
  switch (_a.label) {
84
87
  case 0:
@@ -93,15 +96,35 @@ function writeGeneratedIndex(packageDir, packageGeneratedDir, generatedIndexPath
93
96
  throw new Error('Cannot find index.ts at ./index.ts or ./src/index.ts');
94
97
  }
95
98
  _a.label = 3;
96
- case 3: return [4 /*yield*/, util_node_1.promisifiedFs.mkdir(packageGeneratedDir, { recursive: true })];
99
+ case 3:
100
+ if (!publicEntryRelOverride) return [3 /*break*/, 5];
101
+ overrideAbsCandidates = [
102
+ path.join(packageDir, publicEntryRelOverride),
103
+ path.join(packageDir, publicEntryRelOverride.replace(/\.[^/.]+$/, '') + '.ts'),
104
+ path.join(packageDir, publicEntryRelOverride.replace(/\.[^/.]+$/, '') + '.tsx'),
105
+ ];
106
+ return [4 /*yield*/, Promise.all(overrideAbsCandidates.map(function (p) { return util_node_1.promisifiedFs.exists(p); }))];
97
107
  case 4:
108
+ exists = _a.sent();
109
+ if (!exists.some(Boolean)) {
110
+ // Soft fail with a better message; do not throw, to keep behavior minimal and predictable.
111
+ // If it truly doesn't exist, the final 'export * from' will fail at compile time which is also explicit.
112
+ // eslint-disable-next-line no-console
113
+ console.warn("[reflection-build] WARN: REFLECTION_EXPORT_FROM points at '".concat(publicEntryRelOverride, "', but no .ts/.tsx file was found under the package root."));
114
+ }
115
+ _a.label = 5;
116
+ case 5: return [4 /*yield*/, util_node_1.promisifiedFs.mkdir(packageGeneratedDir, { recursive: true })];
117
+ case 6:
98
118
  _a.sent();
99
119
  return [4 /*yield*/, sourceRepositoryLoader(packageDir, generatedIndexPath, sourceRootsRel)];
100
- case 5:
120
+ case 7:
101
121
  generatedIndex = _a.sent();
102
- generatedIndex += "\n\n\nexport * from '".concat(path.relative(packageGeneratedDir, packageDir), "/index';");
122
+ exportTargetNoExt = publicEntryRelOverride
123
+ ? path.relative(packageGeneratedDir, path.join(packageDir, publicEntryRelOverride)).replace(/\.[^/.]+$/, '')
124
+ : "".concat(path.relative(packageGeneratedDir, packageDir), "/index");
125
+ generatedIndex += "\n\n\nexport * from '".concat(exportTargetNoExt, "';");
103
126
  return [4 /*yield*/, util_node_1.promisifiedFs.writeFile(generatedIndexPath, generatedIndex)];
104
- case 6:
127
+ case 8:
105
128
  _a.sent();
106
129
  return [2 /*return*/];
107
130
  }
@@ -181,7 +204,7 @@ function getDependencyImportSpecifier(packageDir, packageName) {
181
204
  return packageName;
182
205
  }
183
206
  catch (_a) {
184
- // Load the dependency's package.json to inspect exports or entryfields
207
+ // Load the dependency's package.json to inspect exports or entry fields
185
208
  var depPkgJson = void 0;
186
209
  try {
187
210
  var pkgJsonPath = require.resolve(path.join(packageName, 'package.json'), { paths: [packageDir] });
@@ -249,7 +272,7 @@ function removeNonLoadables(sourceGraph, buildTargetPackageName) {
249
272
  var nodeName = _a[_i];
250
273
  var node = sourceGraph.node(nodeName);
251
274
  if (!node) {
252
- // may have been removed by a previous interation
275
+ // may have been removed by a previous iteration
253
276
  continue;
254
277
  }
255
278
  removeNonLoadableNode(node, buildTargetPackageName, sourceGraph);
@@ -1 +1 @@
1
- {"version":3,"file":"writeGeneratedIndex.js","sourceRoot":"","sources":["../../../../../../src/codegen/writeGeneratedIndex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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