Skip to content

Commit

Permalink
chore: move typescript files into ./src/lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Sep 13, 2024
1 parent 4dbba86 commit 956766a
Show file tree
Hide file tree
Showing 11 changed files with 1,238 additions and 590 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib
/lib/
node_modules
prebuilds
test/postgres_regress/**/*.test.ts
Expand Down
4 changes: 2 additions & 2 deletions scripts/generateTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ async function main() {
.join('\n | ') +
'\n'

fs.writeFileSync('ast.ts', code.trimStart())
fs.writeFileSync('src/lib/ast.ts', code.trimStart())

const nodeClass = `
import type { Node } from "./ast.js"
Expand Down Expand Up @@ -504,7 +504,7 @@ export const NodeTag = {
}
`

fs.writeFileSync('node.ts', nodeClass.trimStart())
fs.writeFileSync('src/lib/node.ts', nodeClass.trimStart())
}

main()
8 changes: 4 additions & 4 deletions scripts/inferFieldMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import fs from 'node:fs'
import path from 'node:path'
import { select, castArrayIfExists, unique } from 'radashi'
import { parseTestFile } from '../test/parseTestFile'
import { parseQuerySync } from '../binding'
import { walk } from '../walk'
import { Node } from '../ast'
import { NodePath, NodeTag } from '../node'
import { parseQuerySync } from '../src/lib/binding'
import { walk } from '../src/lib/walk'
import type { Node } from '../src/lib/ast'
import { NodeTag } from '../src/lib/node'

const testDir = 'libpg_query/test/sql/postgres_regress'
const testFiles = fs.readdirSync(testDir)
Expand Down
Loading

0 comments on commit 956766a

Please sign in to comment.