Skip to content

Commit fabb4f2

Browse files
committed
refactor(utils): move createAjv() to scripts/lib
1 parent fae5c18 commit fabb4f2

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

lint/linter/test-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import betterAjvErrors from 'better-ajv-errors';
55

6-
import { createAjv } from '../../utils/index.js';
6+
import { createAjv } from '../../scripts/lib/ajv.js';
77
import { Linter, Logger, LinterData } from '../utils.js';
88

99
import compatDataSchema from './../../schemas/compat-data.schema.json' with { type: 'json' };

scripts/build/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import { BrowserName, CompatData, VersionValue } from '../../types/types.js';
1616
import compileTS from '../generate-types.js';
1717
import compatDataSchema from '../../schemas/compat-data.schema.json' with { type: 'json' };
1818
import browserDataSchema from '../../schemas/browsers.schema.json' with { type: 'json' };
19-
import { createAjv, walk } from '../../utils/index.js';
19+
import { createAjv } from '../lib/ajv.js';
20+
import { walk } from '../../utils/index.js';
2021
import { WalkOutput } from '../../utils/walk.js';
2122
import bcd from '../../index.js';
2223

File renamed without changes.

utils/index.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
/* This file is a part of @mdn/browser-compat-data
22
* See LICENSE file for more information. */
33

4-
import { createAjv } from './ajv.js';
54
import iterSupport from './iter-support.js';
65
import query from './query.js';
76
import spawn from './spawn.js';
87
import spawnAsync from './spawn-async.js';
98
import walk from './walk.js';
109
import normalizePath from './normalize-path.js';
1110

12-
export {
13-
createAjv,
14-
iterSupport,
15-
normalizePath,
16-
query,
17-
spawn,
18-
spawnAsync,
19-
walk,
20-
};
11+
export { iterSupport, normalizePath, query, spawn, spawnAsync, walk };

0 commit comments

Comments
 (0)