@discord/intl-loader-core 0.0.4-rc.0 → 0.0.5
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/package.json +2 -2
- package/src/processing.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discord/intl-loader-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core utilities for writing loaders and transformers using @discord/intl",
|
|
6
6
|
"author": "Jon Egeland",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"chokidar": "^3.6.0",
|
|
20
20
|
"debug": "^4.3.6",
|
|
21
21
|
"fast-glob": "^3.3.2",
|
|
22
|
-
"@discord/intl-message-database": "0.0.
|
|
22
|
+
"@discord/intl-message-database": "0.0.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/debug": "^4.1.12"
|
package/src/processing.js
CHANGED
|
@@ -128,7 +128,7 @@ function generateTypeDefinitions(sourcePath, outputFile) {
|
|
|
128
128
|
const paths = database.getAllSourceFilePaths();
|
|
129
129
|
if (!paths.includes(sourcePath)) return false;
|
|
130
130
|
|
|
131
|
-
database.generateTypes(sourcePath, outputFile ?? sourcePath.replace(/\.[^.]
|
|
131
|
+
database.generateTypes(sourcePath, outputFile ?? sourcePath.replace(/\.[^.]+$/, '.d.ts'));
|
|
132
132
|
return true;
|
|
133
133
|
}
|
|
134
134
|
|