Skip to content

Commit 8a6fb12

Browse files
nikkubarmac
authored andcommitted
chore: alias to absolute path
1 parent a0782f4 commit 8a6fb12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/createStandaloneValidator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import standaloneCode from 'ajv/dist/standalone';
22
import { writeFileSync as writeFile, mkdirSync as mkdir } from 'fs';
3-
import { join as pathJoin, dirname } from 'path';
3+
import { resolve, dirname } from 'path';
44

55
import validate, { ajv } from '../lib/validate';
66

@@ -9,7 +9,7 @@ import validateZeebe, { ajv as zeebeAjv } from '../lib/validateZeebe';
99

1010
export function createStandaloneValidator() {
1111
const code = standaloneCode(ajv, validate);
12-
const filePath = pathJoin('tmp', 'standaloneValidator.js');
12+
const filePath = resolve('tmp', 'standaloneValidator.js');
1313

1414
try {
1515
mkdir(dirname(filePath));
@@ -25,7 +25,7 @@ export function createStandaloneValidator() {
2525

2626
export function createStandaloneZeebeValidator() {
2727
const code = standaloneCode(zeebeAjv, validateZeebe);
28-
const filePath = pathJoin('tmp', 'standaloneZeebeValidator.js');
28+
const filePath = resolve('tmp', 'standaloneZeebeValidator.js');
2929

3030
try {
3131
mkdir(dirname(filePath));

0 commit comments

Comments
 (0)