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:
parent
d52dbadae8
commit
cc43ba4faf
4 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue