piral-cli 1.3.3 → 1.4.0-beta.6228

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cli",
3
- "version": "1.3.3",
3
+ "version": "1.4.0-beta.6228",
4
4
  "description": "The standard CLI for creating and building a Piral instance or a Pilet.",
5
5
  "keywords": [
6
6
  "portal",
@@ -58,7 +58,7 @@
58
58
  "@types/rimraf": "^2.0.2",
59
59
  "@types/tar": "^4.0.0",
60
60
  "@types/yargs": "^15.0.4",
61
- "axios": "^0.21.1",
61
+ "axios": "^1.6.0",
62
62
  "chalk": "^4.0.0",
63
63
  "enhanced-resolve": "^5.10.0",
64
64
  "form-data": "^3.0.0",
@@ -81,5 +81,5 @@
81
81
  "typescript": "^5.0.0",
82
82
  "yargs": "^15.0.0"
83
83
  },
84
- "gitHead": "b3347dfcd467e3e5cdc44cd5d0ad7dfe84ac6113"
84
+ "gitHead": "cbcd72a90e216dfa92f4a36f75208a1a11d840a5"
85
85
  }
@@ -85,6 +85,13 @@ export async function createPiletPackage(baseDir: string, source: string, target
85
85
  log('generalDebug_0003', `Reading out unique files from "${content}" ...`);
86
86
  const uniqueFiles = await getUniqueFiles(files);
87
87
 
88
+ // Edge case: If the files to be packaged contains the destination .tgz file, e.g., as a leftover
89
+ // from a previous build/pack, exclude that file, because it will be overwritten/replaced in the
90
+ // upcoming steps.
91
+ if (uniqueFiles.includes(file)) {
92
+ uniqueFiles.splice(uniqueFiles.indexOf(file), 1);
93
+ }
94
+
88
95
  log('generalDebug_0003', `Creating directory if not exist for "${file}" ...`);
89
96
  await createDirectory(dirname(file));
90
97