mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 17:30:02 +02:00
🎨 Use global constant
This commit is contained in:
parent
2fc60b26eb
commit
180e67cdf9
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ import { join } from 'node:path'
|
|||
import { existsSync } from 'node:fs'
|
||||
import glob from 'tiny-glob'
|
||||
|
||||
import { ENGINE_DIR, SRC_DIR } from '../../constants'
|
||||
import { ENGINE_DIR, PATCHES_DIR, SRC_DIR } from '../../constants'
|
||||
import * as gitPatch from './git-patch'
|
||||
import * as copyPatch from './copy-patches'
|
||||
import * as brandingPatch from './branding-patch'
|
||||
|
@ -98,11 +98,11 @@ async function importGitPatch(): Promise<Task> {
|
|||
async function importInternalPatch(): Promise<Task> {
|
||||
const patches = await glob('*.patch', {
|
||||
filesOnly: true,
|
||||
cwd: join(templateDirectory, 'patches.optional'),
|
||||
cwd: PATCHES_DIR,
|
||||
})
|
||||
const structuredPatches = patches.map((path) => ({
|
||||
name: path,
|
||||
path: join(templateDirectory, 'patches.optional', path),
|
||||
path: join(PATCHES_DIR, path),
|
||||
}))
|
||||
|
||||
return patchMethod<gitPatch.IGitPatch>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue