1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00

fix: rename variable yaml on source code (#3146)

no logic changes, just rename variables
This commit is contained in:
undefined 2022-04-29 00:01:09 +08:00 committed by GitHub
parent 0d1dd136eb
commit f9a58dce98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

@ -183,7 +183,7 @@
"title": "Package Managers",
"description": "This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.",
"yarnclassicDetails": "Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).",
"yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yalm` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x)."
"yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x)."
},
"language": {
"title": "Translations",

@ -1,14 +1,14 @@
const fs = require('fs');
const path = require('path');
const yalm = require('js-yaml');
const yaml = require('js-yaml');
const startServer = require('verdaccio').default;
const storageLocation = path.join(__dirname, '../partials/storage');
const pluginsLocation = path.join(__dirname, '../partials/plugins');
const configJsonFormat = Object.assign(
{},
yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
{
storage: storageLocation,
plugins: pluginsLocation,

@ -1,7 +1,7 @@
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
import fs from 'fs';
import HTMLWebpackPlugin from 'html-webpack-plugin';
import yalm from 'js-yaml';
import yaml from 'js-yaml';
import StyleLintPlugin from 'stylelint-webpack-plugin';
import webpack from 'webpack';
@ -9,7 +9,7 @@ import env from '../config/env';
import getPackageJson from './getPackageJson';
import baseConfig from './webpack.config';
const configJsonFormat = yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
const configJsonFormat = yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
export default {
...baseConfig,
mode: 'development',