Skip to content

Commit

Permalink
test posix
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 9, 2023
1 parent c886472 commit 0d6c3a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion telefunc/node/server/runTelefunc/assertNamingConvention.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { assertNamingConvention }

import { assert, assertWarning, isProduction } from '../../utils'
import { assert, assertWarning, isProduction, assertPosixPath } from '../../utils'
import type { Telefunction } from '../types'
import type * as fsType from 'fs'
import type * as pathType from 'path'
Expand Down Expand Up @@ -37,6 +37,8 @@ function assertCollocation(telefuncFilePath: string, appRootDir: string | null,
appRootDir = appRootDir || ((exportValue as any)._appRootDir as undefined | string) || null
if (!appRootDir) return

assertPosixPath(telefuncFilePath)

let fs: typeof fsType
let path: typeof pathType
const req: NodeRequire = require
Expand Down

0 comments on commit 0d6c3a4

Please sign in to comment.