From adfd12cbee5d25734ed7900022f364793056645f Mon Sep 17 00:00:00 2001 From: Adam Avramov Date: Sat, 21 Oct 2023 16:51:12 +0300 Subject: [PATCH] fix(ci): move packageRoot to test only --- fadroma.test.ts | 7 ++++++- fadroma.ts | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fadroma.test.ts b/fadroma.test.ts index e0b1a970234..b75ab7ac046 100644 --- a/fadroma.test.ts +++ b/fadroma.test.ts @@ -14,8 +14,13 @@ import type { Agent } from '@fadroma/agent' import $, { OpaqueDirectory, withTmpDir } from '@hackbg/file' import * as Dock from '@hackbg/dock' import { fixture } from './fixtures/fixtures' - import { TestSuite } from '@hackbg/ensuite' +import { dirname, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' + +/** Root of installed Fadroma package. */ +//@ts-ignore +export const packageRoot = dirname(resolve(fileURLToPath(import.meta.url))) export async function testCollections () { diff --git a/fadroma.ts b/fadroma.ts index d69077a9bc4..55d54b353a5 100644 --- a/fadroma.ts +++ b/fadroma.ts @@ -49,9 +49,6 @@ import { basename, resolve, dirname } from 'node:path' import { execSync } from 'node:child_process' import { fileURLToPath } from 'node:url' -/** Root of installed Fadroma package. */ -export const packageRoot = dirname(resolve(fileURLToPath(import.meta.url))) - /** @returns Builder configured as per environment and options */ export function getBuilder (options: Partial = {}): Builder { return new Config({ build: options }).getBuilder()