Skip to content

Commit

Permalink
Fixed scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 25, 2023
1 parent 8aaaa8d commit 35f80d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions rollup.components.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ const aliasConfig = {
customResolver,
};

const external = [
'react',
'react-dom',
'react/jsx-runtime',
'react-intl',
'react-basics',
'classnames',
'next',
];

const jsBundle = {
input: 'src/index.ts',
output: [
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-country-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const https = require('https');
const chalk = require('chalk');

const src = path.resolve(__dirname, '../lang');
const src = path.resolve(__dirname, '../src/lang');
const dest = path.resolve(__dirname, '../public/intl/country');
const files = fs.readdirSync(src);

Expand Down
2 changes: 1 addition & 1 deletion scripts/download-language-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const https = require('https');
const chalk = require('chalk');

const src = path.resolve(__dirname, '../lang');
const src = path.resolve(__dirname, '../src/lang');
const dest = path.resolve(__dirname, '../public/intl/language');
const files = fs.readdirSync(src);

Expand Down
4 changes: 2 additions & 2 deletions scripts/format-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const del = require('del');
const prettier = require('prettier');

const src = path.resolve(__dirname, '../lang');
const src = path.resolve(__dirname, '../src/lang');
const dest = path.resolve(__dirname, '../build/messages');
const files = fs.readdirSync(src);

Expand All @@ -17,7 +17,7 @@ async function run() {
await fs.ensureDir(dest);

files.forEach(file => {
const lang = require(`../lang/${file}`);
const lang = require(`../src/lang/${file}`);
const keys = Object.keys(lang).sort();

const formatted = keys.reduce((obj, key) => {
Expand Down

0 comments on commit 35f80d9

Please sign in to comment.