mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
* Update NPM constraint and dependencies Requied: - NPM v8 → v10 Changed: - Fixed Node/NPM requirements in README. - Fixed dependency vulenerabilities. - Updated dependencies. - Removed obsolete Node flag `--experimental-json-modules`. - Replaced obsolete import `assert` keyword with `with`. * Update gitignore of assets to use wildcards --------- Co-authored-by: Deven Caron <devencaron@gmail.com>
26 lines
451 B
JavaScript
26 lines
451 B
JavaScript
/**
|
|
* @file Provides simple user configuration options.
|
|
*/
|
|
|
|
import loconfig from '../../loconfig.json' with { type: 'json' };
|
|
import { merge } from '../utils/index.js';
|
|
|
|
let usrconfig;
|
|
|
|
try {
|
|
usrconfig = await import('../../loconfig.local.json', {
|
|
with: { type: 'json' },
|
|
});
|
|
usrconfig = usrconfig.default;
|
|
|
|
merge(loconfig, usrconfig);
|
|
} catch (err) {
|
|
// do nothing
|
|
}
|
|
|
|
export default loconfig;
|
|
|
|
export {
|
|
loconfig,
|
|
};
|