Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 7716e0a

Browse files
author
Kirah Sapong
committed
remove cjs
1 parent e221206 commit 7716e0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/protocol/build/compile-validators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ const moduleCode = replaceRequireWithImport(generatedCode)
6969
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
7070

7171
await mkdirp(path.join(__dirname, '../generated'))
72-
fs.writeFileSync(path.join(__dirname, '../generated/compiled-validators.cjs'), moduleCode)
72+
fs.writeFileSync(path.join(__dirname, '../generated/compiled-validators.js'), moduleCode)

packages/protocol/src/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ErrorObject } from 'ajv'
22
// validator functions are compiled at build time. check ./build/compile-validators.js for more details
3-
import * as compiledValidators from '../generated/compiled-validators.cjs'
3+
import * as compiledValidators from '../generated/compiled-validators.js'
44

55
/**
66
* validates the payload against a json schema identified by name

0 commit comments

Comments
 (0)