From 488575eaee2c1acd16231eec0802c6a218d06e85 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Thu, 13 Mar 2025 00:17:57 +0100 Subject: [PATCH] bump version to 1.10.3 and update CURRENT_DIR reference in patch handling --- package.json | 2 +- src/commands/patches/copy-patches.ts | 4 ++-- src/constants/index.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 09a8f11..72e9462 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/commands/patches/copy-patches.ts b/src/commands/patches/copy-patches.ts index 60af306..969f309 100644 --- a/src/commands/patches/copy-patches.ts +++ b/src/commands/patches/copy-patches.ts @@ -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 ( diff --git a/src/constants/index.ts b/src/constants/index.ts index d1b6850..26891ab 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -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,