gtx-cli 2.1.16 → 2.1.17
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.1.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#635](https://github.com/generaltranslation/gt/pull/635) [`10aa051`](https://github.com/generaltranslation/gt/commit/10aa051592cea43f772615da200c8615d4dd1a78) Thanks [@brian-lou](https://github.com/brian-lou)! - Create dictionary with uuid to reduce flakiness
|
|
8
|
+
|
|
3
9
|
## 2.1.16
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ import loadJSON from '../../fs/loadJSON.js';
|
|
|
7
7
|
import { hashSource } from 'generaltranslation/id';
|
|
8
8
|
import getEntryAndMetadata from '../utils/getEntryAndMetadata.js';
|
|
9
9
|
import { logError } from '../../console/logging.js';
|
|
10
|
+
import { randomUUID } from 'node:crypto';
|
|
10
11
|
export async function createDictionaryUpdates(dictionaryPath, esbuildConfig) {
|
|
11
12
|
let dictionary;
|
|
12
13
|
// ---- HANDLE JSON STRING DICTIONARY ----- //
|
|
@@ -21,7 +22,7 @@ export async function createDictionaryUpdates(dictionaryPath, esbuildConfig) {
|
|
|
21
22
|
write: false,
|
|
22
23
|
});
|
|
23
24
|
const bundledCode = result.outputFiles[0].text;
|
|
24
|
-
const tempFilePath = path.join(os.tmpdir(),
|
|
25
|
+
const tempFilePath = path.join(os.tmpdir(), `bundled-dictionary-${randomUUID()}.js`);
|
|
25
26
|
await fs.promises.writeFile(tempFilePath, bundledCode);
|
|
26
27
|
// Load the module using dynamic import
|
|
27
28
|
let dictionaryModule;
|