xshell 1.3.46 → 1.3.47

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/builder.js +4 -4
  2. package/package.json +1 -1
package/builder.js CHANGED
@@ -123,7 +123,7 @@ export async function get_resolve_alias(fpd_root) {
123
123
  const fp = `${fpd_root}tsconfig.json`;
124
124
  let lines;
125
125
  try {
126
- lines = await fread_lines(fp);
126
+ lines = await fread_lines(fp, noprint);
127
127
  }
128
128
  catch (error) {
129
129
  if (error.code === 'ENOENT') {
@@ -145,11 +145,11 @@ export async function get_resolve_alias(fpd_root) {
145
145
  // 检查 value 数组只有一项
146
146
  check(values.length === 1, `paths 的 value 数组必须只有一项: ${key}`);
147
147
  const value = values[0];
148
- // key 和 value 都以 /* 结尾时,去掉 *
148
+ // key 和 value 都以 /* 结尾时,去掉 /*
149
149
  if (key.endsWith('/*') && value.endsWith('/*'))
150
150
  return [
151
- key.slice(0, -1),
152
- fpd_root + value.slice(0, -1).strip_if_start('./')
151
+ key.slice(0, -2),
152
+ fpd_root + value.slice(0, -2).strip_if_start('./')
153
153
  ];
154
154
  else // 是某个具体文件
155
155
  return [key, fpd_root + value.strip_if_start('./')];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.3.46",
3
+ "version": "1.3.47",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {