@oinone/cli 7.2.5 → 7.2.7

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 (224) hide show
  1. package/README.md +100 -71
  2. package/README_zh-CN.md +100 -71
  3. package/bin/cli.js +48 -473
  4. package/bin/commands/cache.js +70 -0
  5. package/bin/commands/create/enterprise.js +81 -0
  6. package/bin/commands/create/index.js +128 -0
  7. package/bin/commands/create/project.js +81 -0
  8. package/bin/commands/create/prompts.js +126 -0
  9. package/bin/commands/create/static-resources.js +159 -0
  10. package/bin/commands/create/template.js +38 -0
  11. package/bin/commands/create/update-check.js +44 -0
  12. package/bin/commands/create/version-source.js +32 -0
  13. package/bin/commands/create.js +1 -0
  14. package/bin/commands/doctor.js +51 -0
  15. package/bin/config.js +54 -0
  16. package/bin/i18n.js +51 -125
  17. package/bin/locales/en-US.json +81 -0
  18. package/bin/locales/zh-CN.json +81 -0
  19. package/bin/utils/oinone-version.js +60 -0
  20. package/package.json +2 -2
  21. package/template-6.4.0/packages/ss-boot/public/favicon.ico +0 -0
  22. package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/main.ts +1 -2
  23. package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/vue.config.js +1 -1
  24. package/{template-7.2.0-community → template-7.2.0}/npmrc +2 -0
  25. package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/package.json +3 -2
  26. package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/rollup.config.js +2 -0
  27. package/template-7.2.0/packages/ss-boot/public/favicon.ico +0 -0
  28. package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/src/main.ts +1 -2
  29. package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/vue.config.js +1 -1
  30. package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-oinone/package.json +3 -2
  31. package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-oinone/rollup.config.js +2 -0
  32. package/{template-7.2.0-community → template-7.2.0}/packages/ss-project/package.json +3 -2
  33. package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-project/rollup.config.js +2 -0
  34. package/template-6.4.0-community/packages/ss-boot/public/favicon.ico +0 -0
  35. package/template-6.4.0-enterprise/.eslintignore +0 -5
  36. package/template-6.4.0-enterprise/.eslintrc.json +0 -72
  37. package/template-6.4.0-enterprise/_package.json +0 -47
  38. package/template-6.4.0-enterprise/npmrc +0 -3
  39. package/template-6.4.0-enterprise/packages/ss-admin-widget/package.json +0 -25
  40. package/template-6.4.0-enterprise/packages/ss-admin-widget/rollup.config.js +0 -73
  41. package/template-6.4.0-enterprise/packages/ss-admin-widget/tsconfig.json +0 -45
  42. package/template-6.4.0-enterprise/packages/ss-boot/package.json +0 -66
  43. package/template-6.4.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
  44. package/template-6.4.0-enterprise/packages/ss-boot/src/main.ts +0 -69
  45. package/template-6.4.0-enterprise/packages/ss-boot/tsconfig.json +0 -44
  46. package/template-6.4.0-enterprise/packages/ss-boot/vue.config.js +0 -84
  47. package/template-6.4.0-enterprise/packages/ss-oinone/package.json +0 -29
  48. package/template-6.4.0-enterprise/packages/ss-oinone/rollup.config.js +0 -82
  49. package/template-6.4.0-enterprise/packages/ss-oinone/tsconfig.json +0 -42
  50. package/template-6.4.0-enterprise/packages/ss-project/package.json +0 -30
  51. package/template-6.4.0-enterprise/packages/ss-project/rollup.config.js +0 -83
  52. package/template-6.4.0-enterprise/packages/ss-project/tsconfig.json +0 -42
  53. package/template-6.4.0-enterprise/scripts/build/postbuild.js +0 -42
  54. package/template-6.4.0-enterprise/scripts/build/prebuild-only.js +0 -48
  55. package/template-7.2.0-community/.prettierrc.json +0 -8
  56. package/template-7.2.0-community/README.md +0 -59
  57. package/template-7.2.0-community/gitignore +0 -58
  58. package/template-7.2.0-community/lerna.json +0 -12
  59. package/template-7.2.0-community/packages/ss-admin-widget/index.ts +0 -1
  60. package/template-7.2.0-community/packages/ss-admin-widget/scripts/postpublish.js +0 -13
  61. package/template-7.2.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +0 -24
  62. package/template-7.2.0-community/packages/ss-admin-widget/src/index.ts +0 -1
  63. package/template-7.2.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +0 -10
  64. package/template-7.2.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +0 -6
  65. package/template-7.2.0-community/packages/ss-boot/.env +0 -1
  66. package/template-7.2.0-community/packages/ss-boot/.env.example +0 -6
  67. package/template-7.2.0-community/packages/ss-boot/public/favicon.ico +0 -0
  68. package/template-7.2.0-community/packages/ss-boot/public/index.html +0 -83
  69. package/template-7.2.0-community/packages/ss-boot/public/manifest.js +0 -5
  70. package/template-7.2.0-community/packages/ss-boot/src/shim-translate.d.ts +0 -10
  71. package/template-7.2.0-community/packages/ss-boot/src/shim-vue.d.ts +0 -6
  72. package/template-7.2.0-community/packages/ss-oinone/index.ts +0 -1
  73. package/template-7.2.0-community/packages/ss-oinone/package.json +0 -30
  74. package/template-7.2.0-community/packages/ss-oinone/rollup.config.js +0 -14
  75. package/template-7.2.0-community/packages/ss-oinone/scripts/postpublish.js +0 -13
  76. package/template-7.2.0-community/packages/ss-oinone/scripts/prepublish-only.js +0 -24
  77. package/template-7.2.0-community/packages/ss-oinone/src/index.ts +0 -1
  78. package/template-7.2.0-community/packages/ss-oinone/src/shim-translate.d.ts +0 -10
  79. package/template-7.2.0-community/packages/ss-oinone/src/shim-vue.d.ts +0 -6
  80. package/template-7.2.0-community/packages/ss-project/index.ts +0 -1
  81. package/template-7.2.0-community/packages/ss-project/rollup.config.js +0 -14
  82. package/template-7.2.0-community/packages/ss-project/scripts/postpublish.js +0 -13
  83. package/template-7.2.0-community/packages/ss-project/scripts/prepublish-only.js +0 -24
  84. package/template-7.2.0-community/packages/ss-project/src/index.ts +0 -1
  85. package/template-7.2.0-community/packages/ss-project/src/shim-translate.d.ts +0 -10
  86. package/template-7.2.0-community/packages/ss-project/src/shim-vue.d.ts +0 -6
  87. package/template-7.2.0-community/pnpm-workspace.yaml +0 -3
  88. package/template-7.2.0-community/scripts/build/inset-tsconfig.js +0 -68
  89. package/template-7.2.0-community/scripts/build/package-name.js +0 -25
  90. package/template-7.2.0-community/scripts/clean.mjs +0 -22
  91. package/template-7.2.0-enterprise/.prettierrc.json +0 -8
  92. package/template-7.2.0-enterprise/README.md +0 -59
  93. package/template-7.2.0-enterprise/_package.json +0 -57
  94. package/template-7.2.0-enterprise/eslint.config.ts +0 -23
  95. package/template-7.2.0-enterprise/gitignore +0 -58
  96. package/template-7.2.0-enterprise/lerna.json +0 -12
  97. package/template-7.2.0-enterprise/npmrc +0 -3
  98. package/template-7.2.0-enterprise/packages/ss-admin-widget/index.ts +0 -1
  99. package/template-7.2.0-enterprise/packages/ss-admin-widget/package.json +0 -27
  100. package/template-7.2.0-enterprise/packages/ss-admin-widget/rollup.config.js +0 -14
  101. package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +0 -13
  102. package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +0 -24
  103. package/template-7.2.0-enterprise/packages/ss-admin-widget/src/index.ts +0 -1
  104. package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +0 -10
  105. package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +0 -6
  106. package/template-7.2.0-enterprise/packages/ss-admin-widget/tsconfig.json +0 -14
  107. package/template-7.2.0-enterprise/packages/ss-boot/.env +0 -1
  108. package/template-7.2.0-enterprise/packages/ss-boot/.env.example +0 -6
  109. package/template-7.2.0-enterprise/packages/ss-boot/package.json +0 -64
  110. package/template-7.2.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
  111. package/template-7.2.0-enterprise/packages/ss-boot/public/index.html +0 -83
  112. package/template-7.2.0-enterprise/packages/ss-boot/public/manifest.js +0 -5
  113. package/template-7.2.0-enterprise/packages/ss-boot/src/main.ts +0 -66
  114. package/template-7.2.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +0 -10
  115. package/template-7.2.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +0 -6
  116. package/template-7.2.0-enterprise/packages/ss-boot/tsconfig.json +0 -27
  117. package/template-7.2.0-enterprise/packages/ss-boot/vue.config.js +0 -87
  118. package/template-7.2.0-enterprise/packages/ss-oinone/index.ts +0 -1
  119. package/template-7.2.0-enterprise/packages/ss-oinone/scripts/postpublish.js +0 -13
  120. package/template-7.2.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +0 -24
  121. package/template-7.2.0-enterprise/packages/ss-oinone/src/index.ts +0 -1
  122. package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +0 -10
  123. package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +0 -6
  124. package/template-7.2.0-enterprise/packages/ss-oinone/tsconfig.json +0 -14
  125. package/template-7.2.0-enterprise/packages/ss-project/index.ts +0 -1
  126. package/template-7.2.0-enterprise/packages/ss-project/package.json +0 -30
  127. package/template-7.2.0-enterprise/packages/ss-project/scripts/postpublish.js +0 -13
  128. package/template-7.2.0-enterprise/packages/ss-project/scripts/prepublish-only.js +0 -24
  129. package/template-7.2.0-enterprise/packages/ss-project/src/index.ts +0 -1
  130. package/template-7.2.0-enterprise/packages/ss-project/src/shim-translate.d.ts +0 -10
  131. package/template-7.2.0-enterprise/packages/ss-project/src/shim-vue.d.ts +0 -6
  132. package/template-7.2.0-enterprise/packages/ss-project/tsconfig.json +0 -14
  133. package/template-7.2.0-enterprise/pnpm-workspace.yaml +0 -3
  134. package/template-7.2.0-enterprise/scripts/build/inset-tsconfig.js +0 -68
  135. package/template-7.2.0-enterprise/scripts/build/package-name.js +0 -25
  136. package/template-7.2.0-enterprise/scripts/clean.mjs +0 -22
  137. /package/{template-6.4.0-community → template-6.4.0}/.eslintignore +0 -0
  138. /package/{template-6.4.0-community → template-6.4.0}/.eslintrc.json +0 -0
  139. /package/{template-6.4.0-community → template-6.4.0}/.prettierrc.json +0 -0
  140. /package/{template-6.4.0-community → template-6.4.0}/README.md +0 -0
  141. /package/{template-6.4.0-community → template-6.4.0}/_package.json +0 -0
  142. /package/{template-6.4.0-community → template-6.4.0}/gitignore +0 -0
  143. /package/{template-6.4.0-community → template-6.4.0}/lerna.json +0 -0
  144. /package/{template-6.4.0-community → template-6.4.0}/npmrc +0 -0
  145. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/index.ts +0 -0
  146. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/package.json +0 -0
  147. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/rollup.config.js +0 -0
  148. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/scripts/postpublish.js +0 -0
  149. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/scripts/prepublish-only.js +0 -0
  150. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/index.ts +0 -0
  151. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/shim-translate.d.ts +0 -0
  152. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/shim-vue.d.ts +0 -0
  153. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/tsconfig.json +0 -0
  154. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/.env +0 -0
  155. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/.env.example +0 -0
  156. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/package.json +0 -0
  157. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/public/index.html +0 -0
  158. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/public/manifest.js +0 -0
  159. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/shim-translate.d.ts +0 -0
  160. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/shim-vue.d.ts +0 -0
  161. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/tsconfig.json +0 -0
  162. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/index.ts +0 -0
  163. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/package.json +0 -0
  164. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/rollup.config.js +0 -0
  165. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/postpublish.js +0 -0
  166. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/prepublish-only.js +0 -0
  167. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/index.ts +0 -0
  168. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/shim-translate.d.ts +0 -0
  169. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/shim-vue.d.ts +0 -0
  170. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/tsconfig.json +0 -0
  171. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/index.ts +0 -0
  172. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/package.json +0 -0
  173. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/rollup.config.js +0 -0
  174. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/postpublish.js +0 -0
  175. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/prepublish-only.js +0 -0
  176. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/index.ts +0 -0
  177. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/shim-translate.d.ts +0 -0
  178. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/shim-vue.d.ts +0 -0
  179. /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/tsconfig.json +0 -0
  180. /package/{template-6.4.0-community → template-6.4.0}/pnpm-workspace.yaml +0 -0
  181. /package/{template-6.4.0-community → template-6.4.0}/scripts/build/inset-tsconfig.js +0 -0
  182. /package/{template-6.4.0-community → template-6.4.0}/scripts/build/package-name.js +0 -0
  183. /package/{template-6.4.0-community → template-6.4.0}/scripts/build/postbuild.js +0 -0
  184. /package/{template-6.4.0-community → template-6.4.0}/scripts/build/prebuild-only.js +0 -0
  185. /package/{template-6.4.0-community → template-6.4.0}/scripts/clean.mjs +0 -0
  186. /package/{template-6.4.0-enterprise → template-7.2.0}/.prettierrc.json +0 -0
  187. /package/{template-6.4.0-enterprise → template-7.2.0}/README.md +0 -0
  188. /package/{template-7.2.0-community → template-7.2.0}/_package.json +0 -0
  189. /package/{template-7.2.0-community → template-7.2.0}/eslint.config.ts +0 -0
  190. /package/{template-6.4.0-enterprise → template-7.2.0}/gitignore +0 -0
  191. /package/{template-6.4.0-enterprise → template-7.2.0}/lerna.json +0 -0
  192. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/index.ts +0 -0
  193. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/scripts/postpublish.js +0 -0
  194. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/scripts/prepublish-only.js +0 -0
  195. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/index.ts +0 -0
  196. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/shim-translate.d.ts +0 -0
  197. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/shim-vue.d.ts +0 -0
  198. /package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/tsconfig.json +0 -0
  199. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/.env +0 -0
  200. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/.env.example +0 -0
  201. /package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/package.json +0 -0
  202. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/public/index.html +0 -0
  203. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/public/manifest.js +0 -0
  204. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/src/shim-translate.d.ts +0 -0
  205. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/src/shim-vue.d.ts +0 -0
  206. /package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/tsconfig.json +0 -0
  207. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/index.ts +0 -0
  208. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/scripts/postpublish.js +0 -0
  209. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/scripts/prepublish-only.js +0 -0
  210. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/index.ts +0 -0
  211. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/shim-translate.d.ts +0 -0
  212. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/shim-vue.d.ts +0 -0
  213. /package/{template-7.2.0-community → template-7.2.0}/packages/ss-oinone/tsconfig.json +0 -0
  214. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/index.ts +0 -0
  215. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/scripts/postpublish.js +0 -0
  216. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/scripts/prepublish-only.js +0 -0
  217. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/index.ts +0 -0
  218. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/shim-translate.d.ts +0 -0
  219. /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/shim-vue.d.ts +0 -0
  220. /package/{template-7.2.0-community → template-7.2.0}/packages/ss-project/tsconfig.json +0 -0
  221. /package/{template-6.4.0-enterprise → template-7.2.0}/pnpm-workspace.yaml +0 -0
  222. /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/build/inset-tsconfig.js +0 -0
  223. /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/build/package-name.js +0 -0
  224. /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/clean.mjs +0 -0
@@ -1,68 +0,0 @@
1
- const fs = require('fs').promises;
2
- const path = require('path');
3
- const packageNames = ['@oinone/kunlun-vue-admin-base'];
4
-
5
- const content = `{
6
- "compilerOptions": {
7
- "experimentalDecorators": true,
8
- "emitDecoratorMetadata": true,
9
- "allowJs": true,
10
- "target": "ES6",
11
- "module": "esnext",
12
- "strict": true,
13
- "importHelpers": true,
14
- "moduleResolution": "node",
15
- "esModuleInterop": true,
16
- "allowSyntheticDefaultImports": true,
17
- "sourceMap": true,
18
- "skipLibCheck": true,
19
- "declaration": true,
20
- "baseUrl": ".",
21
- "lib": [
22
- "ES2018",
23
- "esnext",
24
- "dom",
25
- "dom.iterable",
26
- "scripthost"
27
- ],
28
- "types": [
29
- "node",
30
- "reflect-metadata",
31
- "jest"
32
- ],
33
- "typeRoots": [
34
- "node_modules/@types"
35
- ],
36
- "declarationDir": "dist/types",
37
- "outDir": "dist",
38
- "noImplicitAny": false,
39
- "incremental": true,
40
- "resolveJsonModule": true
41
- },
42
- "include": [
43
- "packages"
44
- ],
45
- "exclude": [
46
- "node_modules",
47
- "dist"
48
- ]
49
- }
50
- `;
51
-
52
- async function insetTSConfig() {
53
- const oinoneCwd = path.resolve(process.cwd(), '../../node_modules');
54
-
55
- for (const packageName of packageNames) {
56
- const dependenciesPath = path.resolve(oinoneCwd, packageName);
57
- try {
58
- await fs.access(dependenciesPath);
59
- } catch (err) {
60
- console.error(`动态插入tsconfig失败: ${dependenciesPath}`, err);
61
- return;
62
- }
63
-
64
- await fs.writeFile(path.resolve(dependenciesPath, 'tsconfig.json'), content);
65
- }
66
- }
67
-
68
- module.exports = { insetTSConfig };
@@ -1,25 +0,0 @@
1
- const packageNames = [
2
- '@oinone/kunlun-cache',
3
- '@oinone/kunlun-dsl',
4
- '@oinone/kunlun-environment',
5
- '@oinone/kunlun-event',
6
- '@oinone/kunlun-expression',
7
- '@oinone/kunlun-meta',
8
- '@oinone/kunlun-shared',
9
- '@oinone/kunlun-request',
10
- '@oinone/kunlun-router',
11
- '@oinone/kunlun-service',
12
- '@oinone/kunlun-spi',
13
- '@oinone/kunlun-state',
14
- '@oinone/kunlun-theme',
15
- '@oinone/kunlun-engine',
16
- '@oinone/kunlun-vue-router',
17
- '@oinone/kunlun-vue-ui',
18
- '@oinone/kunlun-vue-ui-antd',
19
- '@oinone/kunlun-vue-ui-common',
20
- '@oinone/kunlun-vue-admin-base',
21
- '@oinone/kunlun-vue-ui-el',
22
- '@oinone/kunlun-vue-widget'
23
- ];
24
-
25
- module.exports = { packageNames };
@@ -1,22 +0,0 @@
1
- import { rimraf } from 'rimraf';
2
- import { globSync } from 'glob';
3
-
4
- // 匹配所有 node_modules 文件夹
5
- const files = globSync('packages/**/node_modules')
6
-
7
- // 删除所有匹配的 node_modules
8
- files.forEach((file) => {
9
- rimraf(file).then((deleted) => {
10
- if (!deleted) console.error(`Error deleting ${file}:`, err);
11
- else console.log(`Deleted ${file}`);
12
- });
13
- });
14
-
15
- // 删除其他文件
16
- const filesToDelete = ['package-lock.json', 'pnpm-lock.yaml', 'node_modules'];
17
- filesToDelete.forEach(file => {
18
- rimraf(file).then((deleted) => {
19
- if (!deleted) console.error(`Error deleting ${file}:`, err);
20
- else console.log(`Deleted ${file}`);
21
- });
22
- });