Skip to content

Commit

Permalink
fix lhciCliPath resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Feb 4, 2024
1 parent f14b550 commit 1b0e7c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import './utils/support-lh-plugins.js' // add automatic support for LH Plugins env
import { join, resolve } from 'node:path'
import { join } from 'node:path'
import childProcess from 'node:child_process'
import { createRequire } from 'node:module'
import core from '@actions/core'
import { getInput, hasAssertConfig } from './config.js'
import { uploadArtifacts } from './utils/artifacts.js'
import { setAnnotations } from './utils/annotations.js'
import { setOutput } from './utils/output.js'
const lhciCliPath = resolve('./node_modules/@lhci/cli/src/cli.js')

const require = createRequire(import.meta.url)
const lhciCliPath = require.resolve('@lhci/cli/src/cli.js')
console.log(lhciCliPath)

/**
Expand Down

0 comments on commit 1b0e7c3

Please sign in to comment.