glyphix 1.0.29 → 1.0.30
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/bin/glyphix.js +8 -1
- package/package.json +1 -1
package/bin/glyphix.js
CHANGED
|
@@ -167,7 +167,14 @@ function loadEnv() {
|
|
|
167
167
|
function getOriginFilePath(filePath, rootPath) {
|
|
168
168
|
const relativePath = (0, import_node_path3.relative)(rootPath, filePath);
|
|
169
169
|
const projectRoot = process.cwd();
|
|
170
|
-
|
|
170
|
+
const originPath = (0, import_node_path3.resolve)(projectRoot, "src", relativePath);
|
|
171
|
+
if (originPath.endsWith(".ts")) {
|
|
172
|
+
const uxOrigin = originPath.slice(0, -3) + ".ux";
|
|
173
|
+
if ((0, import_node_fs.existsSync)(uxOrigin)) {
|
|
174
|
+
return uxOrigin;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return originPath;
|
|
171
178
|
}
|
|
172
179
|
function outErrorLog(results, filepath) {
|
|
173
180
|
results.messages.forEach((item) => {
|