config: flip priority order of ConfigReader.fromConfigs

This commit is contained in:
Patrik Oldsberg
2020-08-07 11:27:46 +02:00
parent f7532bcf1c
commit 1f2216fd77
13 changed files with 68 additions and 71 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import { buildBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'production',
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
});
await buildBundle({
entry: 'src/index',
+1 -1
View File
@@ -23,7 +23,7 @@ import { serveBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
});
const waitForExit = await serveBundle({
entry: 'src/index',
+1 -1
View File
@@ -23,7 +23,7 @@ import { serveBackend } from '../../lib/bundler/backend';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
});
const waitForExit = await serveBackend({
entry: 'src/index',
+1 -1
View File
@@ -23,7 +23,7 @@ import { buildBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'production',
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
});
await buildBundle({
entry: 'dev/index',
+1 -1
View File
@@ -23,7 +23,7 @@ import { serveBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
});
const waitForExit = await serveBundle({
entry: 'dev/index',