@strapi/strapi 5.0.0-beta.8 → 5.0.0-beta.9

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 (95) hide show
  1. package/dist/cli/commands/index.d.ts.map +1 -1
  2. package/dist/cli/commands/index.js +1 -14
  3. package/dist/cli/commands/index.js.map +1 -1
  4. package/dist/cli/commands/index.mjs +1 -14
  5. package/dist/cli/commands/index.mjs.map +1 -1
  6. package/dist/cli/index.d.ts.map +1 -1
  7. package/dist/cli/index.js +30 -0
  8. package/dist/cli/index.js.map +1 -1
  9. package/dist/cli/index.mjs +30 -0
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/package.json +23 -23
  12. package/dist/cli/commands/plugin/build.d.ts +0 -7
  13. package/dist/cli/commands/plugin/build.d.ts.map +0 -1
  14. package/dist/cli/commands/plugin/build.js +0 -88
  15. package/dist/cli/commands/plugin/build.js.map +0 -1
  16. package/dist/cli/commands/plugin/build.mjs +0 -85
  17. package/dist/cli/commands/plugin/build.mjs.map +0 -1
  18. package/dist/cli/commands/plugin/init/action.d.ts +0 -6
  19. package/dist/cli/commands/plugin/init/action.d.ts.map +0 -1
  20. package/dist/cli/commands/plugin/init/action.js +0 -413
  21. package/dist/cli/commands/plugin/init/action.js.map +0 -1
  22. package/dist/cli/commands/plugin/init/action.mjs +0 -408
  23. package/dist/cli/commands/plugin/init/action.mjs.map +0 -1
  24. package/dist/cli/commands/plugin/init/command.d.ts +0 -7
  25. package/dist/cli/commands/plugin/init/command.d.ts.map +0 -1
  26. package/dist/cli/commands/plugin/init/command.js +0 -9
  27. package/dist/cli/commands/plugin/init/command.js.map +0 -1
  28. package/dist/cli/commands/plugin/init/command.mjs +0 -10
  29. package/dist/cli/commands/plugin/init/command.mjs.map +0 -1
  30. package/dist/cli/commands/plugin/init/files/admin.d.ts +0 -5
  31. package/dist/cli/commands/plugin/init/files/admin.d.ts.map +0 -1
  32. package/dist/cli/commands/plugin/init/files/admin.js +0 -283
  33. package/dist/cli/commands/plugin/init/files/admin.js.map +0 -1
  34. package/dist/cli/commands/plugin/init/files/admin.mjs +0 -283
  35. package/dist/cli/commands/plugin/init/files/admin.mjs.map +0 -1
  36. package/dist/cli/commands/plugin/init/files/editorConfig.d.ts +0 -4
  37. package/dist/cli/commands/plugin/init/files/editorConfig.d.ts.map +0 -1
  38. package/dist/cli/commands/plugin/init/files/editorConfig.js +0 -26
  39. package/dist/cli/commands/plugin/init/files/editorConfig.js.map +0 -1
  40. package/dist/cli/commands/plugin/init/files/editorConfig.mjs +0 -26
  41. package/dist/cli/commands/plugin/init/files/editorConfig.mjs.map +0 -1
  42. package/dist/cli/commands/plugin/init/files/eslint.d.ts +0 -4
  43. package/dist/cli/commands/plugin/init/files/eslint.d.ts.map +0 -1
  44. package/dist/cli/commands/plugin/init/files/eslint.js +0 -11
  45. package/dist/cli/commands/plugin/init/files/eslint.js.map +0 -1
  46. package/dist/cli/commands/plugin/init/files/eslint.mjs +0 -11
  47. package/dist/cli/commands/plugin/init/files/eslint.mjs.map +0 -1
  48. package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts +0 -4
  49. package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts.map +0 -1
  50. package/dist/cli/commands/plugin/init/files/gitIgnore.js +0 -34
  51. package/dist/cli/commands/plugin/init/files/gitIgnore.js.map +0 -1
  52. package/dist/cli/commands/plugin/init/files/gitIgnore.mjs +0 -34
  53. package/dist/cli/commands/plugin/init/files/gitIgnore.mjs.map +0 -1
  54. package/dist/cli/commands/plugin/init/files/prettier.d.ts +0 -5
  55. package/dist/cli/commands/plugin/init/files/prettier.d.ts.map +0 -1
  56. package/dist/cli/commands/plugin/init/files/prettier.js +0 -25
  57. package/dist/cli/commands/plugin/init/files/prettier.js.map +0 -1
  58. package/dist/cli/commands/plugin/init/files/prettier.mjs +0 -25
  59. package/dist/cli/commands/plugin/init/files/prettier.mjs.map +0 -1
  60. package/dist/cli/commands/plugin/init/files/server.d.ts +0 -5
  61. package/dist/cli/commands/plugin/init/files/server.d.ts.map +0 -1
  62. package/dist/cli/commands/plugin/init/files/server.js +0 -360
  63. package/dist/cli/commands/plugin/init/files/server.js.map +0 -1
  64. package/dist/cli/commands/plugin/init/files/server.mjs +0 -360
  65. package/dist/cli/commands/plugin/init/files/server.mjs.map +0 -1
  66. package/dist/cli/commands/plugin/init/files/typescript.d.ts +0 -9
  67. package/dist/cli/commands/plugin/init/files/typescript.d.ts.map +0 -1
  68. package/dist/cli/commands/plugin/init/files/typescript.js +0 -66
  69. package/dist/cli/commands/plugin/init/files/typescript.js.map +0 -1
  70. package/dist/cli/commands/plugin/init/files/typescript.mjs +0 -66
  71. package/dist/cli/commands/plugin/init/files/typescript.mjs.map +0 -1
  72. package/dist/cli/commands/plugin/init/index.d.ts +0 -2
  73. package/dist/cli/commands/plugin/init/index.d.ts.map +0 -1
  74. package/dist/cli/commands/plugin/link-watch.d.ts +0 -7
  75. package/dist/cli/commands/plugin/link-watch.d.ts.map +0 -1
  76. package/dist/cli/commands/plugin/link-watch.js +0 -89
  77. package/dist/cli/commands/plugin/link-watch.js.map +0 -1
  78. package/dist/cli/commands/plugin/link-watch.mjs +0 -82
  79. package/dist/cli/commands/plugin/link-watch.mjs.map +0 -1
  80. package/dist/cli/commands/plugin/verify.d.ts +0 -7
  81. package/dist/cli/commands/plugin/verify.d.ts.map +0 -1
  82. package/dist/cli/commands/plugin/verify.js +0 -37
  83. package/dist/cli/commands/plugin/verify.js.map +0 -1
  84. package/dist/cli/commands/plugin/verify.mjs +0 -34
  85. package/dist/cli/commands/plugin/verify.mjs.map +0 -1
  86. package/dist/cli/commands/plugin/watch.d.ts +0 -7
  87. package/dist/cli/commands/plugin/watch.d.ts.map +0 -1
  88. package/dist/cli/commands/plugin/watch.js +0 -86
  89. package/dist/cli/commands/plugin/watch.js.map +0 -1
  90. package/dist/cli/commands/plugin/watch.mjs +0 -83
  91. package/dist/cli/commands/plugin/watch.mjs.map +0 -1
  92. package/dist/cli/utils/pkg.js +0 -111
  93. package/dist/cli/utils/pkg.js.map +0 -1
  94. package/dist/cli/utils/pkg.mjs +0 -87
  95. package/dist/cli/utils/pkg.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,aAAa,EAmCnC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,aAAa,EA2BnC,CAAC"}
@@ -26,11 +26,6 @@ const version = require("./version.js");
26
26
  const command = require("./export/command.js");
27
27
  const command$1 = require("./import/command.js");
28
28
  const command$2 = require("./transfer/command.js");
29
- const build$1 = require("./plugin/build.js");
30
- const command$3 = require("./plugin/init/command.js");
31
- const linkWatch = require("./plugin/link-watch.js");
32
- const watch = require("./plugin/watch.js");
33
- const verify = require("./plugin/verify.js");
34
29
  const commands = [
35
30
  createUser.command,
36
31
  resetUserPassword.command,
@@ -57,15 +52,7 @@ const commands = [
57
52
  develop.command,
58
53
  command,
59
54
  command$1,
60
- command$2,
61
- /**
62
- * Plugins
63
- */
64
- build$1.command,
65
- command$3,
66
- linkWatch.command,
67
- watch.command,
68
- verify.command
55
+ command$2
69
56
  ];
70
57
  exports.commands = commands;
71
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/cli/commands/index.ts"],"sourcesContent":["import { command as createAdminUser } from './admin/create-user';\nimport { command as resetAdminUserPassword } from './admin/reset-user-password';\nimport { command as listComponents } from './components/list';\nimport { command as configurationDump } from './configuration/dump';\nimport { command as configurationRestore } from './configuration/restore';\nimport { command as listContentTypes } from './content-types/list';\nimport { command as listControllers } from './controllers/list';\nimport { command as listHooks } from './hooks/list';\nimport { command as listMiddlewares } from './middlewares/list';\nimport { command as listPolicies } from './policies/list';\nimport { command as listRoutes } from './routes/list';\nimport { command as listServices } from './services/list';\nimport { command as disableTelemetry } from './telemetry/disable';\nimport { command as enableTelemetry } from './telemetry/enable';\nimport { command as generateTemplates } from './templates/generate';\nimport { command as generateTsTypes } from './ts/generate-types';\nimport { command as buildCommand } from './build';\nimport { command as consoleCommand } from './console';\nimport { command as developCommand } from './develop';\nimport { command as generateCommand } from './generate';\nimport { command as reportCommand } from './report';\nimport { command as startCommand } from './start';\nimport { command as versionCommand } from './version';\nimport exportCommand from './export/command';\nimport importCommand from './import/command';\nimport transferCommand from './transfer/command';\n\nimport { command as buildPluginCommand } from './plugin/build';\nimport { command as initPluginCommand } from './plugin/init';\nimport { command as linkWatchPluginCommand } from './plugin/link-watch';\nimport { command as watchPluginCommand } from './plugin/watch';\nimport { command as verifyPluginCommand } from './plugin/verify';\nimport { StrapiCommand } from '../types';\n\nexport const commands: StrapiCommand[] = [\n createAdminUser,\n resetAdminUserPassword,\n listComponents,\n configurationDump,\n configurationRestore,\n consoleCommand,\n listContentTypes,\n listControllers,\n generateCommand,\n listHooks,\n listMiddlewares,\n listPolicies,\n reportCommand,\n listRoutes,\n listServices,\n startCommand,\n disableTelemetry,\n enableTelemetry,\n generateTemplates,\n generateTsTypes,\n versionCommand,\n buildCommand,\n developCommand,\n exportCommand,\n importCommand,\n transferCommand,\n /**\n * Plugins\n */\n buildPluginCommand,\n initPluginCommand,\n linkWatchPluginCommand,\n watchPluginCommand,\n verifyPluginCommand,\n];\n"],"names":["createAdminUser","resetAdminUserPassword","listComponents","configurationDump","configurationRestore","consoleCommand","listContentTypes","listControllers","generateCommand","listHooks","listMiddlewares","listPolicies","reportCommand","listRoutes","listServices","startCommand","disableTelemetry","enableTelemetry","generateTemplates","generateTsTypes","versionCommand","buildCommand","developCommand","exportCommand","importCommand","transferCommand","buildPluginCommand","initPluginCommand","linkWatchPluginCommand","watchPluginCommand","verifyPluginCommand"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,MAAM,WAA4B;AAAA,EACvCA,WAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,KAAA;AAAA,EACAC,KAAA;AAAA,EACAC,QAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,SAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,MAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC,WAAA;AAAA,EACAC,cAAA;AAAA,EACAC,QAAA;AAAA,EACAC,MAAA;AAAA,EACAC,QAAA;AAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA;AAAAA;AAAAA;AAAAA,EAIAC,QAAA;AAAA,EACAC;AAAAA,EACAC,UAAA;AAAA,EACAC,MAAA;AAAA,EACAC,OAAA;AACF;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/cli/commands/index.ts"],"sourcesContent":["import { command as createAdminUser } from './admin/create-user';\nimport { command as resetAdminUserPassword } from './admin/reset-user-password';\nimport { command as listComponents } from './components/list';\nimport { command as configurationDump } from './configuration/dump';\nimport { command as configurationRestore } from './configuration/restore';\nimport { command as listContentTypes } from './content-types/list';\nimport { command as listControllers } from './controllers/list';\nimport { command as listHooks } from './hooks/list';\nimport { command as listMiddlewares } from './middlewares/list';\nimport { command as listPolicies } from './policies/list';\nimport { command as listRoutes } from './routes/list';\nimport { command as listServices } from './services/list';\nimport { command as disableTelemetry } from './telemetry/disable';\nimport { command as enableTelemetry } from './telemetry/enable';\nimport { command as generateTemplates } from './templates/generate';\nimport { command as generateTsTypes } from './ts/generate-types';\nimport { command as buildCommand } from './build';\nimport { command as consoleCommand } from './console';\nimport { command as developCommand } from './develop';\nimport { command as generateCommand } from './generate';\nimport { command as reportCommand } from './report';\nimport { command as startCommand } from './start';\nimport { command as versionCommand } from './version';\nimport exportCommand from './export/command';\nimport importCommand from './import/command';\nimport transferCommand from './transfer/command';\n\nimport { StrapiCommand } from '../types';\n\nexport const commands: StrapiCommand[] = [\n createAdminUser,\n resetAdminUserPassword,\n listComponents,\n configurationDump,\n configurationRestore,\n consoleCommand,\n listContentTypes,\n listControllers,\n generateCommand,\n listHooks,\n listMiddlewares,\n listPolicies,\n reportCommand,\n listRoutes,\n listServices,\n startCommand,\n disableTelemetry,\n enableTelemetry,\n generateTemplates,\n generateTsTypes,\n versionCommand,\n buildCommand,\n developCommand,\n exportCommand,\n importCommand,\n transferCommand,\n];\n"],"names":["createAdminUser","resetAdminUserPassword","listComponents","configurationDump","configurationRestore","consoleCommand","listContentTypes","listControllers","generateCommand","listHooks","listMiddlewares","listPolicies","reportCommand","listRoutes","listServices","startCommand","disableTelemetry","enableTelemetry","generateTemplates","generateTsTypes","versionCommand","buildCommand","developCommand","exportCommand","importCommand","transferCommand"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,WAA4B;AAAA,EACvCA,WAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,KAAA;AAAA,EACAC,KAAA;AAAA,EACAC,QAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,SAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,MAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC,WAAA;AAAA,EACAC,cAAA;AAAA,EACAC,QAAA;AAAA,EACAC,MAAA;AAAA,EACAC,QAAA;AAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACF;;"}
@@ -24,11 +24,6 @@ import { command as command$k } from "./version.mjs";
24
24
  import command$n from "./export/command.mjs";
25
25
  import command$o from "./import/command.mjs";
26
26
  import command$p from "./transfer/command.mjs";
27
- import { command as command$q } from "./plugin/build.mjs";
28
- import command$r from "./plugin/init/command.mjs";
29
- import { command as command$s } from "./plugin/link-watch.mjs";
30
- import { command as command$t } from "./plugin/watch.mjs";
31
- import { command as command$u } from "./plugin/verify.mjs";
32
27
  const commands = [
33
28
  command,
34
29
  command$1,
@@ -55,15 +50,7 @@ const commands = [
55
50
  command$m,
56
51
  command$n,
57
52
  command$o,
58
- command$p,
59
- /**
60
- * Plugins
61
- */
62
- command$q,
63
- command$r,
64
- command$s,
65
- command$t,
66
- command$u
53
+ command$p
67
54
  ];
68
55
  export {
69
56
  commands
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/cli/commands/index.ts"],"sourcesContent":["import { command as createAdminUser } from './admin/create-user';\nimport { command as resetAdminUserPassword } from './admin/reset-user-password';\nimport { command as listComponents } from './components/list';\nimport { command as configurationDump } from './configuration/dump';\nimport { command as configurationRestore } from './configuration/restore';\nimport { command as listContentTypes } from './content-types/list';\nimport { command as listControllers } from './controllers/list';\nimport { command as listHooks } from './hooks/list';\nimport { command as listMiddlewares } from './middlewares/list';\nimport { command as listPolicies } from './policies/list';\nimport { command as listRoutes } from './routes/list';\nimport { command as listServices } from './services/list';\nimport { command as disableTelemetry } from './telemetry/disable';\nimport { command as enableTelemetry } from './telemetry/enable';\nimport { command as generateTemplates } from './templates/generate';\nimport { command as generateTsTypes } from './ts/generate-types';\nimport { command as buildCommand } from './build';\nimport { command as consoleCommand } from './console';\nimport { command as developCommand } from './develop';\nimport { command as generateCommand } from './generate';\nimport { command as reportCommand } from './report';\nimport { command as startCommand } from './start';\nimport { command as versionCommand } from './version';\nimport exportCommand from './export/command';\nimport importCommand from './import/command';\nimport transferCommand from './transfer/command';\n\nimport { command as buildPluginCommand } from './plugin/build';\nimport { command as initPluginCommand } from './plugin/init';\nimport { command as linkWatchPluginCommand } from './plugin/link-watch';\nimport { command as watchPluginCommand } from './plugin/watch';\nimport { command as verifyPluginCommand } from './plugin/verify';\nimport { StrapiCommand } from '../types';\n\nexport const commands: StrapiCommand[] = [\n createAdminUser,\n resetAdminUserPassword,\n listComponents,\n configurationDump,\n configurationRestore,\n consoleCommand,\n listContentTypes,\n listControllers,\n generateCommand,\n listHooks,\n listMiddlewares,\n listPolicies,\n reportCommand,\n listRoutes,\n listServices,\n startCommand,\n disableTelemetry,\n enableTelemetry,\n generateTemplates,\n generateTsTypes,\n versionCommand,\n buildCommand,\n developCommand,\n exportCommand,\n importCommand,\n transferCommand,\n /**\n * Plugins\n */\n buildPluginCommand,\n initPluginCommand,\n linkWatchPluginCommand,\n watchPluginCommand,\n verifyPluginCommand,\n];\n"],"names":["createAdminUser","resetAdminUserPassword","listComponents","configurationDump","configurationRestore","consoleCommand","listContentTypes","listControllers","generateCommand","listHooks","listMiddlewares","listPolicies","reportCommand","listRoutes","listServices","startCommand","disableTelemetry","enableTelemetry","generateTemplates","generateTsTypes","versionCommand","buildCommand","developCommand","exportCommand","importCommand","transferCommand","buildPluginCommand","initPluginCommand","linkWatchPluginCommand","watchPluginCommand","verifyPluginCommand"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,MAAM,WAA4B;AAAA,EACvCA;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA;AAAAA;AAAAA;AAAAA,EAIAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACF;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/cli/commands/index.ts"],"sourcesContent":["import { command as createAdminUser } from './admin/create-user';\nimport { command as resetAdminUserPassword } from './admin/reset-user-password';\nimport { command as listComponents } from './components/list';\nimport { command as configurationDump } from './configuration/dump';\nimport { command as configurationRestore } from './configuration/restore';\nimport { command as listContentTypes } from './content-types/list';\nimport { command as listControllers } from './controllers/list';\nimport { command as listHooks } from './hooks/list';\nimport { command as listMiddlewares } from './middlewares/list';\nimport { command as listPolicies } from './policies/list';\nimport { command as listRoutes } from './routes/list';\nimport { command as listServices } from './services/list';\nimport { command as disableTelemetry } from './telemetry/disable';\nimport { command as enableTelemetry } from './telemetry/enable';\nimport { command as generateTemplates } from './templates/generate';\nimport { command as generateTsTypes } from './ts/generate-types';\nimport { command as buildCommand } from './build';\nimport { command as consoleCommand } from './console';\nimport { command as developCommand } from './develop';\nimport { command as generateCommand } from './generate';\nimport { command as reportCommand } from './report';\nimport { command as startCommand } from './start';\nimport { command as versionCommand } from './version';\nimport exportCommand from './export/command';\nimport importCommand from './import/command';\nimport transferCommand from './transfer/command';\n\nimport { StrapiCommand } from '../types';\n\nexport const commands: StrapiCommand[] = [\n createAdminUser,\n resetAdminUserPassword,\n listComponents,\n configurationDump,\n configurationRestore,\n consoleCommand,\n listContentTypes,\n listControllers,\n generateCommand,\n listHooks,\n listMiddlewares,\n listPolicies,\n reportCommand,\n listRoutes,\n listServices,\n startCommand,\n disableTelemetry,\n enableTelemetry,\n generateTemplates,\n generateTsTypes,\n versionCommand,\n buildCommand,\n developCommand,\n exportCommand,\n importCommand,\n transferCommand,\n];\n"],"names":["createAdminUser","resetAdminUserPassword","listComponents","configurationDump","configurationRestore","consoleCommand","listContentTypes","listControllers","generateCommand","listHooks","listMiddlewares","listPolicies","reportCommand","listRoutes","listServices","startCommand","disableTelemetry","enableTelemetry","generateTemplates","generateTsTypes","versionCommand","buildCommand","developCommand","exportCommand","importCommand","transferCommand"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,WAA4B;AAAA,EACvCA;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,QAAA,MAAM,SAAS,SAAgB,MAAM,EAAE,wCAiDtC,CAAC;AAEF,QAAA,MAAM,MAAM,uDAGX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,QAAA,MAAM,SAAS,SAAgB,MAAM,EAAE,wCAqFtC,CAAC;AAEF,QAAA,MAAM,MAAM,uDAGX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
package/dist/cli/index.js CHANGED
@@ -38,6 +38,36 @@ const createCLI = async (argv, command = new commander.Command()) => {
38
38
  console.error(`Failed to load command`, e);
39
39
  }
40
40
  });
41
+ const deprecatedCommands = [
42
+ { name: "plugin:init", message: "Please use `npx @strapi/sdk-plugin init` instead." },
43
+ {
44
+ name: "plugin:verify",
45
+ message: "After migrating your plugin to v5, use `strapi-plugin verify`"
46
+ },
47
+ {
48
+ name: "plugin:watch",
49
+ message: "After migrating your plugin to v5, use `strapi-plugin watch`"
50
+ },
51
+ {
52
+ name: "plugin:watch:link",
53
+ message: "After migrating your plugin to v5, use `strapi-plugin watch:link`"
54
+ },
55
+ {
56
+ name: "plugin:build",
57
+ message: "After migrating your plugin to v5, use `strapi-plugin build`"
58
+ }
59
+ ];
60
+ deprecatedCommands.forEach(({ name, message }) => {
61
+ const deprecated = new commander.Command(name).command(name).description("(deprecated)").action(() => {
62
+ console.warn(
63
+ `The command ${name} has been deprecated. See the Strapi 5 migration guide for more information.`
64
+ );
65
+ if (message) {
66
+ console.warn(message);
67
+ }
68
+ });
69
+ command.addCommand(deprecated, { hidden: true });
70
+ });
41
71
  return command;
42
72
  };
43
73
  const runCLI = async (argv = process.argv, command = new commander.Command()) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/cli/index.ts"],"sourcesContent":["import { Command } from 'commander';\n\nimport { commands as strapiCommands } from './commands';\n\nimport { createLogger } from './utils/logger';\nimport { loadTsConfig } from './utils/tsconfig';\nimport { CLIContext } from './types';\n\nconst createCLI = async (argv: string[], command = new Command()) => {\n // Initial program setup\n command.storeOptionsAsProperties(false).allowUnknownOption(true);\n\n // Help command\n command.helpOption('-h, --help', 'Display help for command');\n command.addHelpCommand('help [command]', 'Display help for command');\n\n command.version(\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('../../package.json').version,\n '-v, --version',\n 'Output the version number'\n );\n\n const cwd = process.cwd();\n\n const hasDebug = argv.includes('--debug');\n const hasSilent = argv.includes('--silent');\n\n const logger = createLogger({ debug: hasDebug, silent: hasSilent, timestamp: false });\n\n const tsconfig = loadTsConfig({\n cwd,\n path: 'tsconfig.json',\n logger,\n });\n\n const ctx = {\n cwd,\n logger,\n tsconfig,\n } satisfies CLIContext;\n\n // Load all commands\n strapiCommands.forEach((commandFactory) => {\n try {\n const subCommand = commandFactory({ command, argv, ctx });\n\n // Add this command to the Commander command object\n if (subCommand) {\n command.addCommand(subCommand);\n }\n } catch (e) {\n console.error(`Failed to load command`, e);\n }\n });\n\n return command;\n};\n\nconst runCLI = async (argv = process.argv, command = new Command()) => {\n const commands = await createCLI(argv, command);\n await commands.parseAsync(argv);\n};\n\nexport { runCLI, createCLI };\n"],"names":["Command","logger","createLogger","tsconfig","loadTsConfig","strapiCommands"],"mappings":";;;;;;AAQA,MAAM,YAAY,OAAO,MAAgB,UAAU,IAAIA,wBAAc;AAEnE,UAAQ,yBAAyB,KAAK,EAAE,mBAAmB,IAAI;AAGvD,UAAA,WAAW,cAAc,0BAA0B;AACnD,UAAA,eAAe,kBAAkB,0BAA0B;AAE3D,UAAA;AAAA;AAAA,IAEN,QAAQ,oBAAoB,EAAE;AAAA,IAC9B;AAAA,IACA;AAAA,EAAA;AAGI,QAAA,MAAM,QAAQ;AAEd,QAAA,WAAW,KAAK,SAAS,SAAS;AAClC,QAAA,YAAY,KAAK,SAAS,UAAU;AAEpC,QAAAC,WAASC,oBAAa,EAAE,OAAO,UAAU,QAAQ,WAAW,WAAW,MAAA,CAAO;AAEpF,QAAMC,aAAWC,SAAAA,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM;AAAA,IAAA,QACNH;AAAAA,EAAA,CACD;AAED,QAAM,MAAM;AAAA,IACV;AAAA,IAAA,QACAA;AAAAA,IAAA,UACAE;AAAAA,EAAA;AAIaE,iBAAA,QAAQ,CAAC,mBAAmB;AACrC,QAAA;AACF,YAAM,aAAa,eAAe,EAAE,SAAS,MAAM,KAAK;AAGxD,UAAI,YAAY;AACd,gBAAQ,WAAW,UAAU;AAAA,MAC/B;AAAA,aACO,GAAG;AACF,cAAA,MAAM,0BAA0B,CAAC;AAAA,IAC3C;AAAA,EAAA,CACD;AAEM,SAAA;AACT;AAEM,MAAA,SAAS,OAAO,OAAO,QAAQ,MAAM,UAAU,IAAIL,UAAAA,cAAc;AACrE,QAAM,WAAW,MAAM,UAAU,MAAM,OAAO;AACxC,QAAA,SAAS,WAAW,IAAI;AAChC;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/cli/index.ts"],"sourcesContent":["import { Command } from 'commander';\n\nimport { commands as strapiCommands } from './commands';\n\nimport { createLogger } from './utils/logger';\nimport { loadTsConfig } from './utils/tsconfig';\nimport { CLIContext } from './types';\n\nconst createCLI = async (argv: string[], command = new Command()) => {\n // Initial program setup\n command.storeOptionsAsProperties(false).allowUnknownOption(true);\n\n // Help command\n command.helpOption('-h, --help', 'Display help for command');\n command.addHelpCommand('help [command]', 'Display help for command');\n\n command.version(\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('../../package.json').version,\n '-v, --version',\n 'Output the version number'\n );\n\n const cwd = process.cwd();\n\n const hasDebug = argv.includes('--debug');\n const hasSilent = argv.includes('--silent');\n\n const logger = createLogger({ debug: hasDebug, silent: hasSilent, timestamp: false });\n\n const tsconfig = loadTsConfig({\n cwd,\n path: 'tsconfig.json',\n logger,\n });\n\n const ctx = {\n cwd,\n logger,\n tsconfig,\n } satisfies CLIContext;\n\n // Load all commands\n strapiCommands.forEach((commandFactory) => {\n try {\n const subCommand = commandFactory({ command, argv, ctx });\n\n // Add this command to the Commander command object\n if (subCommand) {\n command.addCommand(subCommand);\n }\n } catch (e) {\n console.error(`Failed to load command`, e);\n }\n });\n\n // TODO v6: remove these deprecation notices\n const deprecatedCommands = [\n { name: 'plugin:init', message: 'Please use `npx @strapi/sdk-plugin init` instead.' },\n {\n name: 'plugin:verify',\n message: 'After migrating your plugin to v5, use `strapi-plugin verify`',\n },\n {\n name: 'plugin:watch',\n message: 'After migrating your plugin to v5, use `strapi-plugin watch`',\n },\n {\n name: 'plugin:watch:link',\n message: 'After migrating your plugin to v5, use `strapi-plugin watch:link`',\n },\n {\n name: 'plugin:build',\n message: 'After migrating your plugin to v5, use `strapi-plugin build`',\n },\n ];\n\n // Add hidden commands for deprecatedCommands that output a warning that the command has been removed.\n deprecatedCommands.forEach(({ name, message }) => {\n const deprecated = new Command(name)\n .command(name)\n .description('(deprecated)')\n .action(() => {\n console.warn(\n `The command ${name} has been deprecated. See the Strapi 5 migration guide for more information.`\n );\n if (message) {\n console.warn(message);\n }\n });\n command.addCommand(deprecated, { hidden: true });\n });\n return command;\n};\n\nconst runCLI = async (argv = process.argv, command = new Command()) => {\n const commands = await createCLI(argv, command);\n await commands.parseAsync(argv);\n};\n\nexport { runCLI, createCLI };\n"],"names":["Command","logger","createLogger","tsconfig","loadTsConfig","strapiCommands"],"mappings":";;;;;;AAQA,MAAM,YAAY,OAAO,MAAgB,UAAU,IAAIA,wBAAc;AAEnE,UAAQ,yBAAyB,KAAK,EAAE,mBAAmB,IAAI;AAGvD,UAAA,WAAW,cAAc,0BAA0B;AACnD,UAAA,eAAe,kBAAkB,0BAA0B;AAE3D,UAAA;AAAA;AAAA,IAEN,QAAQ,oBAAoB,EAAE;AAAA,IAC9B;AAAA,IACA;AAAA,EAAA;AAGI,QAAA,MAAM,QAAQ;AAEd,QAAA,WAAW,KAAK,SAAS,SAAS;AAClC,QAAA,YAAY,KAAK,SAAS,UAAU;AAEpC,QAAAC,WAASC,oBAAa,EAAE,OAAO,UAAU,QAAQ,WAAW,WAAW,MAAA,CAAO;AAEpF,QAAMC,aAAWC,SAAAA,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM;AAAA,IAAA,QACNH;AAAAA,EAAA,CACD;AAED,QAAM,MAAM;AAAA,IACV;AAAA,IAAA,QACAA;AAAAA,IAAA,UACAE;AAAAA,EAAA;AAIaE,iBAAA,QAAQ,CAAC,mBAAmB;AACrC,QAAA;AACF,YAAM,aAAa,eAAe,EAAE,SAAS,MAAM,KAAK;AAGxD,UAAI,YAAY;AACd,gBAAQ,WAAW,UAAU;AAAA,MAC/B;AAAA,aACO,GAAG;AACF,cAAA,MAAM,0BAA0B,CAAC;AAAA,IAC3C;AAAA,EAAA,CACD;AAGD,QAAM,qBAAqB;AAAA,IACzB,EAAE,MAAM,eAAe,SAAS,oDAAoD;AAAA,IACpF;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EAAA;AAIF,qBAAmB,QAAQ,CAAC,EAAE,MAAM,cAAc;AAChD,UAAM,aAAa,IAAIL,kBAAQ,IAAI,EAChC,QAAQ,IAAI,EACZ,YAAY,cAAc,EAC1B,OAAO,MAAM;AACJ,cAAA;AAAA,QACN,eAAe,IAAI;AAAA,MAAA;AAErB,UAAI,SAAS;AACX,gBAAQ,KAAK,OAAO;AAAA,MACtB;AAAA,IAAA,CACD;AACH,YAAQ,WAAW,YAAY,EAAE,QAAQ,KAAM,CAAA;AAAA,EAAA,CAChD;AACM,SAAA;AACT;AAEM,MAAA,SAAS,OAAO,OAAO,QAAQ,MAAM,UAAU,IAAIA,UAAAA,cAAc;AACrE,QAAM,WAAW,MAAM,UAAU,MAAM,OAAO;AACxC,QAAA,SAAS,WAAW,IAAI;AAChC;;;"}
@@ -36,6 +36,36 @@ const createCLI = async (argv, command = new Command()) => {
36
36
  console.error(`Failed to load command`, e);
37
37
  }
38
38
  });
39
+ const deprecatedCommands = [
40
+ { name: "plugin:init", message: "Please use `npx @strapi/sdk-plugin init` instead." },
41
+ {
42
+ name: "plugin:verify",
43
+ message: "After migrating your plugin to v5, use `strapi-plugin verify`"
44
+ },
45
+ {
46
+ name: "plugin:watch",
47
+ message: "After migrating your plugin to v5, use `strapi-plugin watch`"
48
+ },
49
+ {
50
+ name: "plugin:watch:link",
51
+ message: "After migrating your plugin to v5, use `strapi-plugin watch:link`"
52
+ },
53
+ {
54
+ name: "plugin:build",
55
+ message: "After migrating your plugin to v5, use `strapi-plugin build`"
56
+ }
57
+ ];
58
+ deprecatedCommands.forEach(({ name, message }) => {
59
+ const deprecated = new Command(name).command(name).description("(deprecated)").action(() => {
60
+ console.warn(
61
+ `The command ${name} has been deprecated. See the Strapi 5 migration guide for more information.`
62
+ );
63
+ if (message) {
64
+ console.warn(message);
65
+ }
66
+ });
67
+ command.addCommand(deprecated, { hidden: true });
68
+ });
39
69
  return command;
40
70
  };
41
71
  const runCLI = async (argv = process.argv, command = new Command()) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/cli/index.ts"],"sourcesContent":["import { Command } from 'commander';\n\nimport { commands as strapiCommands } from './commands';\n\nimport { createLogger } from './utils/logger';\nimport { loadTsConfig } from './utils/tsconfig';\nimport { CLIContext } from './types';\n\nconst createCLI = async (argv: string[], command = new Command()) => {\n // Initial program setup\n command.storeOptionsAsProperties(false).allowUnknownOption(true);\n\n // Help command\n command.helpOption('-h, --help', 'Display help for command');\n command.addHelpCommand('help [command]', 'Display help for command');\n\n command.version(\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('../../package.json').version,\n '-v, --version',\n 'Output the version number'\n );\n\n const cwd = process.cwd();\n\n const hasDebug = argv.includes('--debug');\n const hasSilent = argv.includes('--silent');\n\n const logger = createLogger({ debug: hasDebug, silent: hasSilent, timestamp: false });\n\n const tsconfig = loadTsConfig({\n cwd,\n path: 'tsconfig.json',\n logger,\n });\n\n const ctx = {\n cwd,\n logger,\n tsconfig,\n } satisfies CLIContext;\n\n // Load all commands\n strapiCommands.forEach((commandFactory) => {\n try {\n const subCommand = commandFactory({ command, argv, ctx });\n\n // Add this command to the Commander command object\n if (subCommand) {\n command.addCommand(subCommand);\n }\n } catch (e) {\n console.error(`Failed to load command`, e);\n }\n });\n\n return command;\n};\n\nconst runCLI = async (argv = process.argv, command = new Command()) => {\n const commands = await createCLI(argv, command);\n await commands.parseAsync(argv);\n};\n\nexport { runCLI, createCLI };\n"],"names":["strapiCommands","commands"],"mappings":";;;;AAQA,MAAM,YAAY,OAAO,MAAgB,UAAU,IAAI,cAAc;AAEnE,UAAQ,yBAAyB,KAAK,EAAE,mBAAmB,IAAI;AAGvD,UAAA,WAAW,cAAc,0BAA0B;AACnD,UAAA,eAAe,kBAAkB,0BAA0B;AAE3D,UAAA;AAAA;AAAA,IAEN,QAAQ,oBAAoB,EAAE;AAAA,IAC9B;AAAA,IACA;AAAA,EAAA;AAGI,QAAA,MAAM,QAAQ;AAEd,QAAA,WAAW,KAAK,SAAS,SAAS;AAClC,QAAA,YAAY,KAAK,SAAS,UAAU;AAEpC,QAAA,SAAS,aAAa,EAAE,OAAO,UAAU,QAAQ,WAAW,WAAW,MAAA,CAAO;AAEpF,QAAM,WAAW,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM;AAAA,IACN;AAAA,EAAA,CACD;AAED,QAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIaA,WAAA,QAAQ,CAAC,mBAAmB;AACrC,QAAA;AACF,YAAM,aAAa,eAAe,EAAE,SAAS,MAAM,KAAK;AAGxD,UAAI,YAAY;AACd,gBAAQ,WAAW,UAAU;AAAA,MAC/B;AAAA,aACO,GAAG;AACF,cAAA,MAAM,0BAA0B,CAAC;AAAA,IAC3C;AAAA,EAAA,CACD;AAEM,SAAA;AACT;AAEM,MAAA,SAAS,OAAO,OAAO,QAAQ,MAAM,UAAU,IAAI,cAAc;AACrE,QAAMC,YAAW,MAAM,UAAU,MAAM,OAAO;AACxC,QAAAA,UAAS,WAAW,IAAI;AAChC;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/cli/index.ts"],"sourcesContent":["import { Command } from 'commander';\n\nimport { commands as strapiCommands } from './commands';\n\nimport { createLogger } from './utils/logger';\nimport { loadTsConfig } from './utils/tsconfig';\nimport { CLIContext } from './types';\n\nconst createCLI = async (argv: string[], command = new Command()) => {\n // Initial program setup\n command.storeOptionsAsProperties(false).allowUnknownOption(true);\n\n // Help command\n command.helpOption('-h, --help', 'Display help for command');\n command.addHelpCommand('help [command]', 'Display help for command');\n\n command.version(\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('../../package.json').version,\n '-v, --version',\n 'Output the version number'\n );\n\n const cwd = process.cwd();\n\n const hasDebug = argv.includes('--debug');\n const hasSilent = argv.includes('--silent');\n\n const logger = createLogger({ debug: hasDebug, silent: hasSilent, timestamp: false });\n\n const tsconfig = loadTsConfig({\n cwd,\n path: 'tsconfig.json',\n logger,\n });\n\n const ctx = {\n cwd,\n logger,\n tsconfig,\n } satisfies CLIContext;\n\n // Load all commands\n strapiCommands.forEach((commandFactory) => {\n try {\n const subCommand = commandFactory({ command, argv, ctx });\n\n // Add this command to the Commander command object\n if (subCommand) {\n command.addCommand(subCommand);\n }\n } catch (e) {\n console.error(`Failed to load command`, e);\n }\n });\n\n // TODO v6: remove these deprecation notices\n const deprecatedCommands = [\n { name: 'plugin:init', message: 'Please use `npx @strapi/sdk-plugin init` instead.' },\n {\n name: 'plugin:verify',\n message: 'After migrating your plugin to v5, use `strapi-plugin verify`',\n },\n {\n name: 'plugin:watch',\n message: 'After migrating your plugin to v5, use `strapi-plugin watch`',\n },\n {\n name: 'plugin:watch:link',\n message: 'After migrating your plugin to v5, use `strapi-plugin watch:link`',\n },\n {\n name: 'plugin:build',\n message: 'After migrating your plugin to v5, use `strapi-plugin build`',\n },\n ];\n\n // Add hidden commands for deprecatedCommands that output a warning that the command has been removed.\n deprecatedCommands.forEach(({ name, message }) => {\n const deprecated = new Command(name)\n .command(name)\n .description('(deprecated)')\n .action(() => {\n console.warn(\n `The command ${name} has been deprecated. See the Strapi 5 migration guide for more information.`\n );\n if (message) {\n console.warn(message);\n }\n });\n command.addCommand(deprecated, { hidden: true });\n });\n return command;\n};\n\nconst runCLI = async (argv = process.argv, command = new Command()) => {\n const commands = await createCLI(argv, command);\n await commands.parseAsync(argv);\n};\n\nexport { runCLI, createCLI };\n"],"names":["strapiCommands","commands"],"mappings":";;;;AAQA,MAAM,YAAY,OAAO,MAAgB,UAAU,IAAI,cAAc;AAEnE,UAAQ,yBAAyB,KAAK,EAAE,mBAAmB,IAAI;AAGvD,UAAA,WAAW,cAAc,0BAA0B;AACnD,UAAA,eAAe,kBAAkB,0BAA0B;AAE3D,UAAA;AAAA;AAAA,IAEN,QAAQ,oBAAoB,EAAE;AAAA,IAC9B;AAAA,IACA;AAAA,EAAA;AAGI,QAAA,MAAM,QAAQ;AAEd,QAAA,WAAW,KAAK,SAAS,SAAS;AAClC,QAAA,YAAY,KAAK,SAAS,UAAU;AAEpC,QAAA,SAAS,aAAa,EAAE,OAAO,UAAU,QAAQ,WAAW,WAAW,MAAA,CAAO;AAEpF,QAAM,WAAW,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM;AAAA,IACN;AAAA,EAAA,CACD;AAED,QAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIaA,WAAA,QAAQ,CAAC,mBAAmB;AACrC,QAAA;AACF,YAAM,aAAa,eAAe,EAAE,SAAS,MAAM,KAAK;AAGxD,UAAI,YAAY;AACd,gBAAQ,WAAW,UAAU;AAAA,MAC/B;AAAA,aACO,GAAG;AACF,cAAA,MAAM,0BAA0B,CAAC;AAAA,IAC3C;AAAA,EAAA,CACD;AAGD,QAAM,qBAAqB;AAAA,IACzB,EAAE,MAAM,eAAe,SAAS,oDAAoD;AAAA,IACpF;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EAAA;AAIF,qBAAmB,QAAQ,CAAC,EAAE,MAAM,cAAc;AAChD,UAAM,aAAa,IAAI,QAAQ,IAAI,EAChC,QAAQ,IAAI,EACZ,YAAY,cAAc,EAC1B,OAAO,MAAM;AACJ,cAAA;AAAA,QACN,eAAe,IAAI;AAAA,MAAA;AAErB,UAAI,SAAS;AACX,gBAAQ,KAAK,OAAO;AAAA,MACtB;AAAA,IAAA,CACD;AACH,YAAQ,WAAW,YAAY,EAAE,QAAQ,KAAM,CAAA;AAAA,EAAA,CAChD;AACM,SAAA;AACT;AAEM,MAAA,SAAS,OAAO,OAAO,QAAQ,MAAM,UAAU,IAAI,cAAc;AACrE,QAAMC,YAAW,MAAM,UAAU,MAAM,OAAO;AACxC,QAAAA,UAAS,WAAW,IAAI;AAChC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/strapi",
3
- "version": "5.0.0-beta.8",
3
+ "version": "5.0.0-beta.9",
4
4
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
5
5
  "keywords": [
6
6
  "strapi",
@@ -109,25 +109,25 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
112
- "@strapi/admin": "5.0.0-beta.8",
113
- "@strapi/content-manager": "5.0.0-beta.8",
114
- "@strapi/content-releases": "5.0.0-beta.8",
115
- "@strapi/content-type-builder": "5.0.0-beta.8",
116
- "@strapi/core": "5.0.0-beta.8",
117
- "@strapi/data-transfer": "5.0.0-beta.8",
118
- "@strapi/database": "5.0.0-beta.8",
119
- "@strapi/email": "5.0.0-beta.8",
120
- "@strapi/generate-new": "5.0.0-beta.8",
121
- "@strapi/generators": "5.0.0-beta.8",
122
- "@strapi/i18n": "5.0.0-beta.8",
123
- "@strapi/logger": "5.0.0-beta.8",
112
+ "@strapi/admin": "5.0.0-beta.9",
113
+ "@strapi/content-manager": "5.0.0-beta.9",
114
+ "@strapi/content-releases": "5.0.0-beta.9",
115
+ "@strapi/content-type-builder": "5.0.0-beta.9",
116
+ "@strapi/core": "5.0.0-beta.9",
117
+ "@strapi/data-transfer": "5.0.0-beta.9",
118
+ "@strapi/database": "5.0.0-beta.9",
119
+ "@strapi/email": "5.0.0-beta.9",
120
+ "@strapi/generate-new": "5.0.0-beta.9",
121
+ "@strapi/generators": "5.0.0-beta.9",
122
+ "@strapi/i18n": "5.0.0-beta.9",
123
+ "@strapi/logger": "5.0.0-beta.9",
124
124
  "@strapi/pack-up": "5.0.0",
125
- "@strapi/permissions": "5.0.0-beta.8",
126
- "@strapi/review-workflows": "5.0.0-beta.8",
127
- "@strapi/types": "5.0.0-beta.8",
128
- "@strapi/typescript-utils": "5.0.0-beta.8",
129
- "@strapi/upload": "5.0.0-beta.8",
130
- "@strapi/utils": "5.0.0-beta.8",
125
+ "@strapi/permissions": "5.0.0-beta.9",
126
+ "@strapi/review-workflows": "5.0.0-beta.9",
127
+ "@strapi/types": "5.0.0-beta.9",
128
+ "@strapi/typescript-utils": "5.0.0-beta.9",
129
+ "@strapi/upload": "5.0.0-beta.9",
130
+ "@strapi/utils": "5.0.0-beta.9",
131
131
  "@types/nodemon": "1.19.6",
132
132
  "@vitejs/plugin-react-swc": "3.6.0",
133
133
  "boxen": "5.1.2",
@@ -141,7 +141,7 @@
141
141
  "copyfiles": "2.4.1",
142
142
  "css-loader": "^6.10.0",
143
143
  "dotenv": "16.4.5",
144
- "esbuild": "0.19.11",
144
+ "esbuild": "0.21.3",
145
145
  "esbuild-loader": "^2.21.0",
146
146
  "esbuild-register": "3.5.0",
147
147
  "execa": "5.1.1",
@@ -180,10 +180,10 @@
180
180
  "@types/node": "18.19.24",
181
181
  "@types/webpack-bundle-analyzer": "4.7.0",
182
182
  "@types/webpack-hot-middleware": "2.25.9",
183
- "eslint-config-custom": "5.0.0-beta.8",
183
+ "eslint-config-custom": "5.0.0-beta.9",
184
184
  "react": "18.3.1",
185
185
  "react-dom": "18.3.1",
186
- "tsconfig": "5.0.0-beta.8"
186
+ "tsconfig": "5.0.0-beta.9"
187
187
  },
188
188
  "peerDependencies": {
189
189
  "react": "^17.0.0 || ^18.0.0",
@@ -195,5 +195,5 @@
195
195
  "node": ">=18.0.0 <=20.x.x",
196
196
  "npm": ">=6.0.0"
197
197
  },
198
- "gitHead": "710e683d6bc017dbc2804708580146daa4b2fc4c"
198
+ "gitHead": "0a5a7b91474a18df8a8c6c81613cca1f9c598445"
199
199
  }
@@ -1,7 +0,0 @@
1
- import type { StrapiCommand } from '../../types';
2
- /**
3
- * `$ strapi plugin:build`
4
- */
5
- declare const command: StrapiCommand;
6
- export { command };
7
- //# sourceMappingURL=build.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/plugin/build.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,aAAa,CAAC;AAmG7D;;GAEG;AACH,QAAA,MAAM,OAAO,EAAE,aASd,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const commander = require("commander");
4
- const boxen = require("boxen");
5
- const chalk = require("chalk");
6
- const packUp = require("@strapi/pack-up");
7
- const commander$1 = require("../../utils/commander.js");
8
- const helpers = require("../../utils/helpers.js");
9
- const pkg = require("../../utils/pkg.js");
10
- const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
11
- const boxen__default = /* @__PURE__ */ _interopDefault(boxen);
12
- const chalk__default = /* @__PURE__ */ _interopDefault(chalk);
13
- const action = async ({ force, ...opts }, _cmd, { logger, cwd }) => {
14
- try {
15
- process.env.NODE_ENV = "production";
16
- const pkg$1 = await pkg.loadPkg({ cwd, logger });
17
- const pkgJson = await pkg.validatePkg({ pkg: pkg$1 });
18
- if (!pkgJson.exports["./strapi-admin"] && !pkgJson.exports["./strapi-server"]) {
19
- throw new Error(
20
- "You need to have either a strapi-admin or strapi-server export in your package.json"
21
- );
22
- }
23
- const bundles = [];
24
- if (pkgJson.exports["./strapi-admin"]) {
25
- const exp = pkgJson.exports["./strapi-admin"];
26
- const bundle = {
27
- source: exp.source,
28
- import: exp.import,
29
- require: exp.require,
30
- runtime: "web"
31
- };
32
- if (exp.types) {
33
- bundle.types = exp.types;
34
- bundle.tsconfig = "./admin/tsconfig.build.json";
35
- }
36
- bundles.push(bundle);
37
- }
38
- if (pkgJson.exports["./strapi-server"]) {
39
- const exp = pkgJson.exports["./strapi-server"];
40
- const bundle = {
41
- source: exp.source,
42
- import: exp.import,
43
- require: exp.require,
44
- runtime: "node"
45
- };
46
- if (exp.types) {
47
- bundle.types = exp.types;
48
- bundle.tsconfig = "./server/tsconfig.build.json";
49
- }
50
- bundles.push(bundle);
51
- }
52
- await packUp.build({
53
- cwd,
54
- configFile: false,
55
- config: {
56
- bundles,
57
- dist: "./dist",
58
- /**
59
- * ignore the exports map of a plugin, because we're streamlining the
60
- * process and ensuring the server package and admin package are built
61
- * with the correct runtime and their individual tsconfigs
62
- */
63
- exports: {}
64
- },
65
- ...opts
66
- });
67
- } catch (err) {
68
- logger.error(
69
- "There seems to be an unexpected error, try again with --debug for more information \n"
70
- );
71
- if (err instanceof Error && err.stack) {
72
- console.log(
73
- chalk__default.default.red(
74
- boxen__default.default(err.stack, {
75
- padding: 1,
76
- align: "left"
77
- })
78
- )
79
- );
80
- }
81
- process.exit(1);
82
- }
83
- };
84
- const command = ({ ctx }) => {
85
- return commander.createCommand("plugin:build").description("Bundle your strapi plugin for publishing.").addOption(commander$1.forceOption).option("-d, --debug", "Enable debugging mode with verbose logs", false).option("--silent", "Don't log anything", false).option("--sourcemap", "produce sourcemaps", false).option("--minify", "minify the output", false).action((...args) => helpers.runAction("plugin:build", action)(...args, ctx));
86
- };
87
- exports.command = command;
88
- //# sourceMappingURL=build.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.js","sources":["../../../../src/cli/commands/plugin/build.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport boxen from 'boxen';\nimport chalk from 'chalk';\nimport { BuildCLIOptions, ConfigBundle, build } from '@strapi/pack-up';\n\nimport { forceOption } from '../../utils/commander';\nimport { runAction } from '../../utils/helpers';\nimport { Export, loadPkg, validatePkg } from '../../utils/pkg';\nimport type { CLIContext, StrapiCommand } from '../../types';\n\ninterface ActionOptions extends BuildCLIOptions {\n force?: boolean;\n}\n\nconst action = async (\n { force, ...opts }: ActionOptions,\n _cmd: unknown,\n { logger, cwd }: CLIContext\n) => {\n try {\n /**\n * ALWAYS set production for using plugin build CLI.\n */\n process.env.NODE_ENV = 'production';\n\n const pkg = await loadPkg({ cwd, logger });\n const pkgJson = await validatePkg({ pkg });\n\n if (!pkgJson.exports['./strapi-admin'] && !pkgJson.exports['./strapi-server']) {\n throw new Error(\n 'You need to have either a strapi-admin or strapi-server export in your package.json'\n );\n }\n\n const bundles: ConfigBundle[] = [];\n\n if (pkgJson.exports['./strapi-admin']) {\n const exp = pkgJson.exports['./strapi-admin'] as Export;\n\n const bundle: ConfigBundle = {\n source: exp.source,\n import: exp.import,\n require: exp.require,\n runtime: 'web',\n };\n\n if (exp.types) {\n bundle.types = exp.types;\n // TODO: should this be sliced from the source path...?\n bundle.tsconfig = './admin/tsconfig.build.json';\n }\n\n bundles.push(bundle);\n }\n\n if (pkgJson.exports['./strapi-server']) {\n const exp = pkgJson.exports['./strapi-server'] as Export;\n\n const bundle: ConfigBundle = {\n source: exp.source,\n import: exp.import,\n require: exp.require,\n runtime: 'node',\n };\n\n if (exp.types) {\n bundle.types = exp.types;\n // TODO: should this be sliced from the source path...?\n bundle.tsconfig = './server/tsconfig.build.json';\n }\n\n bundles.push(bundle);\n }\n\n await build({\n cwd,\n configFile: false,\n config: {\n bundles,\n dist: './dist',\n /**\n * ignore the exports map of a plugin, because we're streamlining the\n * process and ensuring the server package and admin package are built\n * with the correct runtime and their individual tsconfigs\n */\n exports: {},\n },\n ...opts,\n });\n } catch (err) {\n logger.error(\n 'There seems to be an unexpected error, try again with --debug for more information \\n'\n );\n if (err instanceof Error && err.stack) {\n console.log(\n chalk.red(\n boxen(err.stack, {\n padding: 1,\n align: 'left',\n })\n )\n );\n }\n process.exit(1);\n }\n};\n\n/**\n * `$ strapi plugin:build`\n */\nconst command: StrapiCommand = ({ ctx }) => {\n return createCommand('plugin:build')\n .description('Bundle your strapi plugin for publishing.')\n .addOption(forceOption)\n .option('-d, --debug', 'Enable debugging mode with verbose logs', false)\n .option('--silent', \"Don't log anything\", false)\n .option('--sourcemap', 'produce sourcemaps', false)\n .option('--minify', 'minify the output', false)\n .action((...args) => runAction('plugin:build', action)(...args, ctx));\n};\n\nexport { command };\n"],"names":["pkg","loadPkg","validatePkg","build","chalk","boxen","createCommand","forceOption","runAction"],"mappings":";;;;;;;;;;;;AAcA,MAAM,SAAS,OACb,EAAE,OAAO,GAAG,KAAK,GACjB,MACA,EAAE,QAAQ,UACP;AACC,MAAA;AAIF,YAAQ,IAAI,WAAW;AAEvB,UAAMA,QAAM,MAAMC,IAAA,QAAQ,EAAE,KAAK,OAAQ,CAAA;AACzC,UAAM,UAAU,MAAMC,IAAAA,YAAY,EAAEF,KAAAA,MAAK,CAAA;AAErC,QAAA,CAAC,QAAQ,QAAQ,gBAAgB,KAAK,CAAC,QAAQ,QAAQ,iBAAiB,GAAG;AAC7E,YAAM,IAAI;AAAA,QACR;AAAA,MAAA;AAAA,IAEJ;AAEA,UAAM,UAA0B,CAAA;AAE5B,QAAA,QAAQ,QAAQ,gBAAgB,GAAG;AAC/B,YAAA,MAAM,QAAQ,QAAQ,gBAAgB;AAE5C,YAAM,SAAuB;AAAA,QAC3B,QAAQ,IAAI;AAAA,QACZ,QAAQ,IAAI;AAAA,QACZ,SAAS,IAAI;AAAA,QACb,SAAS;AAAA,MAAA;AAGX,UAAI,IAAI,OAAO;AACb,eAAO,QAAQ,IAAI;AAEnB,eAAO,WAAW;AAAA,MACpB;AAEA,cAAQ,KAAK,MAAM;AAAA,IACrB;AAEI,QAAA,QAAQ,QAAQ,iBAAiB,GAAG;AAChC,YAAA,MAAM,QAAQ,QAAQ,iBAAiB;AAE7C,YAAM,SAAuB;AAAA,QAC3B,QAAQ,IAAI;AAAA,QACZ,QAAQ,IAAI;AAAA,QACZ,SAAS,IAAI;AAAA,QACb,SAAS;AAAA,MAAA;AAGX,UAAI,IAAI,OAAO;AACb,eAAO,QAAQ,IAAI;AAEnB,eAAO,WAAW;AAAA,MACpB;AAEA,cAAQ,KAAK,MAAM;AAAA,IACrB;AAEA,UAAMG,aAAM;AAAA,MACV;AAAA,MACA,YAAY;AAAA,MACZ,QAAQ;AAAA,QACN;AAAA,QACA,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMN,SAAS,CAAC;AAAA,MACZ;AAAA,MACA,GAAG;AAAA,IAAA,CACJ;AAAA,WACM,KAAK;AACL,WAAA;AAAA,MACL;AAAA,IAAA;AAEE,QAAA,eAAe,SAAS,IAAI,OAAO;AAC7B,cAAA;AAAA,QACNC,eAAAA,QAAM;AAAA,UACJC,eAAA,QAAM,IAAI,OAAO;AAAA,YACf,SAAS;AAAA,YACT,OAAO;AAAA,UAAA,CACR;AAAA,QACH;AAAA,MAAA;AAAA,IAEJ;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB;AACF;AAKA,MAAM,UAAyB,CAAC,EAAE,UAAU;AAC1C,SAAOC,UAAAA,cAAc,cAAc,EAChC,YAAY,2CAA2C,EACvD,UAAUC,uBAAW,EACrB,OAAO,eAAe,2CAA2C,KAAK,EACtE,OAAO,YAAY,sBAAsB,KAAK,EAC9C,OAAO,eAAe,sBAAsB,KAAK,EACjD,OAAO,YAAY,qBAAqB,KAAK,EAC7C,OAAO,IAAI,SAASC,kBAAU,gBAAgB,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC;AACxE;;"}
@@ -1,85 +0,0 @@
1
- import { createCommand } from "commander";
2
- import boxen from "boxen";
3
- import chalk from "chalk";
4
- import { build } from "@strapi/pack-up";
5
- import { forceOption } from "../../utils/commander.mjs";
6
- import { runAction } from "../../utils/helpers.mjs";
7
- import { loadPkg, validatePkg } from "../../utils/pkg.mjs";
8
- const action = async ({ force, ...opts }, _cmd, { logger, cwd }) => {
9
- try {
10
- process.env.NODE_ENV = "production";
11
- const pkg = await loadPkg({ cwd, logger });
12
- const pkgJson = await validatePkg({ pkg });
13
- if (!pkgJson.exports["./strapi-admin"] && !pkgJson.exports["./strapi-server"]) {
14
- throw new Error(
15
- "You need to have either a strapi-admin or strapi-server export in your package.json"
16
- );
17
- }
18
- const bundles = [];
19
- if (pkgJson.exports["./strapi-admin"]) {
20
- const exp = pkgJson.exports["./strapi-admin"];
21
- const bundle = {
22
- source: exp.source,
23
- import: exp.import,
24
- require: exp.require,
25
- runtime: "web"
26
- };
27
- if (exp.types) {
28
- bundle.types = exp.types;
29
- bundle.tsconfig = "./admin/tsconfig.build.json";
30
- }
31
- bundles.push(bundle);
32
- }
33
- if (pkgJson.exports["./strapi-server"]) {
34
- const exp = pkgJson.exports["./strapi-server"];
35
- const bundle = {
36
- source: exp.source,
37
- import: exp.import,
38
- require: exp.require,
39
- runtime: "node"
40
- };
41
- if (exp.types) {
42
- bundle.types = exp.types;
43
- bundle.tsconfig = "./server/tsconfig.build.json";
44
- }
45
- bundles.push(bundle);
46
- }
47
- await build({
48
- cwd,
49
- configFile: false,
50
- config: {
51
- bundles,
52
- dist: "./dist",
53
- /**
54
- * ignore the exports map of a plugin, because we're streamlining the
55
- * process and ensuring the server package and admin package are built
56
- * with the correct runtime and their individual tsconfigs
57
- */
58
- exports: {}
59
- },
60
- ...opts
61
- });
62
- } catch (err) {
63
- logger.error(
64
- "There seems to be an unexpected error, try again with --debug for more information \n"
65
- );
66
- if (err instanceof Error && err.stack) {
67
- console.log(
68
- chalk.red(
69
- boxen(err.stack, {
70
- padding: 1,
71
- align: "left"
72
- })
73
- )
74
- );
75
- }
76
- process.exit(1);
77
- }
78
- };
79
- const command = ({ ctx }) => {
80
- return createCommand("plugin:build").description("Bundle your strapi plugin for publishing.").addOption(forceOption).option("-d, --debug", "Enable debugging mode with verbose logs", false).option("--silent", "Don't log anything", false).option("--sourcemap", "produce sourcemaps", false).option("--minify", "minify the output", false).action((...args) => runAction("plugin:build", action)(...args, ctx));
81
- };
82
- export {
83
- command
84
- };
85
- //# sourceMappingURL=build.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.mjs","sources":["../../../../src/cli/commands/plugin/build.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport boxen from 'boxen';\nimport chalk from 'chalk';\nimport { BuildCLIOptions, ConfigBundle, build } from '@strapi/pack-up';\n\nimport { forceOption } from '../../utils/commander';\nimport { runAction } from '../../utils/helpers';\nimport { Export, loadPkg, validatePkg } from '../../utils/pkg';\nimport type { CLIContext, StrapiCommand } from '../../types';\n\ninterface ActionOptions extends BuildCLIOptions {\n force?: boolean;\n}\n\nconst action = async (\n { force, ...opts }: ActionOptions,\n _cmd: unknown,\n { logger, cwd }: CLIContext\n) => {\n try {\n /**\n * ALWAYS set production for using plugin build CLI.\n */\n process.env.NODE_ENV = 'production';\n\n const pkg = await loadPkg({ cwd, logger });\n const pkgJson = await validatePkg({ pkg });\n\n if (!pkgJson.exports['./strapi-admin'] && !pkgJson.exports['./strapi-server']) {\n throw new Error(\n 'You need to have either a strapi-admin or strapi-server export in your package.json'\n );\n }\n\n const bundles: ConfigBundle[] = [];\n\n if (pkgJson.exports['./strapi-admin']) {\n const exp = pkgJson.exports['./strapi-admin'] as Export;\n\n const bundle: ConfigBundle = {\n source: exp.source,\n import: exp.import,\n require: exp.require,\n runtime: 'web',\n };\n\n if (exp.types) {\n bundle.types = exp.types;\n // TODO: should this be sliced from the source path...?\n bundle.tsconfig = './admin/tsconfig.build.json';\n }\n\n bundles.push(bundle);\n }\n\n if (pkgJson.exports['./strapi-server']) {\n const exp = pkgJson.exports['./strapi-server'] as Export;\n\n const bundle: ConfigBundle = {\n source: exp.source,\n import: exp.import,\n require: exp.require,\n runtime: 'node',\n };\n\n if (exp.types) {\n bundle.types = exp.types;\n // TODO: should this be sliced from the source path...?\n bundle.tsconfig = './server/tsconfig.build.json';\n }\n\n bundles.push(bundle);\n }\n\n await build({\n cwd,\n configFile: false,\n config: {\n bundles,\n dist: './dist',\n /**\n * ignore the exports map of a plugin, because we're streamlining the\n * process and ensuring the server package and admin package are built\n * with the correct runtime and their individual tsconfigs\n */\n exports: {},\n },\n ...opts,\n });\n } catch (err) {\n logger.error(\n 'There seems to be an unexpected error, try again with --debug for more information \\n'\n );\n if (err instanceof Error && err.stack) {\n console.log(\n chalk.red(\n boxen(err.stack, {\n padding: 1,\n align: 'left',\n })\n )\n );\n }\n process.exit(1);\n }\n};\n\n/**\n * `$ strapi plugin:build`\n */\nconst command: StrapiCommand = ({ ctx }) => {\n return createCommand('plugin:build')\n .description('Bundle your strapi plugin for publishing.')\n .addOption(forceOption)\n .option('-d, --debug', 'Enable debugging mode with verbose logs', false)\n .option('--silent', \"Don't log anything\", false)\n .option('--sourcemap', 'produce sourcemaps', false)\n .option('--minify', 'minify the output', false)\n .action((...args) => runAction('plugin:build', action)(...args, ctx));\n};\n\nexport { command };\n"],"names":[],"mappings":";;;;;;;AAcA,MAAM,SAAS,OACb,EAAE,OAAO,GAAG,KAAK,GACjB,MACA,EAAE,QAAQ,UACP;AACC,MAAA;AAIF,YAAQ,IAAI,WAAW;AAEvB,UAAM,MAAM,MAAM,QAAQ,EAAE,KAAK,OAAQ,CAAA;AACzC,UAAM,UAAU,MAAM,YAAY,EAAE,IAAK,CAAA;AAErC,QAAA,CAAC,QAAQ,QAAQ,gBAAgB,KAAK,CAAC,QAAQ,QAAQ,iBAAiB,GAAG;AAC7E,YAAM,IAAI;AAAA,QACR;AAAA,MAAA;AAAA,IAEJ;AAEA,UAAM,UAA0B,CAAA;AAE5B,QAAA,QAAQ,QAAQ,gBAAgB,GAAG;AAC/B,YAAA,MAAM,QAAQ,QAAQ,gBAAgB;AAE5C,YAAM,SAAuB;AAAA,QAC3B,QAAQ,IAAI;AAAA,QACZ,QAAQ,IAAI;AAAA,QACZ,SAAS,IAAI;AAAA,QACb,SAAS;AAAA,MAAA;AAGX,UAAI,IAAI,OAAO;AACb,eAAO,QAAQ,IAAI;AAEnB,eAAO,WAAW;AAAA,MACpB;AAEA,cAAQ,KAAK,MAAM;AAAA,IACrB;AAEI,QAAA,QAAQ,QAAQ,iBAAiB,GAAG;AAChC,YAAA,MAAM,QAAQ,QAAQ,iBAAiB;AAE7C,YAAM,SAAuB;AAAA,QAC3B,QAAQ,IAAI;AAAA,QACZ,QAAQ,IAAI;AAAA,QACZ,SAAS,IAAI;AAAA,QACb,SAAS;AAAA,MAAA;AAGX,UAAI,IAAI,OAAO;AACb,eAAO,QAAQ,IAAI;AAEnB,eAAO,WAAW;AAAA,MACpB;AAEA,cAAQ,KAAK,MAAM;AAAA,IACrB;AAEA,UAAM,MAAM;AAAA,MACV;AAAA,MACA,YAAY;AAAA,MACZ,QAAQ;AAAA,QACN;AAAA,QACA,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMN,SAAS,CAAC;AAAA,MACZ;AAAA,MACA,GAAG;AAAA,IAAA,CACJ;AAAA,WACM,KAAK;AACL,WAAA;AAAA,MACL;AAAA,IAAA;AAEE,QAAA,eAAe,SAAS,IAAI,OAAO;AAC7B,cAAA;AAAA,QACN,MAAM;AAAA,UACJ,MAAM,IAAI,OAAO;AAAA,YACf,SAAS;AAAA,YACT,OAAO;AAAA,UAAA,CACR;AAAA,QACH;AAAA,MAAA;AAAA,IAEJ;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB;AACF;AAKA,MAAM,UAAyB,CAAC,EAAE,UAAU;AAC1C,SAAO,cAAc,cAAc,EAChC,YAAY,2CAA2C,EACvD,UAAU,WAAW,EACrB,OAAO,eAAe,2CAA2C,KAAK,EACtE,OAAO,YAAY,sBAAsB,KAAK,EAC9C,OAAO,eAAe,sBAAsB,KAAK,EACjD,OAAO,YAAY,qBAAqB,KAAK,EAC7C,OAAO,IAAI,SAAS,UAAU,gBAAgB,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC;AACxE;"}
@@ -1,6 +0,0 @@
1
- import { InitOptions } from '@strapi/pack-up';
2
- import { CLIContext } from '../../../types';
3
- type ActionOptions = Pick<InitOptions, 'silent' | 'debug'>;
4
- declare const _default: (packagePath: string, { silent, debug }: ActionOptions, { logger, cwd }: CLIContext) => Promise<void>;
5
- export default _default;
6
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/plugin/init/action.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,WAAW,EAMZ,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,KAAK,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC;sCAG5C,MAAM,qBACA,aAAa,mBACf,UAAU;AAH7B,wBAkCE"}