@alauda/doom 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/translate.js +4 -2
- package/package.json +1 -1
package/lib/cli/translate.js
CHANGED
|
@@ -122,7 +122,6 @@ const limit = pRateLimit({
|
|
|
122
122
|
concurrency: 10,
|
|
123
123
|
});
|
|
124
124
|
const supportedLanguages = SUPPORTED_LANGUAGES.join(', ');
|
|
125
|
-
const shaHash = crypto.createHash('sha256');
|
|
126
125
|
export const translateCommand = new Command('translate')
|
|
127
126
|
.description('Translate the documentation')
|
|
128
127
|
.argument('[root]', 'Root directory of the documentation')
|
|
@@ -201,7 +200,10 @@ export const translateCommand = new Command('translate')
|
|
|
201
200
|
allSourceFilePaths.delete(sourceFilePath);
|
|
202
201
|
return;
|
|
203
202
|
}
|
|
204
|
-
const sourceSHA =
|
|
203
|
+
const sourceSHA = crypto
|
|
204
|
+
.createHash('sha256')
|
|
205
|
+
.update(sourceContent)
|
|
206
|
+
.digest('hex');
|
|
205
207
|
const targetFilePath = sourceFilePath.replace(sourceDir, targetDir);
|
|
206
208
|
let targetContent;
|
|
207
209
|
let targetFrontmatter;
|