@xylabs/ts-scripts-yarn3 3.15.16 → 4.0.0-rc.11

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 (360) hide show
  1. package/dist/actions/compile.mjs +3 -2
  2. package/dist/actions/compile.mjs.map +1 -1
  3. package/dist/actions/cycle.mjs +32 -110
  4. package/dist/actions/cycle.mjs.map +1 -1
  5. package/dist/actions/index.mjs +131 -307
  6. package/dist/actions/index.mjs.map +1 -1
  7. package/dist/actions/package/compile/compile.mjs +57 -259
  8. package/dist/actions/package/compile/compile.mjs.map +1 -1
  9. package/dist/actions/package/compile/index.mjs +57 -259
  10. package/dist/actions/package/compile/index.mjs.map +1 -1
  11. package/dist/actions/package/compile/packageCompileTsc.mjs +1 -1
  12. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  13. package/dist/actions/package/compile/packageCompileTscTypes.mjs +2 -36
  14. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  15. package/dist/actions/package/compile/packageCompileTsup.mjs +54 -339
  16. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  17. package/dist/actions/package/index.mjs +72 -277
  18. package/dist/actions/package/index.mjs.map +1 -1
  19. package/dist/actions/package/recompile.mjs +58 -263
  20. package/dist/actions/package/recompile.mjs.map +1 -1
  21. package/dist/actions/recompile.mjs +14 -1
  22. package/dist/actions/recompile.mjs.map +1 -1
  23. package/dist/bin/package/compile-only.mjs +59 -261
  24. package/dist/bin/package/compile-only.mjs.map +1 -1
  25. package/dist/bin/package/compile-tsup.mjs +56 -341
  26. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  27. package/dist/bin/package/compile.mjs +59 -261
  28. package/dist/bin/package/compile.mjs.map +1 -1
  29. package/dist/bin/package/recompile.mjs +60 -265
  30. package/dist/bin/package/recompile.mjs.map +1 -1
  31. package/dist/bin/xy-ts.mjs +56 -27
  32. package/dist/bin/xy-ts.mjs.map +1 -1
  33. package/dist/bin/xy.mjs +56 -27
  34. package/dist/bin/xy.mjs.map +1 -1
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.mjs +143 -319
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/xy/index.mjs +56 -27
  39. package/dist/xy/index.mjs.map +1 -1
  40. package/dist/xy/xy.mjs +56 -27
  41. package/dist/xy/xy.mjs.map +1 -1
  42. package/dist/xy/xyBuildCommands.mjs +17 -3
  43. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  44. package/dist/xy/xyLintCommands.mjs +37 -22
  45. package/dist/xy/xyLintCommands.mjs.map +1 -1
  46. package/package.json +11 -20
  47. package/src/actions/compile.ts +2 -2
  48. package/src/actions/cycle.ts +21 -4
  49. package/src/actions/package/compile/XyConfig.ts +2 -2
  50. package/src/actions/package/compile/packageCompileTsc.ts +1 -1
  51. package/src/actions/package/compile/packageCompileTscTypes.ts +3 -8
  52. package/src/actions/package/compile/packageCompileTsup.ts +54 -130
  53. package/src/actions/package/recompile.ts +1 -1
  54. package/src/actions/recompile.ts +2 -1
  55. package/src/types.d.ts +23 -0
  56. package/src/xy/xyLintCommands.ts +2 -2
  57. package/tsup.config.ts +1 -1
  58. package/dist/actions/build.cjs +0 -208
  59. package/dist/actions/build.cjs.map +0 -1
  60. package/dist/actions/clean-docs.cjs +0 -74
  61. package/dist/actions/clean-docs.cjs.map +0 -1
  62. package/dist/actions/clean-eslint.cjs +0 -53
  63. package/dist/actions/clean-eslint.cjs.map +0 -1
  64. package/dist/actions/clean-jest.cjs +0 -147
  65. package/dist/actions/clean-jest.cjs.map +0 -1
  66. package/dist/actions/clean.cjs +0 -192
  67. package/dist/actions/clean.cjs.map +0 -1
  68. package/dist/actions/compile.cjs +0 -217
  69. package/dist/actions/compile.cjs.map +0 -1
  70. package/dist/actions/copy-assets.cjs +0 -121
  71. package/dist/actions/copy-assets.cjs.map +0 -1
  72. package/dist/actions/cycle.cjs +0 -156
  73. package/dist/actions/cycle.cjs.map +0 -1
  74. package/dist/actions/dead.cjs +0 -148
  75. package/dist/actions/dead.cjs.map +0 -1
  76. package/dist/actions/deploy-major.cjs +0 -160
  77. package/dist/actions/deploy-major.cjs.map +0 -1
  78. package/dist/actions/deploy-minor.cjs +0 -160
  79. package/dist/actions/deploy-minor.cjs.map +0 -1
  80. package/dist/actions/deploy-next.cjs +0 -160
  81. package/dist/actions/deploy-next.cjs.map +0 -1
  82. package/dist/actions/deploy.cjs +0 -160
  83. package/dist/actions/deploy.cjs.map +0 -1
  84. package/dist/actions/deps.cjs +0 -205
  85. package/dist/actions/deps.cjs.map +0 -1
  86. package/dist/actions/dupdeps.cjs +0 -226
  87. package/dist/actions/dupdeps.cjs.map +0 -1
  88. package/dist/actions/fix.cjs +0 -149
  89. package/dist/actions/fix.cjs.map +0 -1
  90. package/dist/actions/gen-docs.cjs +0 -186
  91. package/dist/actions/gen-docs.cjs.map +0 -1
  92. package/dist/actions/gitignore-gen.cjs +0 -138
  93. package/dist/actions/gitignore-gen.cjs.map +0 -1
  94. package/dist/actions/gitlint-fix.cjs +0 -69
  95. package/dist/actions/gitlint-fix.cjs.map +0 -1
  96. package/dist/actions/gitlint.cjs +0 -84
  97. package/dist/actions/gitlint.cjs.map +0 -1
  98. package/dist/actions/index.cjs +0 -2600
  99. package/dist/actions/index.cjs.map +0 -1
  100. package/dist/actions/license.cjs +0 -133
  101. package/dist/actions/license.cjs.map +0 -1
  102. package/dist/actions/lint-clean.cjs +0 -227
  103. package/dist/actions/lint-clean.cjs.map +0 -1
  104. package/dist/actions/lint-profile.cjs +0 -153
  105. package/dist/actions/lint-profile.cjs.map +0 -1
  106. package/dist/actions/lint.cjs +0 -217
  107. package/dist/actions/lint.cjs.map +0 -1
  108. package/dist/actions/npmignore-gen.cjs +0 -138
  109. package/dist/actions/npmignore-gen.cjs.map +0 -1
  110. package/dist/actions/package/clean-outputs.cjs +0 -56
  111. package/dist/actions/package/clean-outputs.cjs.map +0 -1
  112. package/dist/actions/package/clean-typescript.cjs +0 -56
  113. package/dist/actions/package/clean-typescript.cjs.map +0 -1
  114. package/dist/actions/package/clean.cjs +0 -83
  115. package/dist/actions/package/clean.cjs.map +0 -1
  116. package/dist/actions/package/compile/XyConfig.cjs +0 -19
  117. package/dist/actions/package/compile/XyConfig.cjs.map +0 -1
  118. package/dist/actions/package/compile/buildEntries.cjs +0 -68
  119. package/dist/actions/package/compile/buildEntries.cjs.map +0 -1
  120. package/dist/actions/package/compile/compile.cjs +0 -565
  121. package/dist/actions/package/compile/compile.cjs.map +0 -1
  122. package/dist/actions/package/compile/copyTypeFiles.cjs +0 -60
  123. package/dist/actions/package/compile/copyTypeFiles.cjs.map +0 -1
  124. package/dist/actions/package/compile/getCompilerOptions.cjs +0 -67
  125. package/dist/actions/package/compile/getCompilerOptions.cjs.map +0 -1
  126. package/dist/actions/package/compile/index.cjs +0 -571
  127. package/dist/actions/package/compile/index.cjs.map +0 -1
  128. package/dist/actions/package/compile/inputs.cjs +0 -79
  129. package/dist/actions/package/compile/inputs.cjs.map +0 -1
  130. package/dist/actions/package/compile/packageCompileTsc.cjs +0 -164
  131. package/dist/actions/package/compile/packageCompileTsc.cjs.map +0 -1
  132. package/dist/actions/package/compile/packageCompileTscTypes.cjs +0 -199
  133. package/dist/actions/package/compile/packageCompileTscTypes.cjs.map +0 -1
  134. package/dist/actions/package/compile/packageCompileTsup.cjs +0 -521
  135. package/dist/actions/package/compile/packageCompileTsup.cjs.map +0 -1
  136. package/dist/actions/package/copy-assets.cjs +0 -88
  137. package/dist/actions/package/copy-assets.cjs.map +0 -1
  138. package/dist/actions/package/deps.cjs +0 -214
  139. package/dist/actions/package/deps.cjs.map +0 -1
  140. package/dist/actions/package/gen-docs.cjs +0 -148
  141. package/dist/actions/package/gen-docs.cjs.map +0 -1
  142. package/dist/actions/package/index.cjs +0 -968
  143. package/dist/actions/package/index.cjs.map +0 -1
  144. package/dist/actions/package/publint.cjs +0 -80
  145. package/dist/actions/package/publint.cjs.map +0 -1
  146. package/dist/actions/package/recompile.cjs +0 -617
  147. package/dist/actions/package/recompile.cjs.map +0 -1
  148. package/dist/actions/publint.cjs +0 -237
  149. package/dist/actions/publint.cjs.map +0 -1
  150. package/dist/actions/rebuild.cjs +0 -148
  151. package/dist/actions/rebuild.cjs.map +0 -1
  152. package/dist/actions/recompile.cjs +0 -232
  153. package/dist/actions/recompile.cjs.map +0 -1
  154. package/dist/actions/reinstall.cjs +0 -183
  155. package/dist/actions/reinstall.cjs.map +0 -1
  156. package/dist/actions/relint.cjs +0 -185
  157. package/dist/actions/relint.cjs.map +0 -1
  158. package/dist/actions/retest.cjs +0 -154
  159. package/dist/actions/retest.cjs.map +0 -1
  160. package/dist/actions/sonar.cjs +0 -149
  161. package/dist/actions/sonar.cjs.map +0 -1
  162. package/dist/actions/statics.cjs +0 -234
  163. package/dist/actions/statics.cjs.map +0 -1
  164. package/dist/actions/test.cjs +0 -147
  165. package/dist/actions/test.cjs.map +0 -1
  166. package/dist/actions/up.cjs +0 -144
  167. package/dist/actions/up.cjs.map +0 -1
  168. package/dist/actions/updo.cjs +0 -152
  169. package/dist/actions/updo.cjs.map +0 -1
  170. package/dist/actions/upplug.cjs +0 -172
  171. package/dist/actions/upplug.cjs.map +0 -1
  172. package/dist/actions/upyarn.cjs +0 -148
  173. package/dist/actions/upyarn.cjs.map +0 -1
  174. package/dist/actions/yarn3only.cjs +0 -106
  175. package/dist/actions/yarn3only.cjs.map +0 -1
  176. package/dist/bin/build.cjs +0 -39
  177. package/dist/bin/build.cjs.map +0 -1
  178. package/dist/bin/clean.cjs +0 -39
  179. package/dist/bin/clean.cjs.map +0 -1
  180. package/dist/bin/compile-only.cjs +0 -39
  181. package/dist/bin/compile-only.cjs.map +0 -1
  182. package/dist/bin/compile.cjs +0 -39
  183. package/dist/bin/compile.cjs.map +0 -1
  184. package/dist/bin/cycle.cjs +0 -39
  185. package/dist/bin/cycle.cjs.map +0 -1
  186. package/dist/bin/dead.cjs +0 -39
  187. package/dist/bin/dead.cjs.map +0 -1
  188. package/dist/bin/deploy-major.cjs +0 -39
  189. package/dist/bin/deploy-major.cjs.map +0 -1
  190. package/dist/bin/deploy-minor.cjs +0 -39
  191. package/dist/bin/deploy-minor.cjs.map +0 -1
  192. package/dist/bin/deploy-next.cjs +0 -39
  193. package/dist/bin/deploy-next.cjs.map +0 -1
  194. package/dist/bin/deploy.cjs +0 -39
  195. package/dist/bin/deploy.cjs.map +0 -1
  196. package/dist/bin/deps.cjs +0 -39
  197. package/dist/bin/deps.cjs.map +0 -1
  198. package/dist/bin/fix.cjs +0 -39
  199. package/dist/bin/fix.cjs.map +0 -1
  200. package/dist/bin/gen-docs.cjs +0 -39
  201. package/dist/bin/gen-docs.cjs.map +0 -1
  202. package/dist/bin/gitlint-fix.cjs +0 -39
  203. package/dist/bin/gitlint-fix.cjs.map +0 -1
  204. package/dist/bin/gitlint.cjs +0 -39
  205. package/dist/bin/gitlint.cjs.map +0 -1
  206. package/dist/bin/license.cjs +0 -39
  207. package/dist/bin/license.cjs.map +0 -1
  208. package/dist/bin/lint-clean.cjs +0 -39
  209. package/dist/bin/lint-clean.cjs.map +0 -1
  210. package/dist/bin/lint-fast.cjs +0 -39
  211. package/dist/bin/lint-fast.cjs.map +0 -1
  212. package/dist/bin/lint-profile.cjs +0 -39
  213. package/dist/bin/lint-profile.cjs.map +0 -1
  214. package/dist/bin/lint.cjs +0 -39
  215. package/dist/bin/lint.cjs.map +0 -1
  216. package/dist/bin/package/clean-outputs.cjs +0 -51
  217. package/dist/bin/package/clean-outputs.cjs.map +0 -1
  218. package/dist/bin/package/clean-typescript.cjs +0 -51
  219. package/dist/bin/package/clean-typescript.cjs.map +0 -1
  220. package/dist/bin/package/clean.cjs +0 -76
  221. package/dist/bin/package/clean.cjs.map +0 -1
  222. package/dist/bin/package/compile-only.cjs +0 -564
  223. package/dist/bin/package/compile-only.cjs.map +0 -1
  224. package/dist/bin/package/compile-tsup.cjs +0 -519
  225. package/dist/bin/package/compile-tsup.cjs.map +0 -1
  226. package/dist/bin/package/compile.cjs +0 -567
  227. package/dist/bin/package/compile.cjs.map +0 -1
  228. package/dist/bin/package/copy-assets-cjs.cjs +0 -86
  229. package/dist/bin/package/copy-assets-cjs.cjs.map +0 -1
  230. package/dist/bin/package/copy-assets-esm.cjs +0 -86
  231. package/dist/bin/package/copy-assets-esm.cjs.map +0 -1
  232. package/dist/bin/package/deps.cjs +0 -208
  233. package/dist/bin/package/deps.cjs.map +0 -1
  234. package/dist/bin/package/gen-docs.cjs +0 -143
  235. package/dist/bin/package/gen-docs.cjs.map +0 -1
  236. package/dist/bin/package/publint.cjs +0 -77
  237. package/dist/bin/package/publint.cjs.map +0 -1
  238. package/dist/bin/package/recompile.cjs +0 -611
  239. package/dist/bin/package/recompile.cjs.map +0 -1
  240. package/dist/bin/publint.cjs +0 -39
  241. package/dist/bin/publint.cjs.map +0 -1
  242. package/dist/bin/rebuild.cjs +0 -39
  243. package/dist/bin/rebuild.cjs.map +0 -1
  244. package/dist/bin/recompile.cjs +0 -39
  245. package/dist/bin/recompile.cjs.map +0 -1
  246. package/dist/bin/reinstall.cjs +0 -39
  247. package/dist/bin/reinstall.cjs.map +0 -1
  248. package/dist/bin/relint.cjs +0 -39
  249. package/dist/bin/relint.cjs.map +0 -1
  250. package/dist/bin/sonar.cjs +0 -39
  251. package/dist/bin/sonar.cjs.map +0 -1
  252. package/dist/bin/test.cjs +0 -39
  253. package/dist/bin/test.cjs.map +0 -1
  254. package/dist/bin/up.cjs +0 -39
  255. package/dist/bin/up.cjs.map +0 -1
  256. package/dist/bin/updo.cjs +0 -39
  257. package/dist/bin/updo.cjs.map +0 -1
  258. package/dist/bin/upplug.cjs +0 -39
  259. package/dist/bin/upplug.cjs.map +0 -1
  260. package/dist/bin/upyarn.cjs +0 -39
  261. package/dist/bin/upyarn.cjs.map +0 -1
  262. package/dist/bin/xy-ts.cjs +0 -1890
  263. package/dist/bin/xy-ts.cjs.map +0 -1
  264. package/dist/bin/xy.cjs +0 -1890
  265. package/dist/bin/xy.cjs.map +0 -1
  266. package/dist/bin/yarn3only.cjs +0 -39
  267. package/dist/bin/yarn3only.cjs.map +0 -1
  268. package/dist/index.cjs +0 -3129
  269. package/dist/index.cjs.map +0 -1
  270. package/dist/index.d.cts +0 -359
  271. package/dist/lib/checkResult.cjs +0 -52
  272. package/dist/lib/checkResult.cjs.map +0 -1
  273. package/dist/lib/createBuildConfig.cjs +0 -93
  274. package/dist/lib/createBuildConfig.cjs.map +0 -1
  275. package/dist/lib/defaultBuildConfig.cjs +0 -52
  276. package/dist/lib/defaultBuildConfig.cjs.map +0 -1
  277. package/dist/lib/dependencies/DuplicateDetector.cjs +0 -124
  278. package/dist/lib/dependencies/DuplicateDetector.cjs.map +0 -1
  279. package/dist/lib/dependencies/detectDuplicateDependencies.cjs +0 -207
  280. package/dist/lib/dependencies/detectDuplicateDependencies.cjs.map +0 -1
  281. package/dist/lib/dependencies/index.cjs +0 -211
  282. package/dist/lib/dependencies/index.cjs.map +0 -1
  283. package/dist/lib/file/ReadFileSyncOptions.cjs +0 -33
  284. package/dist/lib/file/ReadFileSyncOptions.cjs.map +0 -1
  285. package/dist/lib/file/constants.cjs +0 -34
  286. package/dist/lib/file/constants.cjs.map +0 -1
  287. package/dist/lib/file/fileLines.cjs +0 -58
  288. package/dist/lib/file/fileLines.cjs.map +0 -1
  289. package/dist/lib/file/index.cjs +0 -74
  290. package/dist/lib/file/index.cjs.map +0 -1
  291. package/dist/lib/file/tryReadFileSync.cjs +0 -42
  292. package/dist/lib/file/tryReadFileSync.cjs.map +0 -1
  293. package/dist/lib/generateIgnoreFiles.cjs +0 -132
  294. package/dist/lib/generateIgnoreFiles.cjs.map +0 -1
  295. package/dist/lib/index.cjs +0 -614
  296. package/dist/lib/index.cjs.map +0 -1
  297. package/dist/lib/jsonFormatters.cjs +0 -37
  298. package/dist/lib/jsonFormatters.cjs.map +0 -1
  299. package/dist/lib/loadConfig.cjs +0 -59
  300. package/dist/lib/loadConfig.cjs.map +0 -1
  301. package/dist/lib/parsedPackageJSON.cjs +0 -37
  302. package/dist/lib/parsedPackageJSON.cjs.map +0 -1
  303. package/dist/lib/processEx.cjs +0 -72
  304. package/dist/lib/processEx.cjs.map +0 -1
  305. package/dist/lib/runSteps.cjs +0 -134
  306. package/dist/lib/runSteps.cjs.map +0 -1
  307. package/dist/lib/runStepsAsync.cjs +0 -147
  308. package/dist/lib/runStepsAsync.cjs.map +0 -1
  309. package/dist/lib/runXy.cjs +0 -150
  310. package/dist/lib/runXy.cjs.map +0 -1
  311. package/dist/lib/runXyWithWarning.cjs +0 -49
  312. package/dist/lib/runXyWithWarning.cjs.map +0 -1
  313. package/dist/lib/safeExit.cjs +0 -100
  314. package/dist/lib/safeExit.cjs.map +0 -1
  315. package/dist/lib/string/empty.cjs +0 -35
  316. package/dist/lib/string/empty.cjs.map +0 -1
  317. package/dist/lib/string/index.cjs +0 -45
  318. package/dist/lib/string/index.cjs.map +0 -1
  319. package/dist/lib/string/union.cjs +0 -35
  320. package/dist/lib/string/union.cjs.map +0 -1
  321. package/dist/lib/withErrnoException.cjs +0 -41
  322. package/dist/lib/withErrnoException.cjs.map +0 -1
  323. package/dist/lib/withError.cjs +0 -34
  324. package/dist/lib/withError.cjs.map +0 -1
  325. package/dist/lib/yarn/index.cjs +0 -93
  326. package/dist/lib/yarn/index.cjs.map +0 -1
  327. package/dist/lib/yarn/isYarnVersionOrGreater.cjs +0 -52
  328. package/dist/lib/yarn/isYarnVersionOrGreater.cjs.map +0 -1
  329. package/dist/lib/yarn/workspace/Workspace.cjs +0 -19
  330. package/dist/lib/yarn/workspace/Workspace.cjs.map +0 -1
  331. package/dist/lib/yarn/workspace/index.cjs +0 -60
  332. package/dist/lib/yarn/workspace/index.cjs.map +0 -1
  333. package/dist/lib/yarn/workspace/yarnWorkspace.cjs +0 -58
  334. package/dist/lib/yarn/workspace/yarnWorkspace.cjs.map +0 -1
  335. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs +0 -49
  336. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs.map +0 -1
  337. package/dist/lib/yarn/yarnInitCwd.cjs +0 -35
  338. package/dist/lib/yarn/yarnInitCwd.cjs.map +0 -1
  339. package/dist/loadPackageConfig.cjs +0 -39
  340. package/dist/loadPackageConfig.cjs.map +0 -1
  341. package/dist/types.d.cjs +0 -2
  342. package/dist/types.d.cjs.map +0 -1
  343. package/dist/xy/index.cjs +0 -1909
  344. package/dist/xy/index.cjs.map +0 -1
  345. package/dist/xy/param.cjs +0 -36
  346. package/dist/xy/param.cjs.map +0 -1
  347. package/dist/xy/xy.cjs +0 -1895
  348. package/dist/xy/xy.cjs.map +0 -1
  349. package/dist/xy/xyBuildCommands.cjs +0 -595
  350. package/dist/xy/xyBuildCommands.cjs.map +0 -1
  351. package/dist/xy/xyCommonCommands.cjs +0 -723
  352. package/dist/xy/xyCommonCommands.cjs.map +0 -1
  353. package/dist/xy/xyDeployCommands.cjs +0 -263
  354. package/dist/xy/xyDeployCommands.cjs.map +0 -1
  355. package/dist/xy/xyInstallCommands.cjs +0 -508
  356. package/dist/xy/xyInstallCommands.cjs.map +0 -1
  357. package/dist/xy/xyLintCommands.cjs +0 -466
  358. package/dist/xy/xyLintCommands.cjs.map +0 -1
  359. package/dist/xy/xyParseOptions.cjs +0 -84
  360. package/dist/xy/xyParseOptions.cjs.map +0 -1
package/dist/index.d.cts DELETED
@@ -1,359 +0,0 @@
1
- import { Options } from 'tsup';
2
- import { CompilerOptions } from 'typescript';
3
- import { PathLike, WriteFileOptions } from 'node:fs';
4
- import { SpawnSyncOptionsWithBufferEncoding } from 'node:child_process';
5
- import { PackageJson } from 'types-package-json';
6
- import { Argv } from 'yargs';
7
-
8
- interface BuildParams {
9
- incremental?: boolean;
10
- jobs?: number;
11
- pkg?: string;
12
- target?: 'esm' | 'cjs';
13
- verbose?: boolean;
14
- }
15
- declare const build: ({ incremental, jobs, target, verbose, pkg }: BuildParams) => Promise<number>;
16
-
17
- interface CleanParams {
18
- pkg?: string;
19
- verbose?: boolean;
20
- }
21
- interface CleanPackageParams {
22
- pkg: string;
23
- verbose?: boolean;
24
- }
25
- declare const clean: ({ verbose, pkg }: CleanParams) => Promise<number>;
26
- declare const cleanPackage: ({ pkg }: CleanPackageParams) => Promise<number>;
27
- declare const cleanAll: ({ verbose }: CleanParams) => Promise<number>;
28
-
29
- declare const cleanDocs: () => number;
30
-
31
- interface CompileParams {
32
- incremental?: boolean;
33
- jobs?: number;
34
- pkg?: string;
35
- publint?: boolean;
36
- target?: 'esm' | 'cjs';
37
- verbose?: boolean;
38
- }
39
- interface CompilePackageParams {
40
- pkg: string;
41
- publint?: boolean;
42
- target?: 'esm' | 'cjs';
43
- verbose?: boolean;
44
- }
45
- declare const compile: ({ verbose, target, pkg, incremental, publint }: CompileParams) => number;
46
- declare const compilePackage: ({ target, pkg }: CompilePackageParams) => number;
47
- declare const compileAll: ({ jobs, verbose, target, incremental }: CompileParams) => number;
48
-
49
- interface CopyAssetsParams {
50
- pkg?: string;
51
- target?: 'esm' | 'cjs';
52
- }
53
- declare const copyAssets: ({ target, pkg }: CopyAssetsParams) => Promise<0 | 1>;
54
-
55
- declare const cycle: () => number;
56
-
57
- declare const dead: () => number;
58
-
59
- declare const deploy: () => number;
60
-
61
- declare const deployMajor: () => number;
62
-
63
- declare const deployMinor: () => number;
64
-
65
- declare const deployNext: () => number;
66
-
67
- interface DepsParams {
68
- incremental?: boolean;
69
- jobs?: number;
70
- pkg?: string;
71
- verbose?: boolean;
72
- }
73
- interface DepsPackageParams {
74
- pkg: string;
75
- }
76
- declare const deps: ({ pkg, incremental }: DepsParams) => number;
77
- declare const depsPackage: ({ pkg }: DepsPackageParams) => number;
78
- declare const depsAll: ({ incremental, jobs, verbose }: DepsParams) => number;
79
-
80
- declare const dupdeps: () => number;
81
-
82
- declare const fix: () => number;
83
-
84
- interface GenDocsParams {
85
- incremental?: boolean;
86
- pkg?: string;
87
- }
88
- interface GenDocsPackageParams {
89
- pkg: string;
90
- }
91
- declare const genDocs: ({ pkg, incremental }: GenDocsParams) => number;
92
- declare const genDocsPackage: ({ pkg }: GenDocsPackageParams) => number;
93
- declare const genDocsAll: ({ incremental }: GenDocsParams) => number;
94
-
95
- declare const gitignoreGen: (pkg?: string) => 1 | 0;
96
-
97
- declare const gitlint: () => 1 | 0;
98
-
99
- declare const gitlintFix: () => number;
100
-
101
- declare const license: (pkg?: string) => Promise<number>;
102
-
103
- interface LintParams {
104
- pkg?: string;
105
- verbose?: boolean;
106
- }
107
- interface LintPackageParams {
108
- pkg: string;
109
- verbose?: boolean;
110
- }
111
- declare const lintPackage: ({ pkg }: LintParams) => Promise<number>;
112
- declare const lintAll: () => Promise<number>;
113
- declare const lint: ({ pkg }?: LintParams) => Promise<number>;
114
-
115
- declare const lintClean: () => 1 | Promise<number>;
116
-
117
- declare const lintProfile: () => number;
118
-
119
- declare const npmignoreGen: (pkg?: string) => 1 | 0;
120
-
121
- declare const packageClean: () => Promise<number>;
122
-
123
- declare const packageCleanOutputs: () => Promise<number>;
124
-
125
- declare const packageCleanTypescript: () => Promise<number>;
126
-
127
- type EntryMode = 'all' | 'single' | 'auto' | 'platform';
128
- type CompileMode = 'tsup' | 'tsc';
129
- interface PathConfig {
130
- exclude?: string[];
131
- include?: string[];
132
- }
133
- interface DynamicShareConfig extends PathConfig {
134
- }
135
- interface LiveShareConfig extends PathConfig {
136
- }
137
- interface CompileConfig {
138
- depth?: number;
139
- entryMode?: EntryMode;
140
- files?: string[];
141
- mode?: CompileMode;
142
- }
143
- type PackageCompileTsupConfig = CompileConfig & {
144
- browser?: Record<string, Options | boolean>;
145
- mode?: 'tsup';
146
- neutral?: Record<string, Options | boolean>;
147
- node?: Record<string, Options | boolean>;
148
- tsup?: {
149
- options?: Options;
150
- };
151
- };
152
- type PackageCompileTscConfig = CompileConfig & {
153
- mode: 'tsc';
154
- };
155
- interface XyConfigBase {
156
- compile?: CompileConfig;
157
- dynamicShare?: DynamicShareConfig;
158
- liveShare?: LiveShareConfig;
159
- publint?: boolean;
160
- verbose?: boolean;
161
- }
162
- interface XyTsupConfig extends XyConfigBase {
163
- compile?: PackageCompileTsupConfig;
164
- }
165
- interface XyTscConfig extends XyConfigBase {
166
- compile?: PackageCompileTscConfig;
167
- }
168
- type XyConfig = XyTsupConfig | XyTscConfig;
169
-
170
- declare const packageCompile: (inConfig?: XyConfig) => Promise<number>;
171
-
172
- declare const packageCompileTsc: (noEmit?: boolean, config?: XyTscConfig, compilerOptionsParam?: CompilerOptions) => Promise<number>;
173
-
174
- declare const packageCompileTsup: (config?: XyTsupConfig) => Promise<number>;
175
-
176
- interface PackageCopyAssetsParams {
177
- target?: 'esm' | 'cjs';
178
- }
179
- declare const packageCopyAssets: ({ target }: PackageCopyAssetsParams) => Promise<1 | 0>;
180
-
181
- declare const packageDeps: () => Promise<number>;
182
-
183
- declare const packageGenDocs: () => Promise<number | undefined>;
184
-
185
- interface PackagePublintParams {
186
- verbose?: boolean;
187
- }
188
- declare const packagePublint: (params?: PackagePublintParams) => Promise<number>;
189
-
190
- declare const packageRecompile: () => Promise<number>;
191
-
192
- interface PublintParams {
193
- pkg?: string;
194
- verbose?: boolean;
195
- }
196
- interface PublintPackageParams {
197
- pkg: string;
198
- verbose?: boolean;
199
- }
200
- declare const publint: ({ verbose, pkg }: PublintParams) => Promise<number>;
201
- declare const publintPackage: ({ pkg }: PublintPackageParams) => Promise<number>;
202
- declare const publintAll: ({ verbose }: PublintParams) => number;
203
-
204
- interface RebuildParams {
205
- pkg?: string;
206
- target?: 'esm' | 'cjs';
207
- }
208
- declare const rebuild: ({ target }: RebuildParams) => number;
209
-
210
- interface RecompileParams {
211
- incremental?: boolean;
212
- jobs?: number;
213
- pkg?: string;
214
- target?: 'esm' | 'cjs';
215
- verbose?: boolean;
216
- }
217
- interface RecompilePackageParams {
218
- pkg: string;
219
- target?: 'esm' | 'cjs';
220
- verbose?: boolean;
221
- }
222
- declare const recompile: ({ verbose, target, pkg, incremental }: RecompileParams) => Promise<number>;
223
- declare const recompilePackage: ({ verbose, target, pkg }: RecompilePackageParams) => Promise<number>;
224
- declare const recompileAll: ({ jobs, verbose, target, incremental }: RecompileParams) => Promise<number>;
225
-
226
- declare const reinstall: () => number;
227
-
228
- declare const relint: () => number;
229
-
230
- declare const retest: () => number;
231
-
232
- declare const sonar: () => number;
233
-
234
- declare const statics: () => number;
235
-
236
- declare const test: () => number;
237
-
238
- declare const up: () => number;
239
-
240
- declare const updo: () => number;
241
-
242
- declare const updateYarnPlugins: () => number;
243
-
244
- declare const updateYarnVersion: () => number;
245
-
246
- declare const yarn3Only: () => number;
247
-
248
- declare const checkResult: (name: string, result: number, level?: "error" | "warn", exitOnFail?: boolean) => void;
249
-
250
- declare const createBuildConfig: (location: string, module: "ESNext" | "CommonJS", target: "ESNext" | "ES6", outDirSuffix: string) => Record<string, unknown> | undefined;
251
-
252
- declare const defaultBuildConfig: {
253
- compilerOptions: {
254
- rootDir: string;
255
- rootDirs: string[];
256
- };
257
- exclude: string[];
258
- include: string[];
259
- };
260
-
261
- declare const detectDuplicateDependencies: (depsFromPackageJSON?: string[], DefaultDependencies?: string[]) => number;
262
-
263
- declare class DuplicateDetector {
264
- private dependency;
265
- private dependencyEntries;
266
- constructor(output: string, dependency: string);
267
- detect(): 1 | 0;
268
- private detectReducer;
269
- private resultsFactory;
270
- }
271
-
272
- declare const WINDOWS_NEWLINE_REGEX: RegExp;
273
- declare const CROSS_PLATFORM_NEWLINE = "\n";
274
-
275
- type ReadFileSyncOptions = BufferEncoding | {
276
- encoding: BufferEncoding;
277
- flags?: string;
278
- };
279
- declare const defaultReadFileSyncOptions: ReadFileSyncOptions;
280
-
281
- declare const readLines: (uri: PathLike, options?: ReadFileSyncOptions) => string[];
282
- declare const readNonEmptyLines: (uri: PathLike, options?: ReadFileSyncOptions) => string[];
283
- declare const writeLines: (uri: PathLike, lines: string[], options?: WriteFileOptions) => void;
284
-
285
- declare const tryReadFileSync: (uri: PathLike, options?: ReadFileSyncOptions) => string | undefined;
286
-
287
- declare const generateIgnoreFiles: (filename: string, pkg?: string) => 1 | 0;
288
-
289
- declare const multiLineToJSONArray: (output: string) => any;
290
-
291
- declare const loadConfig: <T extends object>(params?: T) => Promise<T>;
292
-
293
- declare const parsedPackageJSON: (path?: string) => any;
294
-
295
- declare const processEx: (ex: unknown) => never;
296
-
297
- type ScriptStep = ['yarn' | 'node' | 'ts-node-script' | 'tsc' | 'jest', string | string[]] | [string, string | string[], SpawnSyncOptionsWithBufferEncoding];
298
- declare const runSteps: (name: string, steps: ScriptStep[], exitOnFail?: boolean, messages?: string[]) => number;
299
-
300
- declare const runStepAsync: (name: string, step: ScriptStep, exitOnFail?: boolean, message?: string) => Promise<number>;
301
- declare const runStepsAsync: (name: string, steps: ScriptStep[], exitOnFail?: boolean, messages?: string[]) => Promise<number>;
302
-
303
- declare const runXy: (command: string) => number;
304
-
305
- declare const runXyWithWarning: (command: string) => number;
306
-
307
- declare const safeExit: (func: () => number, exitOnFail?: boolean) => number;
308
- declare const safeExitAsync: (func: () => Promise<number>, exitOnFail?: boolean) => Promise<number>;
309
-
310
- declare const empty: (value?: string | undefined) => boolean;
311
- declare const notEmpty: (value?: string | undefined) => boolean;
312
-
313
- declare const union: (a: string[], b: string[]) => Set<string>;
314
-
315
- declare const withErrnoException: <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(ex: unknown, closure: (error: T) => number) => number | undefined;
316
-
317
- declare const withError: <T extends Error = Error>(ex: any, closure: (error: T) => number, predicate?: (ex: T) => boolean) => number | undefined;
318
-
319
- declare const isYarnVersionOrGreater: (major: number, minor?: number, patch?: number) => [boolean, string];
320
-
321
- interface Workspace {
322
- location: string;
323
- name: string;
324
- }
325
-
326
- declare const yarnWorkspace: (pkg: string) => Workspace;
327
-
328
- declare const yarnWorkspaces: () => Workspace[];
329
-
330
- declare const INIT_CWD: () => string | undefined;
331
-
332
- type PackageJsonEx = PackageJson & {
333
- type: 'module' | 'commonjs';
334
- };
335
- declare const loadPackageConfig: () => Promise<PackageJsonEx>;
336
-
337
- declare const xy: () => Promise<{
338
- [x: string]: unknown;
339
- _: (string | number)[];
340
- $0: string;
341
- } | {
342
- [x: string]: unknown;
343
- _: (string | number)[];
344
- $0: string;
345
- }>;
346
-
347
- declare const xyBuildCommands: (args: Argv) => Argv<{}>;
348
-
349
- declare const xyCommonCommands: (args: Argv) => Argv<{}>;
350
-
351
- declare const xyDeployCommands: (args: Argv) => Argv<{}>;
352
-
353
- declare const xyInstallCommands: (args: Argv) => Argv<{}>;
354
-
355
- declare const xyLintCommands: (args: Argv) => Argv<{}>;
356
-
357
- declare const xyParseOptions: () => Argv;
358
-
359
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // src/lib/checkResult.ts
32
- var checkResult_exports = {};
33
- __export(checkResult_exports, {
34
- checkResult: () => checkResult
35
- });
36
- module.exports = __toCommonJS(checkResult_exports);
37
- var import_chalk = __toESM(require("chalk"), 1);
38
- var checkResult = /* @__PURE__ */ __name((name, result, level = "error", exitOnFail = false) => {
39
- if (result) {
40
- const exiting = exitOnFail ? "[Exiting Process]" : "[Continuing]";
41
- const chalkFunc = level === "error" ? import_chalk.default.red : import_chalk.default.yellow;
42
- console[level](chalkFunc(`${name} had ${result} failures ${exiting}`));
43
- if (exitOnFail) {
44
- process.exit(result);
45
- }
46
- }
47
- }, "checkResult");
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- checkResult
51
- });
52
- //# sourceMappingURL=checkResult.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/checkResult.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const checkResult = (name: string, result: number, level: 'error' | 'warn' = 'error', exitOnFail = false) => {\n if (result) {\n const exiting = exitOnFail ? '[Exiting Process]' : '[Continuing]'\n const chalkFunc = level === 'error' ? chalk.red : chalk.yellow\n console[level](chalkFunc(`${name} had ${result} failures ${exiting}`))\n if (exitOnFail) {\n process.exit(result)\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;mBAAkB;AAEX,IAAMA,cAAc,wBAACC,MAAcC,QAAgBC,QAA0B,SAASC,aAAa,UAAK;AAC7G,MAAIF,QAAQ;AACV,UAAMG,UAAUD,aAAa,sBAAsB;AACnD,UAAME,YAAYH,UAAU,UAAUI,aAAAA,QAAMC,MAAMD,aAAAA,QAAME;AACxDC,YAAQP,KAAAA,EAAOG,UAAU,GAAGL,IAAAA,QAAYC,MAAAA,aAAmBG,OAAAA,EAAS,CAAA;AACpE,QAAID,YAAY;AACdO,cAAQC,KAAKV,MAAAA;IACf;EACF;AACF,GAT2B;","names":["checkResult","name","result","level","exitOnFail","exiting","chalkFunc","chalk","red","yellow","console","process","exit"]}
@@ -1,93 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/lib/createBuildConfig.ts
22
- var createBuildConfig_exports = {};
23
- __export(createBuildConfig_exports, {
24
- createBuildConfig: () => createBuildConfig
25
- });
26
- module.exports = __toCommonJS(createBuildConfig_exports);
27
- var import_node_fs = require("fs");
28
-
29
- // src/lib/defaultBuildConfig.ts
30
- var defaultBuildConfig = {
31
- compilerOptions: {
32
- rootDir: "src",
33
- rootDirs: [
34
- "package.json"
35
- ]
36
- },
37
- exclude: [
38
- "**/build",
39
- "**/dist",
40
- "**/node_modules",
41
- "**/*.spec.*",
42
- "**/*.spec",
43
- "**/*.stories.*",
44
- "**/*.example.*",
45
- "**/spec/*",
46
- "**/stories/*"
47
- ],
48
- include: [
49
- "src"
50
- ]
51
- };
52
-
53
- // src/lib/createBuildConfig.ts
54
- var getGeneralTypescriptConfig = /* @__PURE__ */ __name((location) => {
55
- let generalConfig;
56
- try {
57
- generalConfig = (0, import_node_fs.readFileSync)(`${location}/tsconfig.json`, {
58
- encoding: "utf8"
59
- });
60
- } catch {
61
- return false;
62
- }
63
- return JSON.parse(generalConfig);
64
- }, "getGeneralTypescriptConfig");
65
- var createBuildConfig = /* @__PURE__ */ __name((location, module2, target, outDirSuffix) => {
66
- const generalConfigObject = getGeneralTypescriptConfig(location);
67
- if (generalConfigObject === false) {
68
- return void 0;
69
- }
70
- return {
71
- ...generalConfigObject,
72
- compilerOptions: {
73
- ...defaultBuildConfig.compilerOptions,
74
- ...generalConfigObject.compilerOptions,
75
- module: module2,
76
- outDir: `./${generalConfigObject.compilerOptions?.outDir ?? "dist"}/${outDirSuffix}`,
77
- target
78
- },
79
- exclude: [
80
- ...generalConfigObject.exclude ?? [],
81
- ...defaultBuildConfig.exclude
82
- ],
83
- include: [
84
- ...generalConfigObject.include ?? [],
85
- ...defaultBuildConfig.include
86
- ]
87
- };
88
- }, "createBuildConfig");
89
- // Annotate the CommonJS export names for ESM import in node:
90
- 0 && (module.exports = {
91
- createBuildConfig
92
- });
93
- //# sourceMappingURL=createBuildConfig.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/createBuildConfig.ts","../../src/lib/defaultBuildConfig.ts"],"sourcesContent":["import { readFileSync } from 'node:fs'\n\nimport { defaultBuildConfig } from './defaultBuildConfig.ts'\n\nconst getGeneralTypescriptConfig = (location: string) => {\n let generalConfig: string | undefined\n try {\n generalConfig = readFileSync(`${location}/tsconfig.json`, { encoding: 'utf8' })\n } catch {\n return false\n }\n return JSON.parse(generalConfig)\n}\n\nexport const createBuildConfig = (\n location: string,\n module: 'ESNext' | 'CommonJS',\n target: 'ESNext' | 'ES6',\n outDirSuffix: string,\n): Record<string, unknown> | undefined => {\n const generalConfigObject = getGeneralTypescriptConfig(location)\n if (generalConfigObject === false) {\n return undefined\n }\n return {\n ...generalConfigObject,\n compilerOptions: {\n ...defaultBuildConfig.compilerOptions,\n ...generalConfigObject.compilerOptions,\n module,\n outDir: `./${generalConfigObject.compilerOptions?.outDir ?? 'dist'}/${outDirSuffix}`,\n target,\n },\n exclude: [...(generalConfigObject.exclude ?? []), ...defaultBuildConfig.exclude],\n include: [...(generalConfigObject.include ?? []), ...defaultBuildConfig.include],\n }\n}\n","export const defaultBuildConfig = {\n compilerOptions: {\n rootDir: 'src',\n rootDirs: ['package.json'],\n },\n exclude: ['**/build', '**/dist', '**/node_modules', '**/*.spec.*', '**/*.spec', '**/*.stories.*', '**/*.example.*', '**/spec/*', '**/stories/*'],\n include: ['src'],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;qBAA6B;;;ACAtB,IAAMA,qBAAqB;EAChCC,iBAAiB;IACfC,SAAS;IACTC,UAAU;MAAC;;EACb;EACAC,SAAS;IAAC;IAAY;IAAW;IAAmB;IAAe;IAAa;IAAkB;IAAkB;IAAa;;EACjIC,SAAS;IAAC;;AACZ;;;ADHA,IAAMC,6BAA6B,wBAACC,aAAAA;AAClC,MAAIC;AACJ,MAAI;AACFA,wBAAgBC,6BAAa,GAAGF,QAAAA,kBAA0B;MAAEG,UAAU;IAAO,CAAA;EAC/E,QAAQ;AACN,WAAO;EACT;AACA,SAAOC,KAAKC,MAAMJ,aAAAA;AACpB,GARmC;AAU5B,IAAMK,oBAAoB,wBAC/BN,UACAO,SACAC,QACAC,iBAAAA;AAEA,QAAMC,sBAAsBX,2BAA2BC,QAAAA;AACvD,MAAIU,wBAAwB,OAAO;AACjC,WAAOC;EACT;AACA,SAAO;IACL,GAAGD;IACHE,iBAAiB;MACf,GAAGC,mBAAmBD;MACtB,GAAGF,oBAAoBE;MACvBL,QAAAA;MACAO,QAAQ,KAAKJ,oBAAoBE,iBAAiBE,UAAU,MAAA,IAAUL,YAAAA;MACtED;IACF;IACAO,SAAS;SAAKL,oBAAoBK,WAAW,CAAA;SAAQF,mBAAmBE;;IACxEC,SAAS;SAAKN,oBAAoBM,WAAW,CAAA;SAAQH,mBAAmBG;;EAC1E;AACF,GAtBiC;","names":["defaultBuildConfig","compilerOptions","rootDir","rootDirs","exclude","include","getGeneralTypescriptConfig","location","generalConfig","readFileSync","encoding","JSON","parse","createBuildConfig","module","target","outDirSuffix","generalConfigObject","undefined","compilerOptions","defaultBuildConfig","outDir","exclude","include"]}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/lib/defaultBuildConfig.ts
21
- var defaultBuildConfig_exports = {};
22
- __export(defaultBuildConfig_exports, {
23
- defaultBuildConfig: () => defaultBuildConfig
24
- });
25
- module.exports = __toCommonJS(defaultBuildConfig_exports);
26
- var defaultBuildConfig = {
27
- compilerOptions: {
28
- rootDir: "src",
29
- rootDirs: [
30
- "package.json"
31
- ]
32
- },
33
- exclude: [
34
- "**/build",
35
- "**/dist",
36
- "**/node_modules",
37
- "**/*.spec.*",
38
- "**/*.spec",
39
- "**/*.stories.*",
40
- "**/*.example.*",
41
- "**/spec/*",
42
- "**/stories/*"
43
- ],
44
- include: [
45
- "src"
46
- ]
47
- };
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- defaultBuildConfig
51
- });
52
- //# sourceMappingURL=defaultBuildConfig.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/lib/defaultBuildConfig.ts"],"sourcesContent":["export const defaultBuildConfig = {\n compilerOptions: {\n rootDir: 'src',\n rootDirs: ['package.json'],\n },\n exclude: ['**/build', '**/dist', '**/node_modules', '**/*.spec.*', '**/*.spec', '**/*.stories.*', '**/*.example.*', '**/spec/*', '**/stories/*'],\n include: ['src'],\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAAO,IAAMA,qBAAqB;EAChCC,iBAAiB;IACfC,SAAS;IACTC,UAAU;MAAC;;EACb;EACAC,SAAS;IAAC;IAAY;IAAW;IAAmB;IAAe;IAAa;IAAkB;IAAkB;IAAa;;EACjIC,SAAS;IAAC;;AACZ;","names":["defaultBuildConfig","compilerOptions","rootDir","rootDirs","exclude","include"]}