Skip to content

Commit

Permalink
chore: fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed May 16, 2023
1 parent 86ff701 commit 733d44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/functions/runtimes/js/builders/zisi.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createRequire } from 'module'
import path from 'path'

import decache from 'decache'
import readPkgUp from 'read-pkg-up'
import { readPackageUp } from 'read-pkg-up'
import sourceMapSupport from 'source-map-support'

import { NETLIFYDEVERR } from '../../../../../utils/command-helpers.mjs'
Expand Down Expand Up @@ -112,7 +112,7 @@ const netlifyConfigToZisiConfig = ({ config, projectRoot }) =>
export default async function handler({ config, directory, errorExit, func, projectRoot }) {
const functionsConfig = netlifyConfigToZisiConfig({ config, projectRoot })

const packageJson = await readPkgUp(func.mainFile)
const packageJson = await readPackageUp(func.mainFile)
const hasTypeModule = packageJson && packageJson.packageJson.type === 'module'

// We must use esbuild for certain file extensions.
Expand Down

0 comments on commit 733d44b

Please sign in to comment.