config-loader: use multiple config roots
This commit is contained in:
@@ -21,7 +21,9 @@ import { paths } from '../../lib/paths';
|
||||
import { buildBundle } from '../../lib/bundler';
|
||||
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({ rootPath: paths.targetRoot });
|
||||
const appConfigs = await loadConfig({
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
});
|
||||
await buildBundle({
|
||||
entry: 'src/index',
|
||||
statsJsonEnabled: cmd.stats,
|
||||
|
||||
@@ -21,7 +21,9 @@ import { paths } from '../../lib/paths';
|
||||
import { serveBundle } from '../../lib/bundler';
|
||||
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({ rootPath: paths.targetRoot });
|
||||
const appConfigs = await loadConfig({
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
});
|
||||
const waitForExit = await serveBundle({
|
||||
entry: 'src/index',
|
||||
checksEnabled: cmd.check,
|
||||
|
||||
@@ -21,7 +21,9 @@ import { paths } from '../../lib/paths';
|
||||
import { serveBackend } from '../../lib/bundler/backend';
|
||||
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({ rootPath: paths.targetRoot });
|
||||
const appConfigs = await loadConfig({
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
});
|
||||
const waitForExit = await serveBackend({
|
||||
entry: 'src/index',
|
||||
checksEnabled: cmd.check,
|
||||
|
||||
@@ -21,7 +21,9 @@ import { paths } from '../../lib/paths';
|
||||
import { buildBundle } from '../../lib/bundler';
|
||||
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({ rootPath: paths.targetRoot });
|
||||
const appConfigs = await loadConfig({
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
});
|
||||
await buildBundle({
|
||||
entry: 'dev/index',
|
||||
statsJsonEnabled: cmd.stats,
|
||||
|
||||
@@ -21,7 +21,9 @@ import { paths } from '../../lib/paths';
|
||||
import { serveBundle } from '../../lib/bundler';
|
||||
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({ rootPath: paths.targetRoot });
|
||||
const appConfigs = await loadConfig({
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
});
|
||||
const waitForExit = await serveBundle({
|
||||
entry: 'dev/index',
|
||||
checksEnabled: cmd.check,
|
||||
|
||||
Reference in New Issue
Block a user