Skip to content

Commit

Permalink
Merge branch 'v5/main' of github.com:strapi/strapi into v5/main
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Jan 10, 2024
2 parents f324494 + b7a015e commit 55ed5ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/core/strapi/src/node/create-build-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import { PluginMeta, getEnabledPlugins, getMapOfPluginsWithAdmin } from './core/
import { AppFile, loadUserAppFile } from './core/admin-customisations';
import type { BaseContext } from './types';

interface BaseOptions {
stats?: boolean;
minify?: boolean;
sourcemaps?: boolean;
}

interface BuildContext<TOptions = unknown> extends BaseContext {
/**
* The customisations defined by the user in their app.js file
Expand All @@ -25,7 +31,7 @@ interface BuildContext<TOptions = unknown> extends BaseContext {
/**
* The build options
*/
options: TOptions;
options: BaseOptions & TOptions;
/**
* The plugins to be included in the JS bundle
* incl. internal plugins, third party plugins & local plugins
Expand Down Expand Up @@ -134,7 +140,7 @@ const createBuildContext = async <TOptions>({
env,
features,
logger,
options,
options: options as BaseOptions & TOptions,
plugins: pluginsWithFront,
runtimeDir,
strapi: strapiInstance,
Expand Down
4 changes: 3 additions & 1 deletion packages/core/strapi/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "tsconfig/base.json",
"compilerOptions": {
"noEmit": true,
"rootDir": "./src"
"rootDir": "./src",
"module": "ESNext",
"moduleResolution": "Bundler"
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 55ed5ff

Please sign in to comment.