Skip to content

Commit e17e74b

Browse files
fix: restore root package.json with wasm:build script for CI
- Revert root package.json to original libpg-query structure - Rename libpg-query-full to libpg-query-17 to avoid conflicts - Add workspace coordination scripts to root package.json - Maintain Docker-based build pattern across all packages - Fix CI Build WASM job that was failing due to missing wasm:build script Co-Authored-By: Dan Lynch <[email protected]>
1 parent 41bb6ad commit e17e74b

File tree

2 files changed

+52
-17
lines changed

2 files changed

+52
-17
lines changed

libpg-query-full/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "libpg-query-full",
2+
"name": "libpg-query-17",
33
"version": "17.2.0",
44
"description": "The real PostgreSQL query parser (PostgreSQL 17 - full functionality)",
55
"homepage": "https://github.com/launchql/libpg-query-node",

package.json

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,66 @@
11
{
2-
"name": "libpg-query-node-workspace",
3-
"version": "1.0.0",
4-
"description": "Multi-version PostgreSQL query parser workspace",
5-
"private": true,
2+
"name": "libpg-query",
3+
"version": "17.2.0",
4+
"description": "The real PostgreSQL query parser",
5+
"homepage": "https://github.com/launchql/libpg-query-node",
6+
"main": "./wasm/index.cjs",
7+
"typings": "./wasm/index.d.ts",
8+
"publishConfig": {
9+
"access": "public"
10+
},
11+
"files": [
12+
"wasm/*",
13+
"proto.js"
14+
],
15+
"exports": {
16+
".": {
17+
"types": "./wasm/index.d.ts",
18+
"import": "./wasm/index.js",
19+
"require": "./wasm/index.cjs"
20+
}
21+
},
622
"scripts": {
23+
"clean": "yarn wasm:clean && rimraf cjs esm",
24+
"build:js": "node scripts/build.js",
25+
"build": "yarn clean; yarn wasm:build; yarn build:js",
26+
"wasm:make": "docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk emmake make",
27+
"wasm:build": "yarn wasm:make build",
28+
"wasm:rebuild": "yarn wasm:make rebuild",
29+
"wasm:clean": "yarn wasm:make clean",
30+
"wasm:clean-cache": "yarn wasm:make clean-cache",
31+
"test": "mocha test/*.test.js --timeout 5000",
32+
"yamlize": "node ./scripts/yamlize.js",
33+
"protogen": "node ./scripts/protogen.js",
734
"build-all": "make build-all",
8-
"clean-all": "make clean-all",
35+
"clean-all": "make clean-all",
936
"test-all": "make test-all",
1037
"install-deps": "make install-deps"
1138
},
39+
"author": "Dan Lynch <[email protected]> (http://github.com/pyramation)",
40+
"license": "LICENSE IN LICENSE",
41+
"repository": {
42+
"type": "git",
43+
"url": "git://github.com/launchql/libpg-query-node.git"
44+
},
1245
"devDependencies": {
13-
"rimraf": "5.0.0"
46+
"@launchql/proto-cli": "1.25.0",
47+
"@yamlize/cli": "^0.8.0",
48+
"chai": "^3.5.0",
49+
"mocha": "^11.7.0",
50+
"rimraf": "5.0.0",
51+
"typescript": "^5.3.3"
52+
},
53+
"dependencies": {
54+
"@pgsql/types": "^17.0.0",
55+
"@launchql/protobufjs": "7.2.6"
1456
},
1557
"keywords": [
1658
"sql",
17-
"postgres",
59+
"postgres",
1860
"postgresql",
1961
"pg",
2062
"query",
2163
"plpgsql",
22-
"database",
23-
"multi-version"
24-
],
25-
"author": "Dan Lynch <[email protected]> (http://github.com/pyramation)",
26-
"license": "LICENSE IN LICENSE",
27-
"repository": {
28-
"type": "git",
29-
"url": "git://github.com/launchql/libpg-query-node.git"
30-
}
64+
"database"
65+
]
3166
}

0 commit comments

Comments
 (0)