Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/lint/checkDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default function (
.then(({ version, files: pkgFiles }: { version: string; files: FileItem[] }) => {
function flattenPath(files: FileItem[], fileList: string[] = []): string[] {
(files || []).forEach(({ path, files: subFiles }) => {
const realPath = argv.path ? join(argv.path, path) : path
fileList.push(realPath);
const realPath = argv.path ? join(argv.path, path) : path;
fileList.push(realPath.replace(/^\//, ''));
flattenPath(subFiles, fileList);
});
return fileList;
Expand Down Expand Up @@ -89,8 +89,6 @@ export default function (
return { missingFiles, addedFiles, version };
})
.then(({ missingFiles, addedFiles, version }) => {


if (addedFiles.length) {
console.log(
chalk.yellow(`⚠️ Some file added in current build (last version: ${version}):`)
Expand Down