ipa-core 1.1.12 → 1.1.13
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/generate-config.js +2 -2
- package/generate-conlang.js +2 -2
- package/package.json +1 -1
package/generate-config.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
|
-
const core = require('./core.
|
|
8
|
-
const modifiers = require('./modifiers.
|
|
7
|
+
const core = require('./core.js'); // your ES6 exports can stay; if core.js is ES module, you can require with .default
|
|
8
|
+
const modifiers = require('./modifiers.js'); // same as above
|
|
9
9
|
|
|
10
10
|
// -----------------------------
|
|
11
11
|
// GROUP IPA SYMBOLS BY TYPE
|
package/generate-conlang.js
CHANGED
|
@@ -5,8 +5,8 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const readline = require('readline');
|
|
7
7
|
|
|
8
|
-
const core = require('./core.
|
|
9
|
-
const modifiers = require('./modifiers.
|
|
8
|
+
const core = require('./core.js'); // Use .default if core.js is ES module
|
|
9
|
+
const modifiers = require('./modifiers.js'); // Use .default if modifiers.js is ES module
|
|
10
10
|
|
|
11
11
|
/** Pick random element */
|
|
12
12
|
const pickRandom = (arr) => arr[Math.floor(Math.random() * arr.length)];
|