mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-10 02:05:31 +02:00
🐛 Fix patch doesn't exist error
This commit is contained in:
parent
a870a6cd5b
commit
c3667b279d
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,7 @@ import { SRC_DIR } from '../../constants'
|
||||||
import * as gitPatch from './gitPatch'
|
import * as gitPatch from './gitPatch'
|
||||||
import * as copyPatch from './copyPatches'
|
import * as copyPatch from './copyPatches'
|
||||||
import * as brandingPatch from './brandingPatch'
|
import * as brandingPatch from './brandingPatch'
|
||||||
|
import { join } from 'path'
|
||||||
|
|
||||||
type ListrTaskGroup = {
|
type ListrTaskGroup = {
|
||||||
title: string
|
title: string
|
||||||
|
@ -62,7 +63,9 @@ function importFolders(): ListrTaskGroup {
|
||||||
function importGitPatch(): ListrTaskGroup {
|
function importGitPatch(): ListrTaskGroup {
|
||||||
return patchMethod(
|
return patchMethod(
|
||||||
'git',
|
'git',
|
||||||
sync('**/*.patch', { nodir: true, cwd: SRC_DIR }),
|
sync('**/*.patch', { nodir: true, cwd: SRC_DIR }).map((path) =>
|
||||||
|
join(SRC_DIR, path)
|
||||||
|
),
|
||||||
(path) => path,
|
(path) => path,
|
||||||
async (path) => await gitPatch.apply(path)
|
async (path) => await gitPatch.apply(path)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue