Skip to content

Commit e3e21ce

Browse files
committed
Use prereleases as well
1 parent ee8e092 commit e3e21ce

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

compile.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ qx.Class.define("qxl.packagebrowser.compile.LibraryApi", {
77

88
statics: {
99
CONTAINER_PATH: "packages",
10-
TARGET_TYPE: "build"
10+
TARGET_TYPE: "build",
11+
QX_LIST_ADDITIONAL_PARAMS: "--all --prereleases"
1112
},
1213

1314
members: {
@@ -46,7 +47,11 @@ qx.Class.define("qxl.packagebrowser.compile.LibraryApi", {
4647
const srcDir = path.relative(process.cwd(), path.join(container_path,"compiled","source"));
4748
const tgtDir = path.relative(process.cwd(), path.join(outputDir, app, "demos"));
4849
this.__addCmd(`qx pkg update`, "Updating package data...");
49-
this.__addCmd(`qx pkg list --json --all > ${datafile_path}`, "Generating local metadata file...");
50+
const additionalParams = this.self(arguments).QX_LIST_ADDITIONAL_PARAMS;
51+
this.__addCmd(
52+
`qx pkg list --json ${additionalParams} > ${datafile_path}`,
53+
"Generating local metadata file..."
54+
);
5055
if (fs.existsSync(tgtDir)) {
5156
this.__executeCommands();
5257
return;
@@ -115,7 +120,7 @@ qx.Class.define("qxl.packagebrowser.compile.LibraryApi", {
115120
console.error(error.message);
116121
packages_data[index].data = {
117122
problems: true,
118-
compilation_log: error.message
123+
compilation_log: error.message + "\n\n" + error.stderr.toString() + "\n\n" + error.stdout.toString()
119124
};
120125
}
121126
);

0 commit comments

Comments
 (0)