Smart configuration loader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update bench with dotenv parsing

+9 -4
+1
test/bench/.env
··· 1 + TEST_ENV=ok
+2 -1
test/bench/c12-v3.mjs
··· 4 4 5 5 const { config } = await loadConfig({ 6 6 cwd: fileURLToPath(new URL("./", import.meta.url)), 7 + dotenv: true, 7 8 jitiOptions: { fsCache: false }, 8 9 }); 9 10 10 - assert.deepEqual(config, { test: true }); 11 + assert.deepEqual(config, { test: "ok" });
+5 -2
test/bench/c12-v4.mjs
··· 2 2 import { fileURLToPath } from "node:url"; 3 3 import { loadConfig } from "c12-v4"; 4 4 5 - const { config } = await loadConfig({ cwd: fileURLToPath(new URL("./", import.meta.url)) }); 5 + const { config } = await loadConfig({ 6 + dotenv: true, 7 + cwd: fileURLToPath(new URL("./", import.meta.url)), 8 + }); 6 9 7 - assert.deepEqual(config, { test: true }); 10 + assert.deepEqual(config, { test: "ok" });
+1 -1
test/bench/config.ts
··· 1 1 export default { 2 - test: true, 2 + test: process.env.TEST_ENV, 3 3 };