You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/README.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,21 @@ The following placeholders are used in template files:
33
33
34
34
## Version-Specific Configurations
35
35
36
-
The `scripts/copy-templates.js` script contains version-specific configurations:
36
+
The `scripts/copy-templates.js` script automatically reads version-specific configurations from each version's `package.json` file. It looks for the `x-publish` section:
37
+
38
+
```json
39
+
"x-publish": {
40
+
"publishName": "libpg-query",
41
+
"pgVersion": "15",
42
+
"distTag": "pg15",
43
+
"libpgQueryTag": "15-4.2.4"
44
+
}
45
+
```
37
46
38
-
-**Version 13**: Uses tag `13-2.2.0` and requires emscripten patch
39
-
-**Version 14**: Uses tag `14-3.0.0`
40
-
-**Version 15**: Uses tag `15-4.2.4`
41
-
-**Version 16**: Uses tag `16-5.2.0`
42
-
-**Version 17**: Uses tag `17-6.1.0`
47
+
The script uses:
48
+
-`pgVersion` to identify the PostgreSQL version
49
+
-`libpgQueryTag` for the {{VERSION_TAG}} placeholder replacement
50
+
- Version 13 automatically gets the emscripten patch applied
0 commit comments