Skip to content

Commit

Permalink
chore: switch from peg.js to peggy
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jul 13, 2024
1 parent 54cacf4 commit 1460b09
Show file tree
Hide file tree
Showing 9 changed files with 1,396 additions and 1,970 deletions.
2 changes: 1 addition & 1 deletion bin/to-js.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { readFile } from 'fs/promises'
import * as parser from '../lib/parser.cjs'
import parser from '../lib/parser.cjs'
import { transformError } from '../lib/util.js'
import { collectInput } from './collect-input.js'
import { Builder, safeReference } from '../lib/typed.js'
Expand Down
2 changes: 1 addition & 1 deletion bin/to-json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import * as parser from '../lib/parser.cjs'
import parser from '../lib/parser.cjs'
import { transformError } from '../lib/util.js'
import { collectInput } from './collect-input.js'

Expand Down
2 changes: 1 addition & 1 deletion bin/to-schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import * as parser from '../lib/parser.cjs'
import parser from '../lib/parser.cjs'
import { toDSL } from '../lib/to-dsl.js'
import { transformError } from '../lib/util.js'
import { collectInput } from './collect-input.js'
Expand Down
2 changes: 1 addition & 1 deletion bin/validate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as parser from '../lib/parser.cjs'
import parser from '../lib/parser.cjs'
import { transformError } from '../lib/util.js'
import { collectInput } from './collect-input.js'

Expand Down
2 changes: 1 addition & 1 deletion lib/from-dsl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as parser from './parser.cjs'
import parser from './parser.cjs'
import { transformError } from './util.js'

/**
Expand Down
Loading

0 comments on commit 1460b09

Please sign in to comment.