Skip to content

Commit

Permalink
fix: updated locale build script
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Jun 5, 2020
1 parent 5014317 commit e67c187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Expand Up @@ -7,7 +7,6 @@ module.exports = {
collectCoverageFrom: ['packages/*/src/**/*.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: {
'^@vee-validate/rules/i18n/(.+)$': '<rootDir>/packages/rules/i18n/$1',
'^@vee-validate/(.+)$': '<rootDir>/packages/$1/src',
},
};
4 changes: 2 additions & 2 deletions scripts/build.js
Expand Up @@ -4,7 +4,7 @@ const chalk = require('chalk');
const { build } = require('../rollup.config');

async function buildLocales() {
const localesDir = path.join(__dirname, '../packages/i18n/locale');
const localesDir = path.join(__dirname, '../packages/i18n/src/locale');
const files = fs.readdirSync(localesDir);
// eslint-disable-next-line
console.log(chalk.cyan('Building i18n...'));
Expand All @@ -13,7 +13,7 @@ async function buildLocales() {
const file = files[i];
process.stdout.write(`${chalk.green(`Output File ${i}/${files.length}: `)} ${file}`);

const input = path.join(__dirname, '../packages/i18n/locale', file);
const input = path.join(__dirname, '../packages/i18n/src/locale', file);
const out = path.join(__dirname, '../packages/i18n/dist', file);
fs.copySync(input, out);
process.stdout.clearLine();
Expand Down

0 comments on commit e67c187

Please sign in to comment.