0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: fix local startup

This commit is contained in:
Juan Picado 2023-05-13 16:17:57 +02:00
parent d52dbadae8
commit cc43ba4faf
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ const storageLocation = path.join(__dirname, '../partials/storage');
const pluginsLocation = path.join(__dirname, '../partials/plugins'); const pluginsLocation = path.join(__dirname, '../partials/plugins');
const configJsonFormat = Object.assign( const configJsonFormat = Object.assign(
{}, {},
yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')), yaml.load(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
{ {
storage: storageLocation, storage: storageLocation,
plugins: pluginsLocation, plugins: pluginsLocation,

View file

@ -9,7 +9,7 @@ import env from '../config/env';
import getPackageJson from './getPackageJson'; import getPackageJson from './getPackageJson';
import baseConfig from './webpack.config'; import baseConfig from './webpack.config';
const configJsonFormat = yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')); const configJsonFormat = yaml.load(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
export default { export default {
...baseConfig, ...baseConfig,
mode: 'development', mode: 'development',

View file

@ -75,7 +75,7 @@ const verdaccio = require('verdaccio').default;
const YAML = require('js-yaml'); const YAML = require('js-yaml');
const getConfig = () => { const getConfig = () => {
return YAML.safeLoad(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); return YAML.load(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8'));
}; };
const cache = path.join(__dirname, 'cache'); const cache = path.join(__dirname, 'cache');

View file

@ -75,7 +75,7 @@ const verdaccio = require('verdaccio').default;
const YAML = require('js-yaml'); const YAML = require('js-yaml');
const getConfig = () => { const getConfig = () => {
return YAML.safeLoad(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); return YAML.load(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8'));
}; };
const cache = path.join(__dirname, 'cache'); const cache = path.join(__dirname, 'cache');