Skip to content

Commit

Permalink
Merge pull request #2 from GauharChan/master-fix
Browse files Browse the repository at this point in the history
fix: bug
  • Loading branch information
GauharChan authored Apr 6, 2023
2 parents f1b2961 + fce8576 commit 14649a4
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 14649a4

Please sign in to comment.