Skip to content

Commit d7f245c

Browse files
committed
Rename LocJsonPreprocessor to LocFilePreprocessor.
1 parent 3e50998 commit d7f245c

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

build-tests/localization-plugin-test/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const child_process = require('child_process');
33
const path = require('path');
44
const process = require('process');
55

6-
const { LocJsonPreprocessor } = require('@rushstack/localization-plugin');
6+
const { LocFilePreprocessor } = require('@rushstack/localization-plugin');
77

88
function executeCommand(command) {
99
console.log('---> ' + command);
@@ -16,10 +16,11 @@ FileSystem.ensureEmptyFolder('dist');
1616
FileSystem.ensureEmptyFolder('lib');
1717
FileSystem.ensureEmptyFolder('temp');
1818

19-
LocJsonPreprocessor.preprocessLocJsonFiles({
19+
const preprocessor = new LocFilePreprocessor({
2020
srcFolder: path.resolve(__dirname, 'src'),
2121
generatedTsFolder: path.resolve(__dirname, 'temp', 'loc-json-ts')
2222
});
23+
preprocessor.generateTypings();
2324

2425
// Run Webpack
2526
executeCommand('node node_modules/webpack-cli/bin/cli');

webpack/localization-plugin/src/LocJsonPreprocessor.ts renamed to webpack/localization-plugin/src/LocFilePreprocessor.ts

File renamed without changes.

webpack/localization-plugin/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export {
1515
} from './LocalizationPlugin';
1616

1717
export {
18-
ILocJsonPreprocessorOptions,
19-
LocJsonPreprocessor
20-
} from './LocJsonPreprocessor';
18+
ILocFilePreprocessorOptions,
19+
LocFilePreprocessor
20+
} from './LocFilePreprocessor';

0 commit comments

Comments
 (0)