Skip to content

Commit

Permalink
fix: ignore $schema when create schema
Browse files Browse the repository at this point in the history
Former-commit-id: 881e190
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent f6f09fa commit ee2b7e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/build-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const files = fs.readdirSync(base).filter(f => f.endsWith('.json')).map(f => pat
function discover(dest, src) {
const keys = Object.keys(src);
for (const k of keys) {
// eslint-disable-next-line no-continue
if (k === '$schema') continue;
const v = src[k];
if (typeof v === 'object') {
if (!dest[k]) {
Expand Down
2 changes: 1 addition & 1 deletion static/locale.schema.json.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f42776cc3552f8b2b10354f9569df12b8f9eee31
05b78c7743ad818f93b1814bb7c2e29a5155fc2a

0 comments on commit ee2b7e7

Please sign in to comment.