@strapi/strapi 5.0.0-beta.1 → 5.0.0-beta.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.
- package/README.md +4 -4
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +12 -4
- package/dist/admin.js.map +1 -1
- package/dist/admin.mjs +10 -4
- package/dist/admin.mjs.map +1 -1
- package/dist/cli/commands/admin/create-user.js +2 -2
- package/dist/cli/commands/admin/create-user.js.map +1 -1
- package/dist/cli/commands/admin/create-user.mjs +88 -0
- package/dist/cli/commands/admin/create-user.mjs.map +1 -0
- package/dist/cli/commands/admin/reset-user-password.js +2 -2
- package/dist/cli/commands/admin/reset-user-password.js.map +1 -1
- package/dist/cli/commands/admin/reset-user-password.mjs +44 -0
- package/dist/cli/commands/admin/reset-user-password.mjs.map +1 -0
- package/dist/cli/commands/build.mjs +30 -0
- package/dist/cli/commands/build.mjs.map +1 -0
- package/dist/cli/commands/components/list.js +2 -2
- package/dist/cli/commands/components/list.js.map +1 -1
- package/dist/cli/commands/components/list.mjs +24 -0
- package/dist/cli/commands/components/list.mjs.map +1 -0
- package/dist/cli/commands/configuration/dump.js +2 -2
- package/dist/cli/commands/configuration/dump.js.map +1 -1
- package/dist/cli/commands/configuration/dump.mjs +41 -0
- package/dist/cli/commands/configuration/dump.mjs.map +1 -0
- package/dist/cli/commands/configuration/restore.js +2 -2
- package/dist/cli/commands/configuration/restore.js.map +1 -1
- package/dist/cli/commands/configuration/restore.mjs +140 -0
- package/dist/cli/commands/configuration/restore.mjs.map +1 -0
- package/dist/cli/commands/console.js +2 -2
- package/dist/cli/commands/console.js.map +1 -1
- package/dist/cli/commands/console.mjs +27 -0
- package/dist/cli/commands/console.mjs.map +1 -0
- package/dist/cli/commands/content-types/list.js +2 -2
- package/dist/cli/commands/content-types/list.js.map +1 -1
- package/dist/cli/commands/content-types/list.mjs +24 -0
- package/dist/cli/commands/content-types/list.mjs.map +1 -0
- package/dist/cli/commands/controllers/list.js +2 -2
- package/dist/cli/commands/controllers/list.js.map +1 -1
- package/dist/cli/commands/controllers/list.mjs +24 -0
- package/dist/cli/commands/controllers/list.mjs.map +1 -0
- package/dist/cli/commands/develop.mjs +27 -0
- package/dist/cli/commands/develop.mjs.map +1 -0
- package/dist/cli/commands/export/action.js.map +1 -1
- package/dist/cli/commands/export/action.mjs +116 -0
- package/dist/cli/commands/export/action.mjs.map +1 -0
- package/dist/cli/commands/export/command.mjs +24 -0
- package/dist/cli/commands/export/command.mjs.map +1 -0
- package/dist/cli/commands/generate.mjs +13 -0
- package/dist/cli/commands/generate.mjs.map +1 -0
- package/dist/cli/commands/hooks/list.js +2 -2
- package/dist/cli/commands/hooks/list.js.map +1 -1
- package/dist/cli/commands/hooks/list.mjs +24 -0
- package/dist/cli/commands/hooks/list.mjs.map +1 -0
- package/dist/cli/commands/import/action.js.map +1 -1
- package/dist/cli/commands/import/action.mjs +105 -0
- package/dist/cli/commands/import/action.mjs.map +1 -0
- package/dist/cli/commands/import/command.mjs +68 -0
- package/dist/cli/commands/import/command.mjs.map +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -14
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/index.mjs +58 -0
- package/dist/cli/commands/index.mjs.map +1 -0
- package/dist/cli/commands/middlewares/list.js +2 -2
- package/dist/cli/commands/middlewares/list.js.map +1 -1
- package/dist/cli/commands/middlewares/list.mjs +24 -0
- package/dist/cli/commands/middlewares/list.mjs.map +1 -0
- package/dist/cli/commands/plugin/init/files/typescript.d.ts.map +1 -1
- package/dist/cli/commands/policies/list.js +2 -2
- package/dist/cli/commands/policies/list.js.map +1 -1
- package/dist/cli/commands/policies/list.mjs +24 -0
- package/dist/cli/commands/policies/list.mjs.map +1 -0
- package/dist/cli/commands/report.js +2 -2
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/report.mjs +35 -0
- package/dist/cli/commands/report.mjs.map +1 -0
- package/dist/cli/commands/routes/list.js +2 -2
- package/dist/cli/commands/routes/list.js.map +1 -1
- package/dist/cli/commands/routes/list.mjs +28 -0
- package/dist/cli/commands/routes/list.mjs.map +1 -0
- package/dist/cli/commands/services/list.js +2 -2
- package/dist/cli/commands/services/list.js.map +1 -1
- package/dist/cli/commands/services/list.mjs +24 -0
- package/dist/cli/commands/services/list.mjs.map +1 -0
- package/dist/cli/commands/start.js +1 -1
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/start.mjs +24 -0
- package/dist/cli/commands/start.mjs.map +1 -0
- package/dist/cli/commands/telemetry/disable.mjs +67 -0
- package/dist/cli/commands/telemetry/disable.mjs.map +1 -0
- package/dist/cli/commands/telemetry/enable.mjs +86 -0
- package/dist/cli/commands/telemetry/enable.mjs.map +1 -0
- package/dist/cli/commands/templates/generate.mjs +74 -0
- package/dist/cli/commands/templates/generate.mjs.map +1 -0
- package/dist/cli/commands/transfer/action.mjs +131 -0
- package/dist/cli/commands/transfer/action.mjs.map +1 -0
- package/dist/cli/commands/transfer/command.mjs +84 -0
- package/dist/cli/commands/transfer/command.mjs.map +1 -0
- package/dist/cli/commands/ts/generate-types.d.ts.map +1 -1
- package/dist/cli/commands/ts/generate-types.js +4 -5
- package/dist/cli/commands/ts/generate-types.js.map +1 -1
- package/dist/cli/commands/ts/generate-types.mjs +34 -0
- package/dist/cli/commands/ts/generate-types.mjs.map +1 -0
- package/dist/cli/commands/version.mjs +13 -0
- package/dist/cli/commands/version.mjs.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +30 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +79 -0
- package/dist/cli/index.mjs.map +1 -0
- package/dist/cli/utils/commander.d.ts +2 -2
- package/dist/cli/utils/commander.d.ts.map +1 -1
- package/dist/cli/utils/commander.mjs +109 -0
- package/dist/cli/utils/commander.mjs.map +1 -0
- package/dist/cli/utils/data-transfer.d.ts +4 -4
- package/dist/cli/utils/data-transfer.d.ts.map +1 -1
- package/dist/cli/utils/data-transfer.js +32 -24
- package/dist/cli/utils/data-transfer.js.map +1 -1
- package/dist/cli/utils/data-transfer.mjs +347 -0
- package/dist/cli/utils/data-transfer.mjs.map +1 -0
- package/dist/cli/utils/helpers.d.ts +1 -1
- package/dist/cli/utils/helpers.d.ts.map +1 -1
- package/dist/cli/utils/helpers.mjs +100 -0
- package/dist/cli/utils/helpers.mjs.map +1 -0
- package/dist/cli/utils/logger.mjs +80 -0
- package/dist/cli/utils/logger.mjs.map +1 -0
- package/dist/cli/utils/pkg.d.ts.map +1 -1
- package/dist/cli/utils/telemetry.mjs +22 -0
- package/dist/cli/utils/telemetry.mjs.map +1 -0
- package/dist/cli/utils/tsconfig.d.ts.map +1 -1
- package/dist/cli/utils/tsconfig.mjs +23 -0
- package/dist/cli/utils/tsconfig.mjs.map +1 -0
- package/dist/node/build.mjs +58 -0
- package/dist/node/build.mjs.map +1 -0
- package/dist/node/core/admin-customisations.mjs +22 -0
- package/dist/node/core/admin-customisations.mjs.map +1 -0
- package/dist/node/core/aliases.d.ts +1 -1
- package/dist/node/core/aliases.d.ts.map +1 -1
- package/dist/node/core/aliases.js +8 -5
- package/dist/node/core/aliases.js.map +1 -1
- package/dist/node/core/aliases.mjs +31 -0
- package/dist/node/core/aliases.mjs.map +1 -0
- package/dist/node/core/config.d.ts.map +1 -1
- package/dist/node/core/config.mjs +16 -0
- package/dist/node/core/config.mjs.map +1 -0
- package/dist/node/core/dependencies.d.ts.map +1 -1
- package/dist/node/core/dependencies.js +5 -1
- package/dist/node/core/dependencies.js.map +1 -1
- package/dist/node/core/dependencies.mjs +155 -0
- package/dist/node/core/dependencies.mjs.map +1 -0
- package/dist/node/core/env.d.ts.map +1 -1
- package/dist/node/core/env.js +7 -4
- package/dist/node/core/env.js.map +1 -1
- package/dist/node/core/env.mjs +23 -0
- package/dist/node/core/env.mjs.map +1 -0
- package/dist/node/core/errors.mjs +29 -0
- package/dist/node/core/errors.mjs.map +1 -0
- package/dist/node/core/files.mjs +43 -0
- package/dist/node/core/files.mjs.map +1 -0
- package/dist/node/core/managers.mjs +17 -0
- package/dist/node/core/managers.mjs.map +1 -0
- package/dist/node/core/monorepo.mjs +20 -0
- package/dist/node/core/monorepo.mjs.map +1 -0
- package/dist/node/core/plugins.mjs +93 -0
- package/dist/node/core/plugins.mjs.map +1 -0
- package/dist/node/core/timer.mjs +27 -0
- package/dist/node/core/timer.mjs.map +1 -0
- package/dist/node/create-build-context.d.ts.map +1 -1
- package/dist/node/create-build-context.js +1 -1
- package/dist/node/create-build-context.js.map +1 -1
- package/dist/node/create-build-context.mjs +91 -0
- package/dist/node/create-build-context.mjs.map +1 -0
- package/dist/node/develop.js +1 -1
- package/dist/node/develop.js.map +1 -1
- package/dist/node/develop.mjs +252 -0
- package/dist/node/develop.mjs.map +1 -0
- package/dist/node/staticFiles.d.ts.map +1 -1
- package/dist/node/staticFiles.js +25 -3
- package/dist/node/staticFiles.js.map +1 -1
- package/dist/node/staticFiles.mjs +76 -0
- package/dist/node/staticFiles.mjs.map +1 -0
- package/dist/node/vite/build.mjs +12 -0
- package/dist/node/vite/build.mjs.map +1 -0
- package/dist/node/vite/config.mjs +99 -0
- package/dist/node/vite/config.mjs.map +1 -0
- package/dist/node/vite/plugins.mjs +43 -0
- package/dist/node/vite/plugins.mjs.map +1 -0
- package/dist/node/vite/watch.mjs +52 -0
- package/dist/node/vite/watch.mjs.map +1 -0
- package/dist/node/webpack/build.mjs +39 -0
- package/dist/node/webpack/build.mjs.map +1 -0
- package/dist/node/webpack/config.mjs +228 -0
- package/dist/node/webpack/config.mjs.map +1 -0
- package/dist/node/webpack/watch.mjs +92 -0
- package/dist/node/webpack/watch.mjs.map +1 -0
- package/package.json +33 -40
- package/dist/cli/commands/plugin/build.d.ts +0 -7
- package/dist/cli/commands/plugin/build.d.ts.map +0 -1
- package/dist/cli/commands/plugin/build.js +0 -88
- package/dist/cli/commands/plugin/build.js.map +0 -1
- package/dist/cli/commands/plugin/init/action.d.ts +0 -6
- package/dist/cli/commands/plugin/init/action.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/action.js +0 -414
- package/dist/cli/commands/plugin/init/action.js.map +0 -1
- package/dist/cli/commands/plugin/init/command.d.ts +0 -7
- package/dist/cli/commands/plugin/init/command.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/command.js +0 -9
- package/dist/cli/commands/plugin/init/command.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/admin.d.ts +0 -5
- package/dist/cli/commands/plugin/init/files/admin.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/admin.js +0 -283
- package/dist/cli/commands/plugin/init/files/admin.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/editorConfig.d.ts +0 -4
- package/dist/cli/commands/plugin/init/files/editorConfig.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/editorConfig.js +0 -26
- package/dist/cli/commands/plugin/init/files/editorConfig.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/eslint.d.ts +0 -4
- package/dist/cli/commands/plugin/init/files/eslint.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/eslint.js +0 -11
- package/dist/cli/commands/plugin/init/files/eslint.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts +0 -4
- package/dist/cli/commands/plugin/init/files/gitIgnore.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/gitIgnore.js +0 -34
- package/dist/cli/commands/plugin/init/files/gitIgnore.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/prettier.d.ts +0 -5
- package/dist/cli/commands/plugin/init/files/prettier.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/prettier.js +0 -25
- package/dist/cli/commands/plugin/init/files/prettier.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/server.d.ts +0 -5
- package/dist/cli/commands/plugin/init/files/server.d.ts.map +0 -1
- package/dist/cli/commands/plugin/init/files/server.js +0 -360
- package/dist/cli/commands/plugin/init/files/server.js.map +0 -1
- package/dist/cli/commands/plugin/init/files/typescript.js +0 -66
- package/dist/cli/commands/plugin/init/files/typescript.js.map +0 -1
- package/dist/cli/commands/plugin/init/index.d.ts +0 -2
- package/dist/cli/commands/plugin/init/index.d.ts.map +0 -1
- package/dist/cli/commands/plugin/link-watch.d.ts +0 -7
- package/dist/cli/commands/plugin/link-watch.d.ts.map +0 -1
- package/dist/cli/commands/plugin/link-watch.js +0 -89
- package/dist/cli/commands/plugin/link-watch.js.map +0 -1
- package/dist/cli/commands/plugin/verify.d.ts +0 -7
- package/dist/cli/commands/plugin/verify.d.ts.map +0 -1
- package/dist/cli/commands/plugin/verify.js +0 -37
- package/dist/cli/commands/plugin/verify.js.map +0 -1
- package/dist/cli/commands/plugin/watch.d.ts +0 -7
- package/dist/cli/commands/plugin/watch.d.ts.map +0 -1
- package/dist/cli/commands/plugin/watch.js +0 -86
- package/dist/cli/commands/plugin/watch.js.map +0 -1
- package/dist/cli/utils/pkg.js +0 -108
- package/dist/cli/utils/pkg.js.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import os from "node:os";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
|
+
import webpackDevMiddleware from "webpack-dev-middleware";
|
|
5
|
+
import webpackHotMiddleware from "webpack-hot-middleware";
|
|
6
|
+
import { webpack } from "webpack";
|
|
7
|
+
import { resolveDevelopmentConfig, mergeConfigWithUserConfig } from "./config.mjs";
|
|
8
|
+
const watch = async (ctx) => {
|
|
9
|
+
const config = await resolveDevelopmentConfig(ctx);
|
|
10
|
+
const finalConfig = await mergeConfigWithUserConfig(config, ctx);
|
|
11
|
+
ctx.logger.debug("Final webpack config:", os.EOL, finalConfig);
|
|
12
|
+
return new Promise((res) => {
|
|
13
|
+
const compiler = webpack(finalConfig);
|
|
14
|
+
const devMiddleware = webpackDevMiddleware(compiler);
|
|
15
|
+
const hotMiddleware = webpackHotMiddleware(compiler, {
|
|
16
|
+
log: false,
|
|
17
|
+
path: "/__webpack_hmr"
|
|
18
|
+
});
|
|
19
|
+
ctx.strapi.server.app.use((ctx2, next) => {
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
hotMiddleware(ctx2.req, ctx2.res, (err) => {
|
|
22
|
+
if (err)
|
|
23
|
+
reject(err);
|
|
24
|
+
else
|
|
25
|
+
resolve(next());
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
ctx.strapi.server.app.use((context, next) => {
|
|
30
|
+
const ready = new Promise((resolve) => {
|
|
31
|
+
devMiddleware.waitUntilValid(() => {
|
|
32
|
+
resolve(true);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
const init = new Promise((resolve) => {
|
|
36
|
+
devMiddleware(
|
|
37
|
+
context.req,
|
|
38
|
+
{
|
|
39
|
+
// @ts-expect-error ignored
|
|
40
|
+
end(content) {
|
|
41
|
+
context.body = content;
|
|
42
|
+
resolve(true);
|
|
43
|
+
},
|
|
44
|
+
getHeader: context.get.bind(context),
|
|
45
|
+
// @ts-expect-error ignored
|
|
46
|
+
setHeader: context.set.bind(context),
|
|
47
|
+
locals: context.state
|
|
48
|
+
},
|
|
49
|
+
() => resolve(next())
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
return Promise.all([ready, init]);
|
|
53
|
+
});
|
|
54
|
+
const serveAdmin = async (ctx2, next) => {
|
|
55
|
+
await next();
|
|
56
|
+
if (devMiddleware.context.outputFileSystem.createReadStream) {
|
|
57
|
+
if (ctx2.method !== "HEAD" && ctx2.method !== "GET") {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (ctx2.body != null || ctx2.status !== 404) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const filename = path.resolve(finalConfig.output?.path, "index.html");
|
|
64
|
+
ctx2.type = "html";
|
|
65
|
+
ctx2.body = devMiddleware.context.outputFileSystem.createReadStream(filename);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
ctx.strapi.server.routes([
|
|
69
|
+
{
|
|
70
|
+
method: "GET",
|
|
71
|
+
path: `${ctx.basePath}:path*`,
|
|
72
|
+
handler: serveAdmin,
|
|
73
|
+
config: { auth: false }
|
|
74
|
+
}
|
|
75
|
+
]);
|
|
76
|
+
devMiddleware.waitUntilValid(() => {
|
|
77
|
+
res({
|
|
78
|
+
async close() {
|
|
79
|
+
await Promise.all([
|
|
80
|
+
promisify(devMiddleware.close.bind(devMiddleware))(),
|
|
81
|
+
hotMiddleware.close(),
|
|
82
|
+
promisify(compiler.close.bind(compiler))()
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
watch
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=watch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.mjs","sources":["../../../src/node/webpack/watch.ts"],"sourcesContent":["import os from 'node:os';\nimport path from 'node:path';\nimport { promisify } from 'node:util';\nimport webpackDevMiddleware from 'webpack-dev-middleware';\nimport webpackHotMiddleware from 'webpack-hot-middleware';\nimport { webpack } from 'webpack';\nimport { Core } from '@strapi/types';\nimport type { BuildContext } from '../create-build-context';\nimport { mergeConfigWithUserConfig, resolveDevelopmentConfig } from './config';\n\ninterface WebpackWatcher {\n close(): Promise<void>;\n}\n\nconst watch = async (ctx: BuildContext): Promise<WebpackWatcher> => {\n const config = await resolveDevelopmentConfig(ctx);\n const finalConfig = await mergeConfigWithUserConfig(config, ctx);\n\n ctx.logger.debug('Final webpack config:', os.EOL, finalConfig);\n\n return new Promise<WebpackWatcher>((res) => {\n const compiler = webpack(finalConfig);\n\n const devMiddleware = webpackDevMiddleware(compiler);\n\n // @ts-expect-error incompatible types between hotMiddleware and webpack\n const hotMiddleware = webpackHotMiddleware(compiler, {\n log: false,\n path: '/__webpack_hmr',\n });\n\n ctx.strapi.server.app.use((ctx, next) => {\n return new Promise((resolve, reject) => {\n hotMiddleware(ctx.req, ctx.res, (err) => {\n if (err) reject(err);\n else resolve(next());\n });\n });\n });\n\n ctx.strapi.server.app.use((context, next) => {\n // wait for webpack-dev-middleware to signal that the build is ready\n const ready = new Promise((resolve) => {\n devMiddleware.waitUntilValid(() => {\n resolve(true);\n });\n });\n // tell webpack-dev-middleware to handle the request\n const init = new Promise((resolve) => {\n devMiddleware(\n context.req,\n {\n // @ts-expect-error ignored\n end(content) {\n // eslint-disable-next-line no-param-reassign\n context.body = content;\n resolve(true);\n },\n getHeader: context.get.bind(context),\n // @ts-expect-error ignored\n setHeader: context.set.bind(context),\n locals: context.state,\n },\n () => resolve(next())\n );\n });\n\n return Promise.all([ready, init]);\n });\n\n const serveAdmin: Core.MiddlewareHandler = async (ctx, next) => {\n await next();\n\n if (devMiddleware.context.outputFileSystem.createReadStream) {\n if (ctx.method !== 'HEAD' && ctx.method !== 'GET') {\n return;\n }\n\n if (ctx.body != null || ctx.status !== 404) {\n return;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain\n const filename = path.resolve(finalConfig.output?.path!, 'index.html');\n ctx.type = 'html';\n ctx.body = devMiddleware.context.outputFileSystem.createReadStream(filename);\n }\n };\n\n ctx.strapi.server.routes([\n {\n method: 'GET',\n path: `${ctx.basePath}:path*`,\n handler: serveAdmin,\n config: { auth: false },\n },\n ]);\n\n devMiddleware.waitUntilValid(() => {\n res({\n async close() {\n await Promise.all([\n promisify(devMiddleware.close.bind(devMiddleware))(),\n hotMiddleware.close(),\n promisify(compiler.close.bind(compiler))(),\n ]);\n },\n });\n });\n });\n};\n\nexport { watch };\nexport type { WebpackWatcher };\n"],"names":["ctx"],"mappings":";;;;;;;AAcM,MAAA,QAAQ,OAAO,QAA+C;AAC5D,QAAA,SAAS,MAAM,yBAAyB,GAAG;AACjD,QAAM,cAAc,MAAM,0BAA0B,QAAQ,GAAG;AAE/D,MAAI,OAAO,MAAM,yBAAyB,GAAG,KAAK,WAAW;AAEtD,SAAA,IAAI,QAAwB,CAAC,QAAQ;AACpC,UAAA,WAAW,QAAQ,WAAW;AAE9B,UAAA,gBAAgB,qBAAqB,QAAQ;AAG7C,UAAA,gBAAgB,qBAAqB,UAAU;AAAA,MACnD,KAAK;AAAA,MACL,MAAM;AAAA,IAAA,CACP;AAED,QAAI,OAAO,OAAO,IAAI,IAAI,CAACA,MAAK,SAAS;AACvC,aAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,sBAAcA,KAAI,KAAKA,KAAI,KAAK,CAAC,QAAQ;AACnC,cAAA;AAAK,mBAAO,GAAG;AAAA;AACd,oBAAQ,MAAM;AAAA,QAAA,CACpB;AAAA,MAAA,CACF;AAAA,IAAA,CACF;AAED,QAAI,OAAO,OAAO,IAAI,IAAI,CAAC,SAAS,SAAS;AAE3C,YAAM,QAAQ,IAAI,QAAQ,CAAC,YAAY;AACrC,sBAAc,eAAe,MAAM;AACjC,kBAAQ,IAAI;AAAA,QAAA,CACb;AAAA,MAAA,CACF;AAED,YAAM,OAAO,IAAI,QAAQ,CAAC,YAAY;AACpC;AAAA,UACE,QAAQ;AAAA,UACR;AAAA;AAAA,YAEE,IAAI,SAAS;AAEX,sBAAQ,OAAO;AACf,sBAAQ,IAAI;AAAA,YACd;AAAA,YACA,WAAW,QAAQ,IAAI,KAAK,OAAO;AAAA;AAAA,YAEnC,WAAW,QAAQ,IAAI,KAAK,OAAO;AAAA,YACnC,QAAQ,QAAQ;AAAA,UAClB;AAAA,UACA,MAAM,QAAQ,MAAM;AAAA,QAAA;AAAA,MACtB,CACD;AAED,aAAO,QAAQ,IAAI,CAAC,OAAO,IAAI,CAAC;AAAA,IAAA,CACjC;AAEK,UAAA,aAAqC,OAAOA,MAAK,SAAS;AAC9D,YAAM,KAAK;AAEP,UAAA,cAAc,QAAQ,iBAAiB,kBAAkB;AAC3D,YAAIA,KAAI,WAAW,UAAUA,KAAI,WAAW,OAAO;AACjD;AAAA,QACF;AAEA,YAAIA,KAAI,QAAQ,QAAQA,KAAI,WAAW,KAAK;AAC1C;AAAA,QACF;AAGA,cAAM,WAAW,KAAK,QAAQ,YAAY,QAAQ,MAAO,YAAY;AACrEA,aAAI,OAAO;AACXA,aAAI,OAAO,cAAc,QAAQ,iBAAiB,iBAAiB,QAAQ;AAAA,MAC7E;AAAA,IAAA;AAGE,QAAA,OAAO,OAAO,OAAO;AAAA,MACvB;AAAA,QACE,QAAQ;AAAA,QACR,MAAM,GAAG,IAAI,QAAQ;AAAA,QACrB,SAAS;AAAA,QACT,QAAQ,EAAE,MAAM,MAAM;AAAA,MACxB;AAAA,IAAA,CACD;AAED,kBAAc,eAAe,MAAM;AAC7B,UAAA;AAAA,QACF,MAAM,QAAQ;AACZ,gBAAM,QAAQ,IAAI;AAAA,YAChB,UAAU,cAAc,MAAM,KAAK,aAAa,CAAC,EAAE;AAAA,YACnD,cAAc,MAAM;AAAA,YACpB,UAAU,SAAS,MAAM,KAAK,QAAQ,CAAC,EAAE;AAAA,UAAA,CAC1C;AAAA,QACH;AAAA,MAAA,CACD;AAAA,IAAA,CACF;AAAA,EAAA,CACF;AACH;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.11",
|
|
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",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"json",
|
|
18
18
|
"koa",
|
|
19
19
|
"koajs",
|
|
20
|
-
"helmet",
|
|
21
20
|
"mvc",
|
|
22
21
|
"oauth",
|
|
23
22
|
"oauth2",
|
|
@@ -110,24 +109,25 @@
|
|
|
110
109
|
},
|
|
111
110
|
"dependencies": {
|
|
112
111
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
|
|
113
|
-
"@strapi/admin": "5.0.0-beta.
|
|
114
|
-
"@strapi/content-
|
|
115
|
-
"@strapi/
|
|
116
|
-
"@strapi/
|
|
117
|
-
"@strapi/
|
|
118
|
-
"@strapi/
|
|
119
|
-
"@strapi/
|
|
120
|
-
"@strapi/
|
|
121
|
-
"@strapi/
|
|
122
|
-
"@strapi/
|
|
123
|
-
"@strapi/
|
|
124
|
-
"@strapi/
|
|
125
|
-
"@strapi/
|
|
126
|
-
"@strapi/
|
|
127
|
-
"@strapi/
|
|
128
|
-
"@strapi/types": "5.0.0-beta.
|
|
129
|
-
"@strapi/typescript-utils": "5.0.0-beta.
|
|
130
|
-
"@strapi/
|
|
112
|
+
"@strapi/admin": "5.0.0-beta.11",
|
|
113
|
+
"@strapi/content-manager": "5.0.0-beta.11",
|
|
114
|
+
"@strapi/content-releases": "5.0.0-beta.11",
|
|
115
|
+
"@strapi/content-type-builder": "5.0.0-beta.11",
|
|
116
|
+
"@strapi/core": "5.0.0-beta.11",
|
|
117
|
+
"@strapi/data-transfer": "5.0.0-beta.11",
|
|
118
|
+
"@strapi/database": "5.0.0-beta.11",
|
|
119
|
+
"@strapi/email": "5.0.0-beta.11",
|
|
120
|
+
"@strapi/generate-new": "5.0.0-beta.11",
|
|
121
|
+
"@strapi/generators": "5.0.0-beta.11",
|
|
122
|
+
"@strapi/i18n": "5.0.0-beta.11",
|
|
123
|
+
"@strapi/logger": "5.0.0-beta.11",
|
|
124
|
+
"@strapi/pack-up": "5.0.0",
|
|
125
|
+
"@strapi/permissions": "5.0.0-beta.11",
|
|
126
|
+
"@strapi/review-workflows": "5.0.0-beta.11",
|
|
127
|
+
"@strapi/types": "5.0.0-beta.11",
|
|
128
|
+
"@strapi/typescript-utils": "5.0.0-beta.11",
|
|
129
|
+
"@strapi/upload": "5.0.0-beta.11",
|
|
130
|
+
"@strapi/utils": "5.0.0-beta.11",
|
|
131
131
|
"@types/nodemon": "1.19.6",
|
|
132
132
|
"@vitejs/plugin-react-swc": "3.6.0",
|
|
133
133
|
"boxen": "5.1.2",
|
|
@@ -140,31 +140,24 @@
|
|
|
140
140
|
"concurrently": "8.2.2",
|
|
141
141
|
"copyfiles": "2.4.1",
|
|
142
142
|
"css-loader": "^6.10.0",
|
|
143
|
-
"dotenv": "
|
|
144
|
-
"esbuild": "0.
|
|
143
|
+
"dotenv": "16.4.5",
|
|
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",
|
|
148
|
-
"find-root": "1.1.0",
|
|
149
148
|
"fork-ts-checker-webpack-plugin": "8.0.0",
|
|
150
|
-
"fs-extra": "
|
|
149
|
+
"fs-extra": "11.2.0",
|
|
151
150
|
"get-latest-version": "5.1.0",
|
|
152
|
-
"git-url-parse": "
|
|
153
|
-
"glob": "10.3.10",
|
|
151
|
+
"git-url-parse": "14.0.0",
|
|
154
152
|
"html-webpack-plugin": "5.6.0",
|
|
155
|
-
"http-errors": "1.8.1",
|
|
156
|
-
"https-proxy-agent": "5.0.1",
|
|
157
153
|
"inquirer": "8.2.5",
|
|
158
154
|
"lodash": "4.17.21",
|
|
159
155
|
"mini-css-extract-plugin": "2.7.7",
|
|
160
156
|
"nodemon": "3.0.2",
|
|
161
157
|
"ora": "5.4.1",
|
|
162
158
|
"outdent": "0.8.0",
|
|
163
|
-
"package-json": "7.0.0",
|
|
164
159
|
"pkg-up": "3.1.0",
|
|
165
|
-
"prettier": "2.
|
|
166
|
-
"react": "^18.2.0",
|
|
167
|
-
"react-dom": "^18.2.0",
|
|
160
|
+
"prettier": "3.2.5",
|
|
168
161
|
"react-refresh": "0.14.0",
|
|
169
162
|
"read-pkg-up": "7.0.1",
|
|
170
163
|
"resolve-from": "5.0.0",
|
|
@@ -180,27 +173,27 @@
|
|
|
180
173
|
"yup": "0.32.9"
|
|
181
174
|
},
|
|
182
175
|
"devDependencies": {
|
|
183
|
-
"@strapi/
|
|
184
|
-
"@types/
|
|
176
|
+
"@strapi/ts-zen": "^0.2.0",
|
|
177
|
+
"@types/fs-extra": "11.0.4",
|
|
185
178
|
"@types/jest": "29.5.2",
|
|
186
179
|
"@types/lodash": "^4.14.191",
|
|
187
180
|
"@types/node": "18.19.24",
|
|
188
181
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
189
182
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
190
|
-
"eslint-config-custom": "5.0.0-beta.
|
|
191
|
-
"react": "
|
|
192
|
-
"react-dom": "
|
|
193
|
-
"tsconfig": "5.0.0-beta.
|
|
183
|
+
"eslint-config-custom": "5.0.0-beta.11",
|
|
184
|
+
"react": "18.3.1",
|
|
185
|
+
"react-dom": "18.3.1",
|
|
186
|
+
"tsconfig": "5.0.0-beta.11"
|
|
194
187
|
},
|
|
195
188
|
"peerDependencies": {
|
|
196
189
|
"react": "^17.0.0 || ^18.0.0",
|
|
197
190
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
198
191
|
"react-router-dom": "^6.0.0",
|
|
199
|
-
"styled-components": "^
|
|
192
|
+
"styled-components": "^6.0.0"
|
|
200
193
|
},
|
|
201
194
|
"engines": {
|
|
202
195
|
"node": ">=18.0.0 <=20.x.x",
|
|
203
196
|
"npm": ">=6.0.0"
|
|
204
197
|
},
|
|
205
|
-
"gitHead": "
|
|
198
|
+
"gitHead": "0991f0ac0f739e43e6a5f9ac79acb8c774c359bf"
|
|
206
199
|
}
|
|
@@ -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,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"}
|