From 0d6c3a4ea6737a3f2d8009aced7faba0682874d4 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Thu, 9 Feb 2023 13:40:20 +0100 Subject: [PATCH] test posix --- telefunc/node/server/runTelefunc/assertNamingConvention.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telefunc/node/server/runTelefunc/assertNamingConvention.ts b/telefunc/node/server/runTelefunc/assertNamingConvention.ts index b01689b8..cc3bab62 100644 --- a/telefunc/node/server/runTelefunc/assertNamingConvention.ts +++ b/telefunc/node/server/runTelefunc/assertNamingConvention.ts @@ -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' @@ -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