Skip to content

Commit

Permalink
fix(ci): move packageRoot to test only
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Oct 21, 2023
1 parent 1718a29 commit adfd12c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion fadroma.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {

Expand Down
3 changes: 0 additions & 3 deletions fadroma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Config["build"]> = {}): Builder {
return new Config({ build: options }).getBuilder()
Expand Down

0 comments on commit adfd12c

Please sign in to comment.