Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GauharChan committed Apr 6, 2023
1 parent f1b2961 commit fce8576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-shared",
"version": "1.0.7",
"version": "1.0.8",
"description": "一款针对assets目录规范,自动生成出口shared.ts的工具",
"author": "Gauhar Chan",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function createShared(targetPath: string) {
// 遍历获取所有ts文件
const allTs = recursion(
targetPath,
assetsModules.filter((file) => !file.endsWith('.ts') || !file.endsWith('.tsx')) // 剔除shared.ts
assetsModules.filter((file) => !file.endsWith('.ts')) // 剔除shared.ts
);
if (allTs.size) {
// 写入代码内容
Expand Down

0 comments on commit fce8576

Please sign in to comment.