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.
Files changed (2) hide show
  1. package/bin/glyphix.js +8 -1
  2. 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
- return (0, import_node_path3.resolve)(projectRoot, "src", relativePath);
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [