Skip to content

Commit de56423

Browse files
authored
Merge pull request #27 from launchql/feat/oses
OSes
2 parents 07479bc + 18ed90e commit de56423

File tree

19 files changed

+39
-33
lines changed

19 files changed

+39
-33
lines changed

.github/workflows/run-tests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
jobs:
77
parser-tests:
88
runs-on: ubuntu-latest
9-
container: node:20.12.0-alpine
10-
119
steps:
1210
- name: checkout
1311
uses: actions/checkout@v3

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ Our latest is built with `17-latest` branch from libpg_query
150150
| PostgreSQL Major Version | libpg_query | Status | npm tag |
151151
|--------------------------|-------------|---------------------|---------|
152152
| 17 | 17-latest | Active Development | `latest` |
153+
| 16 | (n/a) | Not supported |
154+
| 15 | (n/a) | Not supported |
155+
| 14 | (n/a) | Not supported |
153156
| 13 | 13-latest | Only Critical Fixes | `13.16.0` |
154157
| 12 | (n/a) | Not supported |
155158
| 11 | (n/a) | Not supported |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"prettier": "^3.0.2",
4040
"rimraf": "4.4.1",
4141
"strip-ansi": "^6",
42-
"symlink-workspace": "^1.9.0",
42+
"symlink-workspace": "^1.10.0",
4343
"ts-jest": "^29.1.1",
4444
"ts-node": "^10.9.2",
4545
"typescript": "^5.1.6"

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
},
2525
"scripts": {
2626
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
27-
"clean": "rimraf dist/**",
27+
"clean": "rimraf dist",
2828
"prepare": "npm run build",
29-
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
30-
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
29+
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
30+
"build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
3131
"dev": "ts-node src/index",
3232
"lint": "eslint . --fix",
3333
"test": "jest",

packages/cli/src/commands/protogen/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default async (argv: CommandOptions): Promise<CommandOptions> => {
4444
await replaceTextInProtoJS(argv.outFile, argv.originalPackageName, argv.newPackageName);
4545
console.log('All operations completed successfully.');
4646
} catch (error) {
47+
// @ts-ignore
4748
console.error('An error occurred:', error.message);
4849
}
4950

packages/deparser/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
},
2222
"scripts": {
2323
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
24-
"clean": "rimraf dist/**",
24+
"clean": "rimraf dist",
2525
"prepare": "npm run build",
26-
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
27-
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
26+
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
27+
"build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
2828
"kitchen-sink": "npm run fixtures && npm run fixtures:kitchen-sink",
2929
"fixtures:kitchen-sink": "ts-node scripts/make-kitchen-sink.ts",
3030
"fixtures:ast": "ts-node scripts/make-fixtures-ast.ts",

packages/deparser/scripts/make-fixtures-ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ensureDir(dir: string) {
1717

1818
ensureDir(OUT_DIR);
1919

20-
const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`);
20+
const fixtures = globSync(path.join(FIXTURE_DIR, '**/*.sql'));
2121

2222
async function main() {
2323
for (const fixturePath of fixtures) {

packages/deparser/scripts/make-fixtures-sql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function ensureDir(dir: string) {
1616

1717
ensureDir(OUT_DIR);
1818

19-
const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`);
19+
const fixtures = globSync(path.join(FIXTURE_DIR, '**/*.sql'));
2020

2121
async function main() {
2222
for (const fixturePath of fixtures) {

packages/deparser/scripts/make-fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function ensureDir(dir: string) {
1616

1717
ensureDir(OUT_DIR);
1818

19-
const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`);
19+
const fixtures = globSync(path.join(FIXTURE_DIR, '**/*.sql'));
2020

2121
async function main() {
2222
// Collect deparsed SQL in a single JSON

packages/deparser/scripts/make-kitchen-sink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ it('${name}', async () => {
2727
`
2828
};
2929

30-
const fixtures = globSync(`${FIXTURE_DIR}/**/*.sql`);
30+
const fixtures = globSync(path.join(FIXTURE_DIR, '**/*.sql'));
3131

3232
async function main() {
3333
for (const fixturePath of fixtures) {

0 commit comments

Comments
 (0)