@magda/scripts 2.0.0-alpha.1 → 2.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ const output = `-o ${argv.output}`;
48
48
  const config = `-c ${argv.config}`;
49
49
 
50
50
  childProcess.execSync(
51
- `apidoc ${input} -f ".*\.scala$" -f ".*\.ts$" -f ".*\.js$" ${output} ${config}`,
51
+ `apidoc --private true ${input} -f ".*\.scala$" -f ".*\.ts$" -f ".*\.js$" ${output} ${config}`,
52
52
  { stdio: "pipe" }
53
53
  );
54
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magda/scripts",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.4",
4
4
  "description": "Scripts for building, running, and deploying MAGDA",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -92,16 +92,18 @@ function updateChartVersion(chartFilePath) {
92
92
  for (let i = 0; i < deps.items.length; i++) {
93
93
  const repoStr = chart.getIn(["dependencies", i, "repository"]);
94
94
  const nameStr = chart.getIn(["dependencies", i, "name"]);
95
+
95
96
  if (
96
97
  typeof repoStr === "string" &&
97
98
  repoStr.indexOf("file://") === 0 &&
98
- excludedCharts.length &&
99
- excludedCharts.indexOf(nameStr) === -1
99
+ (!excludedCharts.length ||
100
+ excludedCharts.indexOf(nameStr) === -1)
100
101
  ) {
101
102
  const version = chart.getIn(
102
103
  ["dependencies", i, "version"],
103
104
  true
104
105
  );
106
+
105
107
  if (version) {
106
108
  version.value = pkgVersion;
107
109
  } else {