bump version to 1.10.3 and update CURRENT_DIR reference in patch handling
Some checks failed
CI / general (push) Has been cancelled

This commit is contained in:
mr. M 2025-03-13 00:17:57 +01:00
parent dc45598a8a
commit 488575eaee
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@zen-browser/surfer",
"version": "1.10.0",
"version": "1.10.3",
"description": "Simplifying building firefox forks!",
"main": "index.js",
"bin": {

View file

@ -10,7 +10,7 @@ import glob from 'tiny-glob'
import { appendToFileSync, mkdirp } from '../../utils'
import { config } from '../..'
import { ENGINE_DIR, SRC_DIR, TESTS_DIR } from '../../constants'
import { CURRENT_DIR, ENGINE_DIR, SRC_DIR, TESTS_DIR } from '../../constants'
import { IMelonPatch } from './command'
// =============================================================================
@ -26,7 +26,7 @@ export const copyManual = async (
if (patchName === 'tests') {
dest = resolve(dest, 'browser', 'base', 'zen-components')
}
const placeToCheck = patchName === 'tests' ? process.cwd() : SRC_DIR
const placeToCheck = patchName === 'tests' ? CURRENT_DIR : SRC_DIR
// If the file exists and is not a symlink, we want to replace it with a
// symlink to our file, so remove it
if (

View file

@ -20,6 +20,7 @@ export const PATCH_ARGS = [
export const ENGINE_DIR = resolve(process.cwd(), 'engine')
export const SRC_DIR = resolve(process.cwd(), 'src')
export const TESTS_DIR = resolve(process.cwd(), 'tests')
export const CURRENT_DIR = process.cwd()
// eslint-disable-next-line unicorn/prefer-module
export const PATCHES_DIR = resolve(
__dirname,