tnp 19.0.19 → 19.0.21

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 (587) hide show
  1. package/browser/fesm2022/tnp.mjs +2 -4
  2. package/browser/fesm2022/tnp.mjs.map +1 -1
  3. package/browser/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/browser/lib/models.d.ts +9 -0
  5. package/browser/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
  6. package/browser/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
  7. package/browser/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
  8. package/browser/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
  9. package/browser/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
  10. package/browser/lib/project/abstract/git.d.ts +1 -0
  11. package/browser/lib/project/abstract/taonJson.d.ts +1 -0
  12. package/browser/package.json +1 -1
  13. package/cli.js +840 -602
  14. package/client/fesm2022/tnp.mjs +2 -4
  15. package/client/fesm2022/tnp.mjs.map +1 -1
  16. package/client/lib/build-info._auto-generated_.d.ts +1 -1
  17. package/client/lib/models.d.ts +9 -0
  18. package/client/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
  19. package/client/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
  20. package/client/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
  21. package/client/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
  22. package/client/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
  23. package/client/lib/project/abstract/git.d.ts +1 -0
  24. package/client/lib/project/abstract/taonJson.d.ts +1 -0
  25. package/client/package.json +1 -1
  26. package/lib/build-info._auto-generated_.d.ts +1 -1
  27. package/lib/build-info._auto-generated_.js +1 -1
  28. package/lib/build-options.d.ts +164 -0
  29. package/lib/build-options.js +198 -0
  30. package/lib/build-options.js.map +1 -0
  31. package/lib/constants.js +1 -3
  32. package/lib/constants.js.map +1 -1
  33. package/lib/helpers.js +2 -2
  34. package/lib/models.d.ts +9 -0
  35. package/lib/models.js.map +1 -1
  36. package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.d.ts +3 -5
  37. package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js +62 -76
  38. package/lib/project/abstract/artifacts/__helpers__/environment-config/environment-config-helpers.js.map +1 -1
  39. package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
  40. package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js +20 -31
  41. package/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.js.map +1 -1
  42. package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.d.ts +5 -0
  43. package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js +111 -0
  44. package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.backend.js.map +1 -0
  45. package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js +6 -55
  46. package/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.js.map +1 -1
  47. package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js +3 -1
  48. package/lib/project/abstract/artifacts/angular-node-app/tools/basename-manager.js.map +1 -1
  49. package/lib/project/abstract/artifacts/artifact-angular-node-app/artifact-angular-node-app.d.ts +9 -0
  50. package/lib/project/abstract/artifacts/artifact-angular-node-app/index.d.ts +1 -0
  51. package/lib/project/abstract/artifacts/artifact-angular-node-app copy.d.ts +7 -0
  52. package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js +62 -0
  53. package/lib/project/abstract/artifacts/artifact-angular-node-app copy.js.map +1 -0
  54. package/lib/project/abstract/artifacts/artifact-angular-node-app.d.ts +9 -0
  55. package/lib/project/abstract/artifacts/artifact-angular-node-app.js +62 -0
  56. package/lib/project/abstract/artifacts/artifact-angular-node-app.js.map +1 -0
  57. package/lib/project/abstract/artifacts/artifact-angular-webapp.d.ts +7 -0
  58. package/lib/project/abstract/artifacts/artifact-angular-webapp.js +62 -0
  59. package/lib/project/abstract/artifacts/artifact-angular-webapp.js.map +1 -0
  60. package/lib/project/abstract/artifacts/artifact-docs-webapp.d.ts +7 -0
  61. package/lib/project/abstract/artifacts/artifact-docs-webapp.js +5 -0
  62. package/lib/project/abstract/artifacts/artifact-docs-webapp.js.map +1 -0
  63. package/lib/project/abstract/artifacts/artifact-electron-app copy.d.ts +1 -0
  64. package/lib/project/abstract/artifacts/artifact-electron-app copy.js +5 -0
  65. package/lib/project/abstract/artifacts/artifact-electron-app copy.js.map +1 -0
  66. package/lib/project/abstract/artifacts/artifact-electron-app.d.ts +8 -0
  67. package/lib/project/abstract/artifacts/artifact-electron-app.js +5 -0
  68. package/lib/project/abstract/artifacts/artifact-electron-app.js.map +1 -0
  69. package/lib/project/abstract/artifacts/artifact-lib-cli.d.ts +1 -0
  70. package/lib/project/abstract/artifacts/artifact-lib-cli.js +5 -0
  71. package/lib/project/abstract/artifacts/artifact-lib-cli.js.map +1 -0
  72. package/lib/project/abstract/artifacts/artifact-lib-with-cli.d.ts +1 -0
  73. package/lib/project/abstract/artifacts/artifact-lib-with-cli.js +5 -0
  74. package/lib/project/abstract/artifacts/artifact-lib-with-cli.js.map +1 -0
  75. package/lib/project/abstract/artifacts/artifact-mk-docs-webapp.d.ts +7 -0
  76. package/lib/project/abstract/artifacts/artifact-mobile-app copy.d.ts +1 -0
  77. package/lib/project/abstract/artifacts/artifact-mobile-app copy.js +5 -0
  78. package/lib/project/abstract/artifacts/artifact-mobile-app copy.js.map +1 -0
  79. package/lib/project/abstract/artifacts/artifact-mobile-app.d.ts +7 -0
  80. package/lib/project/abstract/artifacts/artifact-mobile-app.js +5 -0
  81. package/lib/project/abstract/artifacts/artifact-mobile-app.js.map +1 -0
  82. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.d.ts +25 -0
  83. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js +5 -0
  84. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli-tool.js.map +1 -0
  85. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.d.ts +1 -0
  86. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js +5 -0
  87. package/lib/project/abstract/artifacts/artifact-npm-lib-and-cli.js.map +1 -0
  88. package/lib/project/abstract/artifacts/artifact-vscode-ext copy.d.ts +1 -0
  89. package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js +5 -0
  90. package/lib/project/abstract/artifacts/artifact-vscode-ext copy.js.map +1 -0
  91. package/lib/project/abstract/artifacts/artifact-vscode-ext.d.ts +1 -0
  92. package/lib/project/abstract/artifacts/artifact-vscode-ext.js +5 -0
  93. package/lib/project/abstract/artifacts/artifact-vscode-ext.js.map +1 -0
  94. package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.d.ts +1 -0
  95. package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js +5 -0
  96. package/lib/project/abstract/artifacts/artifact-vscode-plugin copy.js.map +1 -0
  97. package/lib/project/abstract/artifacts/artifact-vscode-plugin.d.ts +9 -0
  98. package/lib/project/abstract/artifacts/artifact-vscode-plugin.js +5 -0
  99. package/lib/project/abstract/artifacts/artifact-vscode-plugin.js.map +1 -0
  100. package/lib/project/abstract/artifacts/artifact-webapp.d.ts +1 -0
  101. package/lib/project/abstract/artifacts/artifact-webapp.js +5 -0
  102. package/lib/project/abstract/artifacts/artifact-webapp.js.map +1 -0
  103. package/lib/project/abstract/artifacts/artifacts-helpers.d.ts +2 -0
  104. package/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
  105. package/lib/project/abstract/artifacts/base-artifact.js +29 -0
  106. package/lib/project/abstract/artifacts/base-artifact.js.map +1 -1
  107. package/lib/project/abstract/artifacts/build-process-maanger.d.ts +38 -0
  108. package/lib/project/abstract/artifacts/build-process-maanger.js +269 -0
  109. package/lib/project/abstract/artifacts/build-process-maanger.js.map +1 -0
  110. package/lib/project/abstract/artifacts/build-process-manager.d.ts +0 -51
  111. package/lib/project/abstract/artifacts/build-process-manager.js +388 -415
  112. package/lib/project/abstract/artifacts/build-process-manager.js.map +1 -1
  113. package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
  114. package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js +68 -8
  115. package/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.js.map +1 -1
  116. package/lib/project/abstract/artifacts/docs-webapp/docs.js +1 -1
  117. package/lib/project/abstract/artifacts/docs-webapp/docs.js.map +1 -1
  118. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js +7 -0
  119. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/artifact-npm-lib-and-cli-tool.js.map +1 -1
  120. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js +13 -12
  121. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/build-isomorphic-lib/code-cut/browser-code-cut.js.map +1 -1
  122. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
  123. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js +6 -10
  124. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.js.map +1 -1
  125. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.d.ts +49 -0
  126. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js +335 -0
  127. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization-angular-files.js.map +1 -0
  128. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.js +2 -2
  129. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js +6 -2
  130. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-standalone.js.map +1 -1
  131. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js +0 -1
  132. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/source-maping-url.js.map +1 -1
  133. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js +4 -7
  134. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/files-recreation/files-recreator.js.map +1 -1
  135. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js +14 -1
  136. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/inside-struct-helpers.js.map +1 -1
  137. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js +4 -3
  138. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/inside-structures/structs/loaders/image-loader.js.map +1 -1
  139. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/lib-project/lib-project-smart-container.js +2 -2
  140. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.d.ts +17 -0
  141. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js +383 -0
  142. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.backend.js.map +1 -0
  143. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.js +2 -2
  144. package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/webpack-backend-compilation.js +2 -2
  145. package/lib/project/abstract/base-compiler-for-project.backend.d.ts +6 -0
  146. package/lib/project/abstract/base-compiler-for-project.backend.js +57 -0
  147. package/lib/project/abstract/base-compiler-for-project.backend.js.map +1 -0
  148. package/lib/project/abstract/base-local-release.d.ts +7 -0
  149. package/lib/project/abstract/base-local-release.js +110 -0
  150. package/lib/project/abstract/base-local-release.js.map +1 -0
  151. package/lib/project/abstract/docs.d.ts +51 -0
  152. package/lib/project/abstract/docs.js +813 -0
  153. package/lib/project/abstract/docs.js.map +1 -0
  154. package/lib/project/abstract/git.d.ts +1 -0
  155. package/lib/project/abstract/git.js +30 -3
  156. package/lib/project/abstract/git.js.map +1 -1
  157. package/lib/project/abstract/migrations-helper.d.ts +18 -0
  158. package/lib/project/abstract/migrations-helper.js +124 -0
  159. package/lib/project/abstract/migrations-helper.js.map +1 -0
  160. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app copy.d.ts +0 -0
  161. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.d.ts +4 -0
  162. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js +19 -0
  163. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-electron-app.js.map +1 -0
  164. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp copy.d.ts +0 -0
  165. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.d.ts +4 -0
  166. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js +19 -0
  167. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-frontend-webapp.js.map +1 -0
  168. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.d.ts +4 -0
  169. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js +19 -0
  170. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-app.js.map +1 -0
  171. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-ionic-appy.d.ts +0 -0
  172. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp copy.d.ts +0 -0
  173. package/lib/project/abstract/release-process/artifacts/artifact-release-angular-nodejs-webapp.d.ts +0 -0
  174. package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.d.ts +4 -0
  175. package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js +19 -0
  176. package/lib/project/abstract/release-process/artifacts/artifact-release-mkdocs-docs-webapp.js.map +1 -0
  177. package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.d.ts +4 -0
  178. package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js +19 -0
  179. package/lib/project/abstract/release-process/artifacts/artifact-release-nodejs-backend-server.js.map +1 -0
  180. package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-and-cli-tool-package.d.ts +6 -0
  181. package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-cli-package.d.ts +0 -0
  182. package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.d.ts +4 -0
  183. package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js +19 -0
  184. package/lib/project/abstract/release-process/artifacts/artifact-release-npm-lib-pkg-and-cli-tool.js.map +1 -0
  185. package/lib/project/abstract/release-process/artifacts/artifact-release-process-angular-electron-app.d.ts +0 -0
  186. package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension copy.d.ts +6 -0
  187. package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.d.ts +4 -0
  188. package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js +19 -0
  189. package/lib/project/abstract/release-process/artifacts/artifact-release-vscode-extension.js.map +1 -0
  190. package/lib/project/abstract/release-process/artifacts/artifact-release.d.ts +14 -0
  191. package/lib/project/abstract/release-process/artifacts/artifact-release.js +28 -0
  192. package/lib/project/abstract/release-process/artifacts/artifact-release.js.map +1 -0
  193. package/lib/project/abstract/release-process/artifacts/base-artifact-release-process.d.ts +0 -0
  194. package/lib/project/abstract/release-process/artifacts/base-artifact-release.d.ts +6 -0
  195. package/lib/project/abstract/release-process/artifacts/release-angular-nodejs-webapp.d.ts +0 -0
  196. package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package copy.d.ts +0 -0
  197. package/lib/project/abstract/release-process/artifacts/release-npm-lib-cli-package.d.ts +0 -0
  198. package/lib/project/abstract/release-process/artifacts/release-process-angular-electron-app.d.ts +0 -0
  199. package/lib/project/abstract/release-process/artifacts copy/artifact-release-angular-nodejs-webapp.d.ts +0 -0
  200. package/lib/project/abstract/release-process/artifacts copy/artifact-release-npm-lib-cli-package.d.ts +0 -0
  201. package/lib/project/abstract/release-process/release-npm-lib-cli-package.d.ts +0 -0
  202. package/lib/project/abstract/release-process/release-process copy.d.ts +10 -0
  203. package/lib/project/abstract/release-process/release-process-artifact-npm-lib-cli.d.ts +0 -0
  204. package/lib/project/abstract/release-process/release-process-cloud.d.ts +7 -0
  205. package/lib/project/abstract/release-process/release-process-cloud.js +23 -0
  206. package/lib/project/abstract/release-process/release-process-cloud.js.map +1 -0
  207. package/lib/project/abstract/release-process/release-process-local.d.ts +7 -0
  208. package/lib/project/abstract/release-process/release-process-local.js +23 -0
  209. package/lib/project/abstract/release-process/release-process-local.js.map +1 -0
  210. package/lib/project/abstract/release-process/release-process-manual.d.ts +7 -0
  211. package/lib/project/abstract/release-process/release-process-manual.js +23 -0
  212. package/lib/project/abstract/release-process/release-process-manual.js.map +1 -0
  213. package/lib/project/abstract/taon-worker/index.d.ts +1 -0
  214. package/lib/project/abstract/taon-worker/index.js +5 -0
  215. package/lib/project/abstract/taon-worker/index.js.map +1 -0
  216. package/lib/project/abstract/taon-worker/taon-build.entity copy.d.ts +8 -0
  217. package/lib/project/abstract/taon-worker/taon-build.entity copy.js +50 -0
  218. package/lib/project/abstract/taon-worker/taon-build.entity copy.js.map +1 -0
  219. package/lib/project/abstract/taon-worker/taon-project.entity copy.d.ts +5 -0
  220. package/lib/project/abstract/taon-worker/taon-project.entity copy.js +37 -0
  221. package/lib/project/abstract/taon-worker/taon-project.entity copy.js.map +1 -0
  222. package/lib/project/abstract/taon-worker/taon-termina-ui.d.ts +20 -0
  223. package/lib/project/abstract/taon-worker/taon-termina-ui.js +67 -0
  224. package/lib/project/abstract/taon-worker/taon-termina-ui.js.map +1 -0
  225. package/lib/project/abstract/taon-worker/taon.context.d.ts +2 -2
  226. package/lib/project/abstract/taon-worker/taon.entity.d.ts +6 -0
  227. package/lib/project/abstract/taon-worker/taon.entity.js +46 -0
  228. package/lib/project/abstract/taon-worker/taon.entity.js.map +1 -0
  229. package/lib/project/abstract/taon-worker.d.ts +29 -0
  230. package/lib/project/abstract/taon-worker.js +4 -0
  231. package/lib/project/abstract/taon-worker.js.map +1 -0
  232. package/lib/project/abstract/taonJson.d.ts +1 -0
  233. package/lib/project/abstract/taonJson.js +10 -0
  234. package/lib/project/abstract/taonJson.js.map +1 -1
  235. package/lib/project/abstract/vscode.js +1 -1
  236. package/lib/project/abstract/vscode.js.map +1 -1
  237. package/lib/project/cli/cli-BRANDING.backend.d.ts +26 -0
  238. package/lib/project/cli/cli-BRANDING.backend.js +50 -0
  239. package/lib/project/cli/cli-BRANDING.backend.js.map +1 -0
  240. package/lib/project/cli/cli-BUILD.backend.d.ts +4 -0
  241. package/lib/project/cli/cli-BUILD.backend.js +269 -0
  242. package/lib/project/cli/cli-BUILD.backend.js.map +1 -0
  243. package/lib/project/cli/cli-BUILD.js +2 -4
  244. package/lib/project/cli/cli-BUILD.js.map +1 -1
  245. package/lib/project/cli/cli-CI-BUILD.backend.d.ts +4 -0
  246. package/lib/project/cli/cli-CI-BUILD.backend.js +88 -0
  247. package/lib/project/cli/cli-CI-BUILD.backend.js.map +1 -0
  248. package/lib/project/cli/cli-DOCS.backend.d.ts +4 -0
  249. package/lib/project/cli/cli-DOCS.backend.js +48 -0
  250. package/lib/project/cli/cli-DOCS.backend.js.map +1 -0
  251. package/lib/project/cli/cli-DOCS.js +5 -5
  252. package/lib/project/cli/cli-DOCS.js.map +1 -1
  253. package/lib/project/cli/cli-ELECTRON.backend.d.ts +4 -0
  254. package/lib/project/cli/cli-ELECTRON.backend.js +80 -0
  255. package/lib/project/cli/cli-ELECTRON.backend.js.map +1 -0
  256. package/lib/project/cli/cli-GENERATE.js +1 -1
  257. package/lib/project/cli/cli-GENERATE.js.map +1 -1
  258. package/lib/project/cli/cli-INIT.backend.d.ts +16 -0
  259. package/lib/project/cli/cli-INIT.backend.js +179 -0
  260. package/lib/project/cli/cli-INIT.backend.js.map +1 -0
  261. package/lib/project/cli/cli-LINK.backend.d.ts +21 -0
  262. package/lib/project/cli/cli-LINK.backend.js +204 -0
  263. package/lib/project/cli/cli-LINK.backend.js.map +1 -0
  264. package/lib/project/cli/cli-LINK.d.ts +1 -1
  265. package/lib/project/cli/cli-LINK.js +19 -6
  266. package/lib/project/cli/cli-LINK.js.map +1 -1
  267. package/lib/project/cli/cli-LOCAL-RELEASE.backend.d.ts +17 -0
  268. package/lib/project/cli/cli-LOCAL-RELEASE.backend.js +240 -0
  269. package/lib/project/cli/cli-LOCAL-RELEASE.backend.js.map +1 -0
  270. package/lib/project/cli/cli-LOCAL-RELEASE.d.ts +0 -0
  271. package/lib/project/cli/cli-LOCAL-RELEASE.js +184 -0
  272. package/lib/project/cli/cli-LOCAL-RELEASE.js.map +1 -0
  273. package/lib/project/cli/cli-MIGRATION.backend.d.ts +4 -0
  274. package/lib/project/cli/cli-MIGRATION.backend.js +213 -0
  275. package/lib/project/cli/cli-MIGRATION.backend.js.map +1 -0
  276. package/lib/project/cli/cli-NEW.backend.d.ts +18 -0
  277. package/lib/project/cli/cli-NEW.backend.js +393 -0
  278. package/lib/project/cli/cli-NEW.backend.js.map +1 -0
  279. package/lib/project/cli/cli-OPEN.backend.d.ts +17 -0
  280. package/lib/project/cli/cli-OPEN.backend.js +129 -0
  281. package/lib/project/cli/cli-OPEN.backend.js.map +1 -0
  282. package/lib/project/cli/cli-RELEASE.backend.d.ts +4 -0
  283. package/lib/project/cli/cli-RELEASE.backend.js +415 -0
  284. package/lib/project/cli/cli-RELEASE.backend.js.map +1 -0
  285. package/lib/project/cli/cli-SERVICE.backend.d.ts +9 -0
  286. package/lib/project/cli/cli-SERVICE.backend.js +38 -0
  287. package/lib/project/cli/cli-SERVICE.backend.js.map +1 -0
  288. package/lib/project/cli/cli-START.backend.d.ts +2 -0
  289. package/lib/project/cli/cli-START.backend.js +4 -0
  290. package/lib/project/cli/cli-START.backend.js.map +1 -0
  291. package/lib/project/cli/cli-TEST.backend.d.ts +24 -0
  292. package/lib/project/cli/cli-TEST.backend.js +292 -0
  293. package/lib/project/cli/cli-TEST.backend.js.map +1 -0
  294. package/lib/project/cli/cli-TS.backend.d.ts +9 -0
  295. package/lib/project/cli/cli-TS.backend.js +29 -0
  296. package/lib/project/cli/cli-TS.backend.js.map +1 -0
  297. package/lib/project/cli/cli-UPDATE.backend.d.ts +2 -0
  298. package/lib/project/cli/cli-UPDATE.backend.js +4 -0
  299. package/lib/project/cli/cli-UPDATE.backend.js.map +1 -0
  300. package/lib/project/cli/cli-VSCODE.backend.d.ts +20 -0
  301. package/lib/project/cli/cli-VSCODE.backend.js +153 -0
  302. package/lib/project/cli/cli-VSCODE.backend.js.map +1 -0
  303. package/lib/project/cli/cli-_GLOBAL_.backend.d.ts +91 -0
  304. package/lib/project/cli/cli-_GLOBAL_.backend.js +1730 -0
  305. package/lib/project/cli/cli-_GLOBAL_.backend.js.map +1 -0
  306. package/lib/project/cli/cli-_GLOBAL_.js +1 -1
  307. package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
  308. package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.d.ts +21 -0
  309. package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js +150 -0
  310. package/lib/project/compilers/assets-list-file-generator/assets-list-file-generator.backend.js.map +1 -0
  311. package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.d.ts +102 -0
  312. package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js +990 -0
  313. package/lib/project/compilers/build-isomorphic-lib/code-cut/browser-code-cut.backend.js.map +1 -0
  314. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.d.ts +41 -0
  315. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js +85 -0
  316. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-cut.backend.js.map +1 -0
  317. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.d.ts +44 -0
  318. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js +98 -0
  319. package/lib/project/compilers/build-isomorphic-lib/code-cut/code-split-process.enum.js.map +1 -0
  320. package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.d.ts +1 -0
  321. package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js +18 -0
  322. package/lib/project/compilers/build-isomorphic-lib/code-cut/cut-fn.backend.js.map +1 -0
  323. package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.d.ts +14 -0
  324. package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js +159 -0
  325. package/lib/project/compilers/build-isomorphic-lib/code-cut/file-split-process.js.map +1 -0
  326. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.d.ts +60 -0
  327. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js +284 -0
  328. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-backend.backend.js.map +1 -0
  329. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.d.ts +42 -0
  330. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js +232 -0
  331. package/lib/project/compilers/build-isomorphic-lib/compilations/compilation-browser.backend.js.map +1 -0
  332. package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.d.ts +18 -0
  333. package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js +165 -0
  334. package/lib/project/compilers/build-isomorphic-lib/compilations/incremental-build-process.backend.js.map +1 -0
  335. package/lib/project/compilers/index.d.ts +1 -0
  336. package/lib/project/compilers/index.js +8 -0
  337. package/lib/project/compilers/index.js.map +1 -0
  338. package/lib/project/features/assets-manager.backend.d.ts +5 -0
  339. package/lib/project/features/assets-manager.backend.js +110 -0
  340. package/lib/project/features/assets-manager.backend.js.map +1 -0
  341. package/lib/project/features/basename-manager.d.ts +18 -0
  342. package/lib/project/features/basename-manager.js +89 -0
  343. package/lib/project/features/basename-manager.js.map +1 -0
  344. package/lib/project/features/branding.backend.d.ts +11 -0
  345. package/lib/project/features/branding.backend.js +213 -0
  346. package/lib/project/features/branding.backend.js.map +1 -0
  347. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.d.ts +14 -0
  348. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js +44 -0
  349. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.js.map +1 -0
  350. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.d.ts +0 -0
  351. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js +2 -0
  352. package/lib/project/features/build-process/app/build-process/backend/build-process-backend.test.js.map +1 -0
  353. package/lib/project/features/build-process/app/build-process/build-process.controller.d.ts +20 -0
  354. package/lib/project/features/build-process/app/build-process/build-process.controller.js +159 -0
  355. package/lib/project/features/build-process/app/build-process/build-process.controller.js.map +1 -0
  356. package/lib/project/features/build-process/app/build-process/build-process.d.ts +12 -0
  357. package/lib/project/features/build-process/app/build-process/build-process.js +56 -0
  358. package/lib/project/features/build-process/app/build-process/build-process.js.map +1 -0
  359. package/lib/project/features/build-process/app/build-process/index.d.ts +2 -0
  360. package/lib/project/features/build-process/app/build-process/index.js +6 -0
  361. package/lib/project/features/build-process/app/build-process/index.js.map +1 -0
  362. package/lib/project/features/copy-manager/base-copy-manager.backend.d.ts +87 -0
  363. package/lib/project/features/copy-manager/base-copy-manager.backend.js +504 -0
  364. package/lib/project/features/copy-manager/base-copy-manager.backend.js.map +1 -0
  365. package/lib/project/features/copy-manager/copy-manager-helpers.backend.d.ts +12 -0
  366. package/lib/project/features/copy-manager/copy-manager-helpers.backend.js +96 -0
  367. package/lib/project/features/copy-manager/copy-manager-helpers.backend.js.map +1 -0
  368. package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.d.ts +49 -0
  369. package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +321 -0
  370. package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +1 -0
  371. package/lib/project/features/copy-manager/copy-manager-organization.backend.d.ts +78 -0
  372. package/lib/project/features/copy-manager/copy-manager-organization.backend.js +788 -0
  373. package/lib/project/features/copy-manager/copy-manager-organization.backend.js.map +1 -0
  374. package/lib/project/features/copy-manager/copy-manager-standalone.backend.d.ts +77 -0
  375. package/lib/project/features/copy-manager/copy-manager-standalone.backend.js +575 -0
  376. package/lib/project/features/copy-manager/copy-manager-standalone.backend.js.map +1 -0
  377. package/lib/project/features/copy-manager/copy-manager.backend.d.ts +7 -0
  378. package/lib/project/features/copy-manager/copy-manager.backend.js +27 -0
  379. package/lib/project/features/copy-manager/copy-manager.backend.js.map +1 -0
  380. package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.d.ts +46 -0
  381. package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js +354 -0
  382. package/lib/project/features/copy-manager/mjs-fesm-module-spliter.backend.js.map +1 -0
  383. package/lib/project/features/copy-manager/source-maping-url.backend.d.ts +12 -0
  384. package/lib/project/features/copy-manager/source-maping-url.backend.js +56 -0
  385. package/lib/project/features/copy-manager/source-maping-url.backend.js.map +1 -0
  386. package/lib/project/features/copy-manager/typescript-dts-fixer.backend.d.ts +25 -0
  387. package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js +97 -0
  388. package/lib/project/features/copy-manager/typescript-dts-fixer.backend.js.map +1 -0
  389. package/lib/project/features/docs-app-build-config.backend.d.ts +19 -0
  390. package/lib/project/features/docs-app-build-config.backend.js +81 -0
  391. package/lib/project/features/docs-app-build-config.backend.js.map +1 -0
  392. package/lib/project/features/docs-provider.d.ts +9 -0
  393. package/lib/project/features/docs-provider.js +48 -0
  394. package/lib/project/features/docs-provider.js.map +1 -0
  395. package/lib/project/features/documentation-builder.d.ts +0 -0
  396. package/lib/project/features/documentation-builder.js +5 -0
  397. package/lib/project/features/documentation-builder.js.map +1 -0
  398. package/lib/project/features/environment-config/environment-config-helpers.d.ts +6 -0
  399. package/lib/project/features/environment-config/environment-config-helpers.js +197 -0
  400. package/lib/project/features/environment-config/environment-config-helpers.js.map +1 -0
  401. package/lib/project/features/environment-config/environment-config.d.ts +12 -0
  402. package/lib/project/features/environment-config/environment-config.js +117 -0
  403. package/lib/project/features/environment-config/environment-config.js.map +1 -0
  404. package/lib/project/features/environment-config/example-environment-config.d.ts +2 -0
  405. package/lib/project/features/environment-config/example-environment-config.js +26 -0
  406. package/lib/project/features/environment-config/example-environment-config.js.map +1 -0
  407. package/lib/project/features/files-recreation/files-factory.backend.d.ts +11 -0
  408. package/lib/project/features/files-recreation/files-factory.backend.js +64 -0
  409. package/lib/project/features/files-recreation/files-factory.backend.js.map +1 -0
  410. package/lib/project/features/files-recreation/files-recreator.d.ts +113 -0
  411. package/lib/project/features/files-recreation/files-recreator.js +661 -0
  412. package/lib/project/features/files-recreation/files-recreator.js.map +1 -0
  413. package/lib/project/features/files-recreation/files-templates.d.ts +8 -0
  414. package/lib/project/features/files-recreation/files-templates.js +129 -0
  415. package/lib/project/features/files-recreation/files-templates.js.map +1 -0
  416. package/lib/project/features/files-recreation/index.d.ts +3 -0
  417. package/lib/project/features/files-recreation/index.js +9 -0
  418. package/lib/project/features/files-recreation/index.js.map +1 -0
  419. package/lib/project/features/html-to-md.d.ts +1 -0
  420. package/lib/project/features/html-to-md.js +241 -0
  421. package/lib/project/features/html-to-md.js.map +1 -0
  422. package/lib/project/features/index-autogen-provider.backend.d.ts +14 -0
  423. package/lib/project/features/index-autogen-provider.backend.js +102 -0
  424. package/lib/project/features/index-autogen-provider.backend.js.map +1 -0
  425. package/lib/project/features/index.d.ts +12 -0
  426. package/lib/project/features/index.js +18 -0
  427. package/lib/project/features/index.js.map +1 -0
  428. package/lib/project/features/inside-structures/inside-struct.d.ts +43 -0
  429. package/lib/project/features/inside-structures/inside-struct.js +53 -0
  430. package/lib/project/features/inside-structures/inside-struct.js.map +1 -0
  431. package/lib/project/features/inside-structures/inside-structures.d.ts +11 -0
  432. package/lib/project/features/inside-structures/inside-structures.js +160 -0
  433. package/lib/project/features/inside-structures/inside-structures.js.map +1 -0
  434. package/lib/project/features/inside-structures/structs/base-inside-struct.d.ts +13 -0
  435. package/lib/project/features/inside-structures/structs/base-inside-struct.js +24 -0
  436. package/lib/project/features/inside-structures/structs/base-inside-struct.js.map +1 -0
  437. package/lib/project/features/inside-structures/structs/index.d.ts +2 -0
  438. package/lib/project/features/inside-structures/structs/index.js +6 -0
  439. package/lib/project/features/inside-structures/structs/index.js.map +1 -0
  440. package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.d.ts +6 -0
  441. package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +495 -0
  442. package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +1 -0
  443. package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.d.ts +6 -0
  444. package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js +240 -0
  445. package/lib/project/features/inside-structures/structs/inside-struct-angular13-lib.js.map +1 -0
  446. package/lib/project/features/inside-structures/structs/inside-struct-constants.d.ts +2 -0
  447. package/lib/project/features/inside-structures/structs/inside-struct-constants.js +6 -0
  448. package/lib/project/features/inside-structures/structs/inside-struct-constants.js.map +1 -0
  449. package/lib/project/features/inside-structures/structs/inside-struct-helpers.d.ts +12 -0
  450. package/lib/project/features/inside-structures/structs/inside-struct-helpers.js +128 -0
  451. package/lib/project/features/inside-structures/structs/inside-struct-helpers.js.map +1 -0
  452. package/lib/project/features/inside-structures/structs/loaders/image-loader.d.ts +1 -0
  453. package/lib/project/features/inside-structures/structs/loaders/image-loader.js +9 -0
  454. package/lib/project/features/inside-structures/structs/loaders/image-loader.js.map +1 -0
  455. package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.d.ts +1 -0
  456. package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js +10 -0
  457. package/lib/project/features/inside-structures/structs/loaders/loader-ids-default.js.map +1 -0
  458. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.d.ts +1 -0
  459. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js +10 -0
  460. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ellipsis.js.map +1 -0
  461. package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.d.ts +1 -0
  462. package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js +10 -0
  463. package/lib/project/features/inside-structures/structs/loaders/loader-ids-facebook.js.map +1 -0
  464. package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.d.ts +1 -0
  465. package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js +10 -0
  466. package/lib/project/features/inside-structures/structs/loaders/loader-ids-grid.js.map +1 -0
  467. package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.d.ts +1 -0
  468. package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js +10 -0
  469. package/lib/project/features/inside-structures/structs/loaders/loader-ids-heart.js.map +1 -0
  470. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.d.ts +1 -0
  471. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js +10 -0
  472. package/lib/project/features/inside-structures/structs/loaders/loader-ids-ripple.js.map +1 -0
  473. package/lib/project/features/inside-structures/structs/loaders/loaders.d.ts +1 -0
  474. package/lib/project/features/inside-structures/structs/loaders/loaders.js +27 -0
  475. package/lib/project/features/inside-structures/structs/loaders/loaders.js.map +1 -0
  476. package/lib/project/features/lib-project/lib-project-base.backend.d.ts +14 -0
  477. package/lib/project/features/lib-project/lib-project-base.backend.js +120 -0
  478. package/lib/project/features/lib-project/lib-project-base.backend.js.map +1 -0
  479. package/lib/project/features/lib-project/lib-project-smart-container.backend.d.ts +13 -0
  480. package/lib/project/features/lib-project/lib-project-smart-container.backend.js +320 -0
  481. package/lib/project/features/lib-project/lib-project-smart-container.backend.js.map +1 -0
  482. package/lib/project/features/lib-project/lib-project-standalone.backend.d.ts +13 -0
  483. package/lib/project/features/lib-project/lib-project-standalone.backend.js +269 -0
  484. package/lib/project/features/lib-project/lib-project-standalone.backend.js.map +1 -0
  485. package/lib/project/features/lib-project/lib-project-vscode-ext.d.ts +11 -0
  486. package/lib/project/features/lib-project/lib-project-vscode-ext.js +128 -0
  487. package/lib/project/features/lib-project/lib-project-vscode-ext.js.map +1 -0
  488. package/lib/project/features/linked-repos.backend.d.ts +19 -0
  489. package/lib/project/features/linked-repos.backend.js +198 -0
  490. package/lib/project/features/linked-repos.backend.js.map +1 -0
  491. package/lib/project/features/node-modules/index.d.ts +1 -0
  492. package/lib/project/features/node-modules/index.js +7 -0
  493. package/lib/project/features/node-modules/index.js.map +1 -0
  494. package/lib/project/features/node-modules/node-modules-helpers.backend.d.ts +3 -0
  495. package/lib/project/features/node-modules/node-modules-helpers.backend.js +159 -0
  496. package/lib/project/features/node-modules/node-modules-helpers.backend.js.map +1 -0
  497. package/lib/project/features/node-modules/node-modules.d.ts +29 -0
  498. package/lib/project/features/node-modules/node-modules.js +350 -0
  499. package/lib/project/features/node-modules/node-modules.js.map +1 -0
  500. package/lib/project/features/npm-packages/index.d.ts +1 -0
  501. package/lib/project/features/npm-packages/index.js +7 -0
  502. package/lib/project/features/npm-packages/index.js.map +1 -0
  503. package/lib/project/features/npm-packages/npm-packages-base.backend.d.ts +6 -0
  504. package/lib/project/features/npm-packages/npm-packages-base.backend.js +159 -0
  505. package/lib/project/features/npm-packages/npm-packages-base.backend.js.map +1 -0
  506. package/lib/project/features/npm-packages/npm-packages-core.backend.d.ts +15 -0
  507. package/lib/project/features/npm-packages/npm-packages-core.backend.js +166 -0
  508. package/lib/project/features/npm-packages/npm-packages-core.backend.js.map +1 -0
  509. package/lib/project/features/npm-packages/npm-packages-helpers.backend.d.ts +7 -0
  510. package/lib/project/features/npm-packages/npm-packages-helpers.backend.js +85 -0
  511. package/lib/project/features/npm-packages/npm-packages-helpers.backend.js.map +1 -0
  512. package/lib/project/features/npm-packages/npm-packages.d.ts +5 -0
  513. package/lib/project/features/npm-packages/npm-packages.js +72 -0
  514. package/lib/project/features/npm-packages/npm-packages.js.map +1 -0
  515. package/lib/project/features/package-json/index.d.ts +1 -0
  516. package/lib/project/features/package-json/index.js +5 -0
  517. package/lib/project/features/package-json/index.js.map +1 -0
  518. package/lib/project/features/package-json/package-json-base.backend.d.ts +31 -0
  519. package/lib/project/features/package-json/package-json-base.backend.js +157 -0
  520. package/lib/project/features/package-json/package-json-base.backend.js.map +1 -0
  521. package/lib/project/features/package-json/package-json-core.backend.d.ts +56 -0
  522. package/lib/project/features/package-json/package-json-core.backend.js +369 -0
  523. package/lib/project/features/package-json/package-json-core.backend.js.map +1 -0
  524. package/lib/project/features/package-json/package-json-deps-categories.backend.d.ts +17 -0
  525. package/lib/project/features/package-json/package-json-deps-categories.backend.js +145 -0
  526. package/lib/project/features/package-json/package-json-deps-categories.backend.js.map +1 -0
  527. package/lib/project/features/package-json/package-json-helpers.backend.d.ts +14 -0
  528. package/lib/project/features/package-json/package-json-helpers.backend.js +766 -0
  529. package/lib/project/features/package-json/package-json-helpers.backend.js.map +1 -0
  530. package/lib/project/features/package-json/package-json.d.ts +6 -0
  531. package/lib/project/features/package-json/package-json.js +66 -0
  532. package/lib/project/features/package-json/package-json.js.map +1 -0
  533. package/lib/project/features/package-recognition/packages-recognition.d.ts +13 -0
  534. package/lib/project/features/package-recognition/packages-recognition.js +187 -0
  535. package/lib/project/features/package-recognition/packages-recognition.js.map +1 -0
  536. package/lib/project/features/quick-fixes.d.ts +29 -0
  537. package/lib/project/features/quick-fixes.js +433 -0
  538. package/lib/project/features/quick-fixes.js.map +1 -0
  539. package/lib/project/features/singular-build.backend.d.ts +18 -0
  540. package/lib/project/features/singular-build.backend.js +375 -0
  541. package/lib/project/features/singular-build.backend.js.map +1 -0
  542. package/lib/project/features/target-project.backend.d.ts +10 -0
  543. package/lib/project/features/target-project.backend.js +189 -0
  544. package/lib/project/features/target-project.backend.js.map +1 -0
  545. package/lib/project/features/test-runner/cypress-test-runner.d.ts +7 -0
  546. package/lib/project/features/test-runner/cypress-test-runner.js +84 -0
  547. package/lib/project/features/test-runner/cypress-test-runner.js.map +1 -0
  548. package/lib/project/features/test-runner/index.d.ts +3 -0
  549. package/lib/project/features/test-runner/index.js +7 -0
  550. package/lib/project/features/test-runner/index.js.map +1 -0
  551. package/lib/project/features/test-runner/jest-test-runner.d.ts +8 -0
  552. package/lib/project/features/test-runner/jest-test-runner.js +69 -0
  553. package/lib/project/features/test-runner/jest-test-runner.js.map +1 -0
  554. package/lib/project/features/test-runner/mocha-test-runner.d.ts +7 -0
  555. package/lib/project/features/test-runner/mocha-test-runner.js +66 -0
  556. package/lib/project/features/test-runner/mocha-test-runner.js.map +1 -0
  557. package/lib/project/features/webpack-backend-compilation.backend.d.ts +14 -0
  558. package/lib/project/features/webpack-backend-compilation.backend.js +68 -0
  559. package/lib/project/features/webpack-backend-compilation.backend.js.map +1 -0
  560. package/lib/project/index.js +2 -2
  561. package/lib/taon-models.d.ts +72 -0
  562. package/migrations/1735324537544_pierwsza.d.ts +1 -0
  563. package/migrations/1735324537544_pierwsza.js +3 -0
  564. package/migrations/1735324537544_pierwsza.js.map +1 -0
  565. package/migrations/1735324809552_pierwsza.d.ts +6 -0
  566. package/migrations/1735324809552_pierwsza.js +33 -0
  567. package/migrations/1735324809552_pierwsza.js.map +1 -0
  568. package/migrations/1735324983861_druga.d.ts +6 -0
  569. package/migrations/1735324983861_druga.js +33 -0
  570. package/migrations/1735324983861_druga.js.map +1 -0
  571. package/migrations/1737301578918_addingSampleData.d.ts +32 -0
  572. package/migrations/1737301578918_addingSampleData.js +111 -0
  573. package/migrations/1737301578918_addingSampleData.js.map +1 -0
  574. package/package.json +1 -1
  575. package/tmp-environment.json +3 -3
  576. package/websql/fesm2022/tnp.mjs +2 -4
  577. package/websql/fesm2022/tnp.mjs.map +1 -1
  578. package/websql/lib/build-info._auto-generated_.d.ts +1 -1
  579. package/websql/lib/models.d.ts +9 -0
  580. package/websql/lib/project/abstract/artifacts/angular-node-app/artifact-angular-node-app.d.ts +0 -1
  581. package/websql/lib/project/abstract/artifacts/angular-node-app/tools/assets-manager.d.ts +1 -1
  582. package/websql/lib/project/abstract/artifacts/base-artifact.d.ts +1 -0
  583. package/websql/lib/project/abstract/artifacts/docs-webapp/artifact-docs-webapp.d.ts +1 -0
  584. package/websql/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/base-copy-manager.d.ts +1 -1
  585. package/websql/lib/project/abstract/git.d.ts +1 -0
  586. package/websql/lib/project/abstract/taonJson.d.ts +1 -0
  587. package/websql/package.json +1 -1
@@ -0,0 +1,788 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CopyManagerOrganization = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var tnp_config_1 = require("tnp-config");
6
+ var tnp_core_1 = require("tnp-core");
7
+ var tnp_helpers_1 = require("tnp-helpers");
8
+ var project_1 = require("../../abstract/project");
9
+ var copy_manager_helpers_backend_1 = require("./copy-manager-helpers.backend");
10
+ var copy_manager_organization_angular_files_backend_1 = require("./copy-manager-organization-angular-files.backend");
11
+ var copy_manager_standalone_backend_1 = require("./copy-manager-standalone.backend");
12
+ var CopyManagerOrganization = /** @class */ (function (_super) {
13
+ tslib_1.__extends(CopyManagerOrganization, _super);
14
+ function CopyManagerOrganization() {
15
+ return _super !== null && _super.apply(this, arguments) || this;
16
+ }
17
+ Object.defineProperty(CopyManagerOrganization.prototype, "targetProjName", {
18
+ //#region target project name
19
+ /**
20
+ * target name for organizaiton (smart container) build
21
+ */
22
+ get: function () {
23
+ return this.project.__smartContainerBuildTarget.name;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ Object.defineProperty(CopyManagerOrganization.prototype, "targetProjPath", {
29
+ //#endregion
30
+ //#region target project path
31
+ get: function () {
32
+ return (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.project.location, this.buildOptions.outDir, this.project.name, this.targetProjName));
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(CopyManagerOrganization.prototype, "targetProj", {
38
+ //#endregion
39
+ //#region target project
40
+ get: function () {
41
+ return project_1.Project.ins.From(this.targetProjPath);
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ //#endregion
47
+ //#region init
48
+ CopyManagerOrganization.prototype.init = function (buildOptions, renameDestinationFolder) {
49
+ _super.prototype.init.call(this, buildOptions, renameDestinationFolder);
50
+ this.children = this.getChildren();
51
+ this.angularCopyManger = new copy_manager_organization_angular_files_backend_1.CopyMangerOrganizationAngularFiles(this);
52
+ };
53
+ //#endregion
54
+ //#region recreate temp proj
55
+ CopyManagerOrganization.prototype.recreateTempProj = function () {
56
+ _super.prototype.recreateTempProj.call(this);
57
+ };
58
+ //#endregion
59
+ //#region _ copy builded distibutino to
60
+ CopyManagerOrganization.prototype._copyBuildedDistributionTo = function (destination, options) {
61
+ _super.prototype._copyBuildedDistributionTo.call(this, destination, options);
62
+ };
63
+ Object.defineProperty(CopyManagerOrganization.prototype, "localTempProjPath", {
64
+ //#endregion
65
+ //#region local temp proj path
66
+ get: function () {
67
+ var targetProjPath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProjPath, this.tempProjName));
68
+ return (0, tnp_core_1.crossPlatformPath)(targetProjPath);
69
+ },
70
+ enumerable: false,
71
+ configurable: true
72
+ });
73
+ Object.defineProperty(CopyManagerOrganization.prototype, "rootPackageName", {
74
+ //#endregion
75
+ //#region root package name
76
+ get: function () {
77
+ var rootPackageName = tnp_core_1._.isString(this.renameDestinationFolder) &&
78
+ this.renameDestinationFolder !== ''
79
+ ? this.renameDestinationFolder
80
+ : "@".concat(this.project.name);
81
+ return rootPackageName;
82
+ },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
86
+ Object.defineProperty(CopyManagerOrganization.prototype, "monitoredOutDir", {
87
+ //#endregion
88
+ //#region monitored out dir
89
+ get: function () {
90
+ var monitorDir = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProjPath, this.buildOptions.outDir));
91
+ return monitorDir;
92
+ },
93
+ enumerable: false,
94
+ configurable: true
95
+ });
96
+ Object.defineProperty(CopyManagerOrganization.prototype, "monitoredOutDirSharedAssets", {
97
+ //#endregion
98
+ //#region monitored out dir shared assets
99
+ get: function () {
100
+ var assetsFolders = this.project.children.map(function (c) {
101
+ var monitorDir = (0, tnp_core_1.crossPlatformPath)([
102
+ c.location,
103
+ tnp_config_1.config.folder.src,
104
+ tnp_config_1.config.folder.assets,
105
+ tnp_config_1.config.folder.shared,
106
+ ]);
107
+ return monitorDir;
108
+ });
109
+ return assetsFolders;
110
+ },
111
+ enumerable: false,
112
+ configurable: true
113
+ });
114
+ //#endregion
115
+ //#region get chhildren
116
+ CopyManagerOrganization.prototype.getChildren = function () {
117
+ var _this = this;
118
+ return tslib_1.__spreadArray([
119
+ this.project.children.find(function (c) { return c.name === _this.targetProjName; })
120
+ ], tslib_1.__read(this.project.children.filter(function (c) { return c.name !== _this.targetProjName; })), false).filter(function (f) { return !!f; });
121
+ };
122
+ //#endregion
123
+ //#region links for packages are ok
124
+ CopyManagerOrganization.prototype.linksForPackageAreOk = function (destination) {
125
+ var e_1, _a;
126
+ try {
127
+ for (var _b = tslib_1.__values(this.children), _c = _b.next(); !_c.done; _c = _b.next()) {
128
+ var child = _c.value;
129
+ var destPackageLinkSourceLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName, child.name, tnp_config_1.config.folder.src));
130
+ if (tnp_helpers_1.Helpers.exists(destPackageLinkSourceLocation)) {
131
+ return false;
132
+ }
133
+ }
134
+ }
135
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
136
+ finally {
137
+ try {
138
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
139
+ }
140
+ finally { if (e_1) throw e_1.error; }
141
+ }
142
+ return true;
143
+ };
144
+ //#endregion
145
+ //#region initial fix for destination pacakge
146
+ CopyManagerOrganization.prototype.initalFixForDestination = function (destination) {
147
+ var destPackageInNodeModules = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName));
148
+ for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
149
+ var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
150
+ var destPackageInNodeModulesBrowser = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, currentBrowserFolder));
151
+ try {
152
+ // TODO QUICK_FIX
153
+ tnp_helpers_1.Helpers.remove(destPackageInNodeModulesBrowser);
154
+ }
155
+ catch (error) { }
156
+ var children = this.children;
157
+ for (var index_1 = 0; index_1 < children.length; index_1++) {
158
+ var child = children[index_1];
159
+ // if (!child) {
160
+ // debugger
161
+ // }
162
+ var childDestPackageInNodeModules = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(child)));
163
+ var childDestPackageInNodeModulesBrowser = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destPackageInNodeModules, copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(child), currentBrowserFolder));
164
+ if (tnp_helpers_1.Helpers.isSymlinkFileExitedOrUnexisted(childDestPackageInNodeModules)) {
165
+ tnp_helpers_1.Helpers.removeFileIfExists(childDestPackageInNodeModules);
166
+ }
167
+ if (!tnp_helpers_1.Helpers.exists(childDestPackageInNodeModules)) {
168
+ try {
169
+ // TODO QUICK_FIX
170
+ tnp_helpers_1.Helpers.mkdirp(childDestPackageInNodeModules);
171
+ }
172
+ catch (error) { }
173
+ }
174
+ if (tnp_helpers_1.Helpers.isSymlinkFileExitedOrUnexisted(childDestPackageInNodeModulesBrowser)) {
175
+ tnp_helpers_1.Helpers.removeFileIfExists(childDestPackageInNodeModulesBrowser);
176
+ }
177
+ if (!tnp_helpers_1.Helpers.exists(childDestPackageInNodeModulesBrowser)) {
178
+ try {
179
+ // TODO QUICK_FIX
180
+ tnp_helpers_1.Helpers.mkdirp(childDestPackageInNodeModulesBrowser);
181
+ }
182
+ catch (error) { }
183
+ }
184
+ }
185
+ }
186
+ };
187
+ //#endregion
188
+ //#region transform map files
189
+ CopyManagerOrganization.prototype.changedJsMapFilesInternalPathesForDebug = function (content, isBrowser, isForLaunchJsonDebugging, absFilePath) {
190
+ if (!content ||
191
+ (!absFilePath.endsWith('.js.map') && !absFilePath.endsWith('.mjs.map'))) {
192
+ // Helpers.warn(`[copytomanager] Empty content for ${absFilePath}`);
193
+ return content;
194
+ }
195
+ // console.log({ fixing: absFilePath })
196
+ if (isBrowser) {
197
+ // TODO is angular maps not working in chrome debugger (the did not work whe switch lazy modules)
198
+ // content = content.replace(regex1, `"./${config.folder.src}`);
199
+ // content = content.replace(regex2, config.folder.src);
200
+ }
201
+ else {
202
+ if (isForLaunchJsonDebugging) {
203
+ // files is in dist or container target project
204
+ // I am not allowing organizaition as cli tool
205
+ var relative = (0, tnp_core_1.crossPlatformPath)(absFilePath).replace("".concat(this.monitoredOutDir, "/"), '');
206
+ if (this.isForSpecyficTargetCompilation(relative)) {
207
+ var toReplaceString2 = "../tmp-source-".concat(this.buildOptions.outDir);
208
+ // let toReplaceString1 = `"${toReplaceString2}`;
209
+ var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2), 'g');
210
+ // console.log(`[changeamp] relative: ${relative}`)
211
+ content = content.replace(regex2, "../../../../".concat(this.targetProjName, "/").concat(tnp_config_1.config.folder.src));
212
+ // console.log({ absFilePathTARGET: absFilePath })
213
+ }
214
+ else {
215
+ var childName = relative.startsWith(tnp_config_1.config.folder.libs)
216
+ ? tnp_core_1._.first(relative.split('/').slice(1))
217
+ : void 0;
218
+ var toReplaceString2 = "../tmp-source-".concat(this.buildOptions.outDir, "/").concat(tnp_config_1.config.folder.libs, "/").concat(childName);
219
+ var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2), 'g');
220
+ // let toReplaceString1 = `"${toReplaceString2}`;
221
+ // console.log(`[changeamp]
222
+ // childName: ${childName} relative: ${relative}`)
223
+ if (childName) {
224
+ content = content.replace(regex2, "../../../../".concat(childName, "/").concat(tnp_config_1.config.folder.src, "/").concat(tnp_config_1.config.folder.lib));
225
+ }
226
+ else {
227
+ // don not modify anything
228
+ }
229
+ // console.log({ absFilePathLIBS: absFilePath })
230
+ }
231
+ }
232
+ else {
233
+ // debugging inside someone else project/node_modules/<pacakge>
234
+ var toReplaceString2 = isBrowser
235
+ ? "../tmp-".concat(tnp_config_1.config.folder.libs, "-for-").concat(this.buildOptions.outDir, "/").concat(this.project.name, "/projects/").concat(this.project.name, "/").concat(tnp_config_1.config.folder.src)
236
+ : "../../../tmp-".concat(tnp_config_1.config.folder.source, "-").concat(this.buildOptions.outDir);
237
+ var toReplaceString1 = "\"".concat(toReplaceString2);
238
+ var addon = "/".concat(tnp_config_1.config.folder.libs, "/(").concat(this.children
239
+ .map(function (c) {
240
+ return tnp_helpers_1.Helpers.escapeStringForRegEx(copy_manager_helpers_backend_1.CopyMangerHelpers.childPureName(c));
241
+ })
242
+ .join('|'), ")");
243
+ var regex1 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString1) + addon, 'g');
244
+ var regex2 = new RegExp(tnp_helpers_1.Helpers.escapeStringForRegEx(toReplaceString2) + addon, 'g');
245
+ content = content.replace(regex1, "\"./".concat(tnp_config_1.config.folder.src));
246
+ content = content.replace(regex2, "".concat(tnp_config_1.config.folder.src));
247
+ }
248
+ }
249
+ content = this.sourceMapContentFix(content, isBrowser, absFilePath);
250
+ return content;
251
+ };
252
+ //#endregion
253
+ //#region source map content fix
254
+ CopyManagerOrganization.prototype.sourceMapContentFix = function (content, isBrowser, absFilePath) {
255
+ var _this = this;
256
+ if (
257
+ // process.platform === 'win32' &&
258
+ !isBrowser) {
259
+ var json = JSON.parse(content);
260
+ if (json) {
261
+ json.sources = (json.sources || []).map(function (pathToJoin) {
262
+ if (_this.targetProj.isInCiReleaseProject) {
263
+ return '';
264
+ }
265
+ var dirnameAbs = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.dirname(absFilePath));
266
+ var resolved = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.resolve(dirnameAbs, pathToJoin.startsWith('./')
267
+ ? pathToJoin.replace('./', '')
268
+ : pathToJoin));
269
+ var children = _this.children;
270
+ var _loop_1 = function (index) {
271
+ var child = children[index];
272
+ // rule 1
273
+ (function () {
274
+ var localProjFolderName = "/".concat(_this.buildOptions.outDir, "/").concat(_this.project.name, "/").concat(child.name, "/tmp-source-").concat(_this.buildOptions.outDir, "/");
275
+ if (resolved.includes(localProjFolderName)) {
276
+ resolved = resolved.replace(localProjFolderName, "/".concat(child.name, "/src/"));
277
+ }
278
+ })();
279
+ // rule 2
280
+ (function () {
281
+ var ifFromLocal = "/".concat(_this.buildOptions.outDir, "/").concat(_this.project.name, "/").concat(child.name, "/tmp-local-copyto-proj-") +
282
+ "".concat(_this.buildOptions.outDir, "/").concat(tnp_config_1.config.folder.node_modules, "/").concat(_this.rootPackageName, "/");
283
+ if (resolved.includes(ifFromLocal)) {
284
+ var _a = tslib_1.__read(resolved
285
+ .replace(_this.project.location, '')
286
+ .replace(ifFromLocal, '')
287
+ .split('/'), 1), child_1 = _a[0];
288
+ // console.log('child: ' + child)
289
+ resolved = resolved
290
+ .replace(ifFromLocal, "/")
291
+ .replace("".concat(_this.project.location, "/").concat(child_1, "/src/"), "".concat(_this.project.location, "/").concat(child_1, "/src/lib/"));
292
+ }
293
+ })();
294
+ // rule 3
295
+ (function () {
296
+ var isFromNonTarget = "/-/".concat(child.name, "/");
297
+ if (resolved.includes(isFromNonTarget)) {
298
+ // const toRep = `/${config.folder.src}/-/`;
299
+ var _a = tslib_1.__read(resolved.split(isFromNonTarget), 2), __ = _a[0], relative = _a[1];
300
+ // console.log(`relative "${relative}"`)
301
+ var child_2 = tnp_core_1.path.basename(resolved.replace(relative, ''));
302
+ // console.log(`CHILD "${child}"`)
303
+ // const relative = resolved.replace(this.project.location, '').split('/').slice(4).join('/');
304
+ resolved = (0, tnp_core_1.crossPlatformPath)([
305
+ _this.project.location,
306
+ child_2,
307
+ tnp_config_1.config.folder.src,
308
+ relative,
309
+ ]);
310
+ }
311
+ })();
312
+ };
313
+ for (var index = 0; index < children.length; index++) {
314
+ _loop_1(index);
315
+ }
316
+ return resolved;
317
+ });
318
+ }
319
+ content = JSON.stringify(json);
320
+ }
321
+ return content;
322
+ };
323
+ //#endregion
324
+ //#region write specyfic for child dts files
325
+ /**
326
+ * final copy from dist to node_moules/rootpackagename
327
+ */
328
+ CopyManagerOrganization.prototype.writeSpecyficForChildDtsFiles = function (destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser) {
329
+ var pkgLocInDestNodeModulesForChildBrowser = destination.__node_modules.pathFor(rootPackageNameForChildBrowser);
330
+ var filter = tnp_helpers_1.Helpers.filterDontCopy(this.sourceFolders, monitorDirForModuleBrowser);
331
+ // console.log('COPY', {
332
+ // monitorDirForModuleBrowser, pkgLocInDestNodeModulesForChildBrowser
333
+ // })
334
+ this.removeSourceLinksFolders(pkgLocInDestNodeModulesForChildBrowser);
335
+ tnp_helpers_1.Helpers.copy(monitorDirForModuleBrowser, pkgLocInDestNodeModulesForChildBrowser, {
336
+ copySymlinksAsFiles: false,
337
+ filter: filter,
338
+ });
339
+ };
340
+ //#endregion
341
+ //#region child package name
342
+ /**
343
+ * example: '@angular/core'
344
+ */
345
+ CopyManagerOrganization.prototype.childPackageName = function (child) {
346
+ return (0, tnp_core_1.crossPlatformPath)([this.rootPackageName, child.name]);
347
+ };
348
+ //#endregion
349
+ //#region root pacakge name for child + browser
350
+ /**
351
+ * example: '@angular/core/(browser|websql)'
352
+ */
353
+ CopyManagerOrganization.prototype.rootPackageNameForChildBrowser = function (child, currentBrowserFolder) {
354
+ return (0, tnp_core_1.crossPlatformPath)([
355
+ this.childPackageName(child),
356
+ currentBrowserFolder,
357
+ ]);
358
+ };
359
+ //#endregion
360
+ //#region fixes for dts child files
361
+ CopyManagerOrganization.prototype.fixesForChildDtsFile = function (destination, isTempLocalProj, child, currentBrowserFolder) {
362
+ // ex. @anguar/code/browser or @anguar/code/websql
363
+ var rootPackageNameForChildBrowser = this.rootPackageNameForChildBrowser(child, currentBrowserFolder);
364
+ if (child.name === this.targetProjName) {
365
+ // target is in lib.... -> no need for target also being in libs
366
+ var monitorDirForModuleBrowser = isTempLocalProj //
367
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, currentBrowserFolder, tnp_config_1.config.folder.lib))
368
+ : this.localTempProj.__node_modules.pathFor(rootPackageNameForChildBrowser);
369
+ if (isTempLocalProj) {
370
+ // when destination === tmp-local-proj => fix d.ts imports in (dist)
371
+ this.dtsFixer.processFolder(monitorDirForModuleBrowser, currentBrowserFolder);
372
+ }
373
+ this.writeSpecyficForChildDtsFiles(destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser);
374
+ }
375
+ else {
376
+ var monitorDirForModuleBrowser = isTempLocalProj //
377
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, currentBrowserFolder, tnp_config_1.config.folder.libs, child.name))
378
+ : this.localTempProj.__node_modules.pathFor(rootPackageNameForChildBrowser);
379
+ if (isTempLocalProj) {
380
+ // when destination === tmp-local-proj => fix d.ts imports in (dist)
381
+ this.dtsFixer.processFolder(monitorDirForModuleBrowser, currentBrowserFolder);
382
+ }
383
+ this.writeSpecyficForChildDtsFiles(destination, rootPackageNameForChildBrowser, monitorDirForModuleBrowser);
384
+ }
385
+ };
386
+ //#endregion
387
+ //#region copy compiled source and declaration (browser)
388
+ /**
389
+ * Problem here: spliting es2022, esfm2015 to modules
390
+ */
391
+ CopyManagerOrganization.prototype.copyCompiledSourcesAndDeclarationsBrowsersFolders = function (destination, isTempLocalProj) {
392
+ var _this = this;
393
+ // TODO LAST copy app.ts
394
+ for (var index = 0; index < this.children.length; index++) {
395
+ //#region prepare variables
396
+ var child = this.children[index];
397
+ this.angularCopyManger.fixPackageJson(child, destination);
398
+ for (var index_2 = 0; index_2 < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index_2++) {
399
+ var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index_2];
400
+ this.fixesForChildDtsFile(destination, isTempLocalProj, child, currentBrowserFolder);
401
+ this.angularCopyManger.fixPackageJson(child, destination, currentBrowserFolder);
402
+ this.angularCopyManger.fixBuildRelatedFiles(child, destination, currentBrowserFolder);
403
+ //#endregion
404
+ }
405
+ }
406
+ var _loop_2 = function (index) {
407
+ var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
408
+ copy_manager_helpers_backend_1.CopyMangerHelpers.angularBrowserComiplationFoldersArr.forEach(function (angularCompilationFolder) {
409
+ _this.angularCopyManger.actionForFolder(destination, isTempLocalProj, currentBrowserFolder, angularCompilationFolder);
410
+ });
411
+ };
412
+ for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
413
+ _loop_2(index);
414
+ }
415
+ };
416
+ //#endregion
417
+ //#region files for specyfic target
418
+ CopyManagerOrganization.prototype.isForSpecyficTargetCompilation = function (specyficFileRelativePath) {
419
+ specyficFileRelativePath = (0, tnp_core_1.crossPlatformPath)(specyficFileRelativePath).replace(/^\//, '');
420
+ var shouldNotStartWith = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders), false), [
421
+ tnp_config_1.config.folder.libs,
422
+ tnp_config_1.config.folder.node_modules,
423
+ tnp_config_1.config.folder.src,
424
+ ], false);
425
+ for (var index = 0; index < shouldNotStartWith.length; index++) {
426
+ var folder = shouldNotStartWith[index];
427
+ if (specyficFileRelativePath.startsWith(folder)) {
428
+ return false;
429
+ }
430
+ }
431
+ return true;
432
+ };
433
+ CopyManagerOrganization.prototype.filesForSpecyficTarget = function () {
434
+ var _this = this;
435
+ var base = this.monitoredOutDir;
436
+ var appFiles = tnp_helpers_1.Helpers.filesFrom([base, tnp_config_1.config.folder.app], true);
437
+ var libFiles = tnp_helpers_1.Helpers.filesFrom([base, tnp_config_1.config.folder.lib], true);
438
+ var otherLibsApps = this.children
439
+ .filter(function (c) { return c.name !== _this.targetProjName; })
440
+ .map(function (c) {
441
+ var baseName = (0, tnp_core_1.crossPlatformPath)([base, '-', c.name]);
442
+ // console.log(baseName)
443
+ return tnp_helpers_1.Helpers.exists(baseName)
444
+ ? tnp_helpers_1.Helpers.filesFrom(baseName, true)
445
+ : [];
446
+ })
447
+ .reduce(function (a, b) {
448
+ return a.concat(b);
449
+ }, []);
450
+ // TODO add for children
451
+ var appFlatFiles = tnp_helpers_1.Helpers.filesFrom(base);
452
+ var allFiles = tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(appFiles), false), tslib_1.__read(libFiles), false), tslib_1.__read(appFlatFiles), false), tslib_1.__read(otherLibsApps), false);
453
+ return allFiles;
454
+ };
455
+ //#endregion
456
+ //#region fix additonal files and folder
457
+ CopyManagerOrganization.prototype.fixAdditonalFilesAndFolders = function (destination) {
458
+ var _this = this;
459
+ var additonakFiles = this.filesForSpecyficTarget();
460
+ // console.log({
461
+ // additonakFiles
462
+ // })
463
+ additonakFiles.forEach(function (specyficFileAbsPath) {
464
+ var specyficFileRelativePath = specyficFileAbsPath.replace("".concat(_this.monitoredOutDir, "/"), '');
465
+ // if (specyficFileRelativePath.endsWith('.d.ts')) {
466
+ // CopyMangerHelpers.browserwebsqlFolders.forEach(currentBrowserFolder => {
467
+ // const dtsFileAbsolutePath = crossPlatformPath(path.join(this.monitoredOutDir, specyficFileRelativePath));
468
+ // this.dtsFixer.forFile(
469
+ // dtsFileAbsolutePath,
470
+ // currentBrowserFolder,
471
+ // );
472
+ // });
473
+ // } else if (specyficFileRelativePath.endsWith('.js.map')) {
474
+ _this.writeFixedMapFile(true, specyficFileRelativePath, _this.monitoredOutDir);
475
+ _this.writeFixedMapFile(false, specyficFileRelativePath, _this.monitoredOutDir);
476
+ // }
477
+ });
478
+ };
479
+ //#endregion
480
+ //#region replace d.ts files in destination after copy
481
+ CopyManagerOrganization.prototype.replaceIndexDtsForEntryPorjIndex = function (destination) {
482
+ var children = this.getChildren();
483
+ for (var index = 0; index < children.length; index++) {
484
+ var child = children[index];
485
+ var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
486
+ var location_1 = destination.__node_modules.pathFor(rootPackageNameForChild);
487
+ tnp_helpers_1.Helpers.writeFile(tnp_core_1.path.join(
488
+ // override dts to easly debugging
489
+ location_1, tnp_config_1.config.file.index_d_ts), "export * from './".concat(tnp_config_1.config.folder.src, "';\n"));
490
+ }
491
+ };
492
+ //#endregion
493
+ //#region copy compiled sources and declarations
494
+ CopyManagerOrganization.prototype.copyCompiledSourcesAndDeclarations = function (destination, isTempLocalProj) {
495
+ if (isTempLocalProj) {
496
+ this.fixAdditonalFilesAndFolders(destination);
497
+ }
498
+ for (var index = 0; index < this.children.length; index++) {
499
+ var child = this.children[index];
500
+ var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
501
+ var monitorDirForModule = isTempLocalProj //
502
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, tnp_config_1.config.folder.libs, child.name))
503
+ : this.localTempProj.__node_modules.pathFor(rootPackageNameForChild);
504
+ // if (isTempLocalProj) { // when destination === tmp-local-proj => fix d.ts imports in (dist)
505
+ // this.dtsFixer.processFolderWithBrowserWebsqlFolders(monitorDirForModule); // no need for fixing backend
506
+ // }
507
+ //#region final copy from dist to node_moules/rootpackagename
508
+ var pkgLocInDestNodeModulesForChild = destination.__node_modules.pathFor(rootPackageNameForChild);
509
+ var filter = tnp_helpers_1.Helpers.filterDontCopy(this.sourceFolders, monitorDirForModule);
510
+ this.removeSourceLinksFolders(pkgLocInDestNodeModulesForChild);
511
+ tnp_helpers_1.Helpers.copy(monitorDirForModule, pkgLocInDestNodeModulesForChild, {
512
+ copySymlinksAsFiles: process.platform === 'win32',
513
+ filter: filter,
514
+ });
515
+ //#endregion
516
+ }
517
+ this.copyCompiledSourcesAndDeclarationsBrowsersFolders(destination, isTempLocalProj);
518
+ this.replaceIndexDtsFilesRootLevel(destination);
519
+ };
520
+ //#endregion
521
+ //#region replace d.ts files in destination after copy
522
+ CopyManagerOrganization.prototype.replaceIndexDtsFilesRootLevel = function (destination) {
523
+ tnp_helpers_1.Helpers.writeFile(tnp_core_1.path.join(destination.location, tnp_config_1.config.folder.node_modules, this.rootPackageName, tnp_config_1.config.file.index_d_ts), "// Plase use: import { < anything > } from '@".concat(this.project.name, "/<").concat(this.children.map(function (c) { return c.name; }).join('|'), ">';\n"));
524
+ };
525
+ //#endregion
526
+ //#region source for child
527
+ CopyManagerOrganization.prototype.sourcePathToLinkFor = function (child) {
528
+ var sourceToLink = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.project.location, child.name, tnp_config_1.config.folder.src, tnp_config_1.config.folder.lib));
529
+ return sourceToLink;
530
+ };
531
+ //#endregion
532
+ //#region destination packge link source (usuall 'src' folder) location
533
+ /**
534
+ * source folder locaiton
535
+ */
536
+ CopyManagerOrganization.prototype.destPackageLinkSourceLocation = function (destination, child, currentBrowserFolder) {
537
+ var destPackageLinkSourceLocation = currentBrowserFolder
538
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), currentBrowserFolder, tnp_config_1.config.folder.source))
539
+ : (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), tnp_config_1.config.folder.source));
540
+ return destPackageLinkSourceLocation;
541
+ };
542
+ /**
543
+ *'src.d.ts location
544
+ */
545
+ CopyManagerOrganization.prototype.destPackageLinkSourceSrcDtsLocation = function (destination, child, currentBrowserFolder) {
546
+ var destPackageLinkSourceLocation = currentBrowserFolder
547
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), currentBrowserFolder, 'src.d.ts'))
548
+ : (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.__node_modules.pathFor(this.childPackageName(child)), 'src.d.ts'));
549
+ return destPackageLinkSourceLocation;
550
+ };
551
+ //#endregion
552
+ //#region add source symlinks
553
+ CopyManagerOrganization.prototype.addSourceSymlinks = function (destination) {
554
+ for (var index = 0; index < this.children.length; index++) {
555
+ var child = this.children[index];
556
+ var source = this.destPackageLinkSourceLocation(destination, child);
557
+ var srcDts = this.destPackageLinkSourceSrcDtsLocation(destination, child);
558
+ var childLibLocation = this.sourcePathToLinkFor(child);
559
+ tnp_helpers_1.Helpers.removeIfExists(source);
560
+ tnp_helpers_1.Helpers.createSymLink(childLibLocation, source);
561
+ tnp_helpers_1.Helpers.writeFile(srcDts, "\n // THIS FILE IS GENERATED\n export * from './source';\n // THIS FILE IS GENERATED\n // please use command: taon build:watch to see here links for your globally builded lib code files\n // THIS FILE IS GENERATED\n ".trimStart());
562
+ }
563
+ };
564
+ //#endregion
565
+ //#region remove source symlinks
566
+ CopyManagerOrganization.prototype.removeSourceSymlinks = function (destination) {
567
+ for (var index = 0; index < this.children.length; index++) {
568
+ var child = this.children[index];
569
+ // source
570
+ var source = this.destPackageLinkSourceLocation(destination, child);
571
+ var srcDts = this.destPackageLinkSourceSrcDtsLocation(destination, child);
572
+ tnp_helpers_1.Helpers.writeFile(srcDts, "\n// THIS FILE IS GENERATED\nexport * from './lib';\n// THIS FILE IS GENERATED\n// please use command: taon build:watch to see here links for your globally builded lib code files\n// THIS FILE IS GENERATED\n ".trimStart());
573
+ tnp_helpers_1.Helpers.removeIfExists(source);
574
+ }
575
+ };
576
+ //#endregion
577
+ //#region fix backend and browser js map files in local project
578
+ CopyManagerOrganization.prototype.fixBackendAndBrowserJsMapFilesInLocalProj = function () {
579
+ for (var index = 0; index < this.children.length; index++) {
580
+ var child = this.children[index];
581
+ var destinationPackageLocation = this.localTempProj.__node_modules.pathFor(this.childPackageName(child));
582
+ for (var index_3 = 0; index_3 < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index_3++) {
583
+ var currentBrowserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index_3];
584
+ this.fixJsMapFiles(destinationPackageLocation, currentBrowserFolder);
585
+ }
586
+ this.fixJsMapFiles(destinationPackageLocation);
587
+ }
588
+ };
589
+ //#endregion
590
+ //#region copy backend and browser js map files from local project to destination
591
+ CopyManagerOrganization.prototype.copyBackendAndBrowserJsMapFilesFromLocalProjTo = function (destination) {
592
+ var destinationPackageLocation = this.localTempProj.__node_modules.pathFor(this.rootPackageName);
593
+ this.copyMapFilesesFromLocalToCopyToProj(destination, destinationPackageLocation);
594
+ };
595
+ //#endregion
596
+ //#region write fixed map file for cli
597
+ CopyManagerOrganization.prototype.writeFixedMapFileForCli = function (isForBrowser, specyficFileRelativePath, destinationPackageLocation) {
598
+ // TODO QUICK FIX
599
+ if ((0, tnp_core_1.crossPlatformPath)(destinationPackageLocation) ==
600
+ this.targetProj.pathFor(this.buildOptions.outDir)) {
601
+ _super.prototype.writeFixedMapFileForCli.call(this, isForBrowser, specyficFileRelativePath, destinationPackageLocation);
602
+ return;
603
+ }
604
+ var childName = destinationPackageLocation.replace("".concat(this.localTempProj.__node_modules.pathFor(this.rootPackageName), "/"), '');
605
+ var child = this.children.find(function (c) { return c.name === childName; });
606
+ if (!child) {
607
+ childName = tnp_core_1._.first(destinationPackageLocation.split('/').splice(-2));
608
+ child = this.children.find(function (c) { return c.name === childName; });
609
+ }
610
+ var monitoredOutDirFileToReplaceBack = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.pathFor(this.buildOptions.outDir), tnp_config_1.config.folder.libs, childName, specyficFileRelativePath));
611
+ // console.log(`tryingfix: ${monitoredOutDirFileToReplaceBack}
612
+ // "${destinationPackageLocation}" "${specyficFileRelativePath}" child: ${childName}`)
613
+ if (!child) {
614
+ _super.prototype.writeFixedMapFileForCli.call(this, isForBrowser, specyficFileRelativePath, destinationPackageLocation);
615
+ return;
616
+ }
617
+ if (tnp_helpers_1.Helpers.exists(monitoredOutDirFileToReplaceBack)) {
618
+ var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(monitoredOutDirFileToReplaceBack), isForBrowser, true, monitoredOutDirFileToReplaceBack);
619
+ tnp_helpers_1.Helpers.writeFile(monitoredOutDirFileToReplaceBack, fixedContentCLIDebug);
620
+ }
621
+ };
622
+ //#endregion
623
+ //#region handle copy of single file
624
+ //#region handle copy of single file / from child from libs
625
+ CopyManagerOrganization.prototype.handleCopyOfSingleFileForChildFromLibs = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive, specialReplace) {
626
+ if (specialReplace === void 0) { specialReplace = tnp_config_1.config.folder.libs; }
627
+ var specialAppFilesMode = specialReplace === '-';
628
+ var orgSpecyficFileRelativePath = specyficFileRelativePath;
629
+ var distLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, this.buildOptions.outDir));
630
+ var absOrgFilePathInDist = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(distLocation, orgSpecyficFileRelativePath)));
631
+ var childName = tnp_core_1._.first(specyficFileRelativePath.split('/').slice(1));
632
+ var child = this.children.find(function (c) { return c.name === childName; });
633
+ if (!child) {
634
+ tnp_helpers_1.Helpers.warn("NO CHILD FOR ".concat(specyficFileRelativePath));
635
+ return;
636
+ }
637
+ specyficFileRelativePath = specyficFileRelativePath.replace("".concat(specialReplace, "/").concat(childName, "/"), '');
638
+ var rootPackageNameForChild = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName, child.name));
639
+ tnp_helpers_1.Helpers.log("Handle single file: ".concat(specyficFileRelativePath, " for ").concat(rootPackageNameForChild));
640
+ if (!wasRecrusive) {
641
+ this.preventWeakDetectionOfchanges(orgSpecyficFileRelativePath, destination, isTempLocalProj);
642
+ }
643
+ var destinationFilePath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(destination.__node_modules.pathFor(rootPackageNameForChild), specyficFileRelativePath)));
644
+ if (!isTempLocalProj && !specialAppFilesMode) {
645
+ var readyToCopyFileInLocalTempProj = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.localTempProj.__node_modules.pathFor(rootPackageNameForChild), specyficFileRelativePath));
646
+ // Helpers.log(`Eqal content with temp proj: ${}`)
647
+ if (tnp_helpers_1.Helpers.exists(readyToCopyFileInLocalTempProj)) {
648
+ // TODO QUICK_FIX when creating empty file
649
+ tnp_helpers_1.Helpers.copyFile(readyToCopyFileInLocalTempProj, destinationFilePath);
650
+ }
651
+ return;
652
+ }
653
+ // TODO QUICK_FIOX DISTINC WHEN IT COM FROM BROWSER
654
+ // and do not allow
655
+ if (destinationFilePath.endsWith('d.ts')) {
656
+ var newAbsOrgFilePathInDist = absOrgFilePathInDist.replace("/".concat(this.targetProjName, "/").concat(this.buildOptions.outDir, "/").concat(orgSpecyficFileRelativePath), "/".concat(this.targetProjName, "/").concat(this.buildOptions.outDir, "-nocutsrc/").concat(orgSpecyficFileRelativePath));
657
+ if (!tnp_helpers_1.Helpers.exists(newAbsOrgFilePathInDist)) {
658
+ tnp_helpers_1.Helpers.log("[copyto] New path does not exists or in browser | websql: ".concat(newAbsOrgFilePathInDist));
659
+ }
660
+ else {
661
+ absOrgFilePathInDist = newAbsOrgFilePathInDist;
662
+ }
663
+ }
664
+ this.fixDtsImportsWithWronPackageName(absOrgFilePathInDist, destinationFilePath);
665
+ var isBackendMapsFile = destinationFilePath.endsWith('.js.map');
666
+ var isBrowserMapsFile = destinationFilePath.endsWith('.mjs.map');
667
+ if (isBackendMapsFile || isBrowserMapsFile) {
668
+ if (isBackendMapsFile) {
669
+ if (specialAppFilesMode) {
670
+ var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist), false, true, absOrgFilePathInDist);
671
+ tnp_helpers_1.Helpers.writeFile(absOrgFilePathInDist, fixedContentCLIDebug);
672
+ }
673
+ else {
674
+ this.writeFixedMapFile(false, specyficFileRelativePath, destination.__node_modules.pathFor(rootPackageNameForChild));
675
+ }
676
+ }
677
+ if (isBrowserMapsFile) {
678
+ if (specialAppFilesMode) {
679
+ var fixedContentCLIDebug = this.changedJsMapFilesInternalPathesForDebug(tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist), false, true, absOrgFilePathInDist);
680
+ tnp_helpers_1.Helpers.writeFile(absOrgFilePathInDist, fixedContentCLIDebug);
681
+ }
682
+ else {
683
+ this.writeFixedMapFile(true, specyficFileRelativePath, destination.__node_modules.pathFor(rootPackageNameForChild));
684
+ }
685
+ }
686
+ }
687
+ else {
688
+ tnp_helpers_1.Helpers.writeFile(destinationFilePath, tnp_helpers_1.Helpers.readFile(absOrgFilePathInDist) || '');
689
+ }
690
+ };
691
+ //#endregion
692
+ //#region handle copy of single file / from app or root of (dist)
693
+ CopyManagerOrganization.prototype.handleCopyOfSingleFileFromAppAndRoot = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive) {
694
+ var orgSpecyficFileRelativePath = specyficFileRelativePath;
695
+ var distLocation = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, this.buildOptions.outDir));
696
+ var absOrgFilePathInDist = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.normalize(tnp_core_1.path.join(distLocation, orgSpecyficFileRelativePath)));
697
+ var isBackendMapsFileAppJS = specyficFileRelativePath.endsWith('.js.map');
698
+ var isBrowserMapsFileAppJS = specyficFileRelativePath.endsWith('.mjs.map');
699
+ // this.fixDtsImportsWithWronPackageName(
700
+ // absOrgFilePathInDist,
701
+ // absOrgFilePathInDist,
702
+ // );
703
+ if (isBackendMapsFileAppJS || isBrowserMapsFileAppJS) {
704
+ if (isBackendMapsFileAppJS) {
705
+ this.writeFixedMapFile(false, specyficFileRelativePath, distLocation);
706
+ }
707
+ if (isBrowserMapsFileAppJS) {
708
+ this.writeFixedMapFile(true, specyficFileRelativePath, distLocation);
709
+ }
710
+ }
711
+ };
712
+ //#endregion
713
+ //#region handle copy of single file / from non target apps
714
+ CopyManagerOrganization.prototype.handleCopyOfSingleFileFromNonTargetFiles = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive) {
715
+ this.handleCopyOfSingleFileForChildFromLibs(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive, '-');
716
+ };
717
+ //#endregion
718
+ CopyManagerOrganization.prototype.handleCopyOfAssetFile = function (absoluteAssetFilePath, destination) {
719
+ absoluteAssetFilePath = (0, tnp_core_1.crossPlatformPath)(absoluteAssetFilePath);
720
+ var monitoredOutDirSharedAssets = this.monitoredOutDirSharedAssets;
721
+ for (var index = 0; index < monitoredOutDirSharedAssets.length; index++) {
722
+ var folderAssetsShareAbsPath = (0, tnp_core_1.crossPlatformPath)(monitoredOutDirSharedAssets[index]);
723
+ if (absoluteAssetFilePath.startsWith(folderAssetsShareAbsPath)) {
724
+ var relativePath = absoluteAssetFilePath.replace("".concat(folderAssetsShareAbsPath, "/"), '');
725
+ var childName = absoluteAssetFilePath
726
+ .replace("".concat(this.project.location, "/"), '')
727
+ .replace("/".concat(tnp_config_1.config.folder.src, "/").concat(tnp_config_1.config.folder.assets, "/").concat(tnp_config_1.config.folder.shared, "/").concat(relativePath), '');
728
+ var dest = destination.__node_modules.pathFor("".concat(this.rootPackageName, "/").concat(childName, "/").concat(tnp_config_1.config.folder.assets, "/").concat(tnp_config_1.config.folder.shared, "/").concat(relativePath));
729
+ tnp_helpers_1.Helpers.remove(dest, true);
730
+ if (tnp_helpers_1.Helpers.exists(absoluteAssetFilePath)) {
731
+ tnp_helpers_1.Helpers.copyFile(absoluteAssetFilePath, dest);
732
+ }
733
+ }
734
+ }
735
+ };
736
+ CopyManagerOrganization.prototype.handleCopyOfSingleFile = function (destination, isTempLocalProj, specyficFileRelativePath, wasRecrusive) {
737
+ if (wasRecrusive === void 0) { wasRecrusive = false; }
738
+ specyficFileRelativePath = (0, tnp_core_1.crossPlatformPath)(specyficFileRelativePath).replace(/^\//, '');
739
+ if (this.notAllowedFiles.includes(specyficFileRelativePath)) {
740
+ return;
741
+ }
742
+ if (specyficFileRelativePath.startsWith(tnp_config_1.config.folder.libs) ||
743
+ specyficFileRelativePath.startsWith([tnp_config_1.config.folder.assets, tnp_config_1.config.folder.shared].join('/'))) {
744
+ this.handleCopyOfSingleFileForChildFromLibs(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
745
+ }
746
+ else if (specyficFileRelativePath.startsWith(tnp_config_1.config.folder.browser) ||
747
+ specyficFileRelativePath.startsWith(tnp_config_1.config.folder.websql)) {
748
+ this.angularCopyManger.handleCopyOfSingleFile(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
749
+ }
750
+ else if (specyficFileRelativePath.startsWith('-')) {
751
+ this.handleCopyOfSingleFileFromNonTargetFiles(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
752
+ }
753
+ else {
754
+ this.handleCopyOfSingleFileFromAppAndRoot(specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive);
755
+ }
756
+ };
757
+ //#endregion
758
+ //#region update backend full dts files
759
+ /**
760
+ * package ready to realse should have all/full *.d.ts files.. .to avoid any
761
+ * erors when we import more "ui package" to backend code
762
+ */
763
+ CopyManagerOrganization.prototype.updateBackendFullDtsFiles = function (destinationOrDist) {
764
+ var base = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.targetProj.location, "".concat(this.buildOptions.outDir, "-nocutsrc"), tnp_config_1.config.folder.libs));
765
+ var filesToUpdate = tnp_helpers_1.Helpers.filesFrom(base, true)
766
+ .filter(function (f) { return f.endsWith('.d.ts'); })
767
+ .map(function (f) { return f.replace("".concat(base, "/"), ''); });
768
+ for (var index = 0; index < filesToUpdate.length; index++) {
769
+ var relativePath = filesToUpdate[index];
770
+ // const childName = _.first(relativePath.split('/'));
771
+ var source = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(base, relativePath));
772
+ var dest = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(tnp_core_1._.isString(destinationOrDist)
773
+ ? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, tnp_config_1.config.folder.libs))
774
+ : destinationOrDist.__node_modules.pathFor((0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.rootPackageName))), relativePath));
775
+ // console.log({
776
+ // source, dest
777
+ // })
778
+ // if (Helpers.exists(dest)) {
779
+ // console.log(dest)
780
+ var sourceContent = tnp_helpers_1.Helpers.readFile(source);
781
+ tnp_helpers_1.Helpers.writeFile(dest, this.dtsFixer.forBackendContent(sourceContent));
782
+ // }
783
+ }
784
+ };
785
+ return CopyManagerOrganization;
786
+ }(copy_manager_standalone_backend_1.CopyManagerStandalone));
787
+ exports.CopyManagerOrganization = CopyManagerOrganization;
788
+ //# sourceMappingURL=copy-manager-organization.backend.js.map