@offckb/cli 0.1.0-rc8 → 0.1.0

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.
@@ -104,7 +104,7 @@ function unZipFile(filePath, extractDir, useTar = false) {
104
104
  return __awaiter(this, void 0, void 0, function* () {
105
105
  // Ensure the destination directory exists, if not create it
106
106
  if (!fs.existsSync(extractDir)) {
107
- fs.mkdirSync(extractDir);
107
+ fs.mkdirSync(extractDir, { recursive: true });
108
108
  }
109
109
  if (useTar === true) {
110
110
  return yield decompressTarGzAsync(filePath, extractDir);
package/dist/util.js CHANGED
@@ -58,7 +58,7 @@ function isFolderExists(folderPath) {
58
58
  exports.isFolderExists = isFolderExists;
59
59
  function copyFolderSync(source, destination) {
60
60
  if (!fs.existsSync(destination)) {
61
- fs.mkdirSync(destination);
61
+ fs.mkdirSync(destination, { recursive: true });
62
62
  }
63
63
  const files = fs.readdirSync(source);
64
64
  for (const file of files) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@offckb/cli",
3
- "version": "0.1.0-rc8",
3
+ "version": "0.1.0",
4
4
  "description": "ckb development network for your first try",
5
5
  "author": "Retric Su <retric@cryptape.com>",
6
6
  "license": "MIT",