Skip to content

Commit

Permalink
Rename Vue to Ts Client
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Sep 24, 2024
1 parent 1789600 commit 16b1b20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wormchain/ts-sdk/src/buildHelper.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { execSync } = require("child_process");
const fs = require("fs");
const path = require("path");

const VUE_DIRECTORY = "../ts-client/";
const TS_CLIENT_DIRECTORY = "../ts-client/";
const MODULE_DIRECTORY = "../ts-sdk/src/modules/";

function execWrapper(command) {
Expand All @@ -25,15 +25,15 @@ function execWrapper(command) {
});
}

const vueFiles = fs.readdirSync(VUE_DIRECTORY, { withFileTypes: true });
const clientFiles = fs.readdirSync(TS_CLIENT_DIRECTORY, { withFileTypes: true });

// Move all module directories from Ignite's ts-client to the ts-sdk
vueFiles
clientFiles
.filter(directory => directory.isDirectory())
.forEach((directory) => {
execWrapper(`mkdir -p ${MODULE_DIRECTORY + directory.name}/`);
execWrapper(
`cp -R ${VUE_DIRECTORY + directory.name}/* ${MODULE_DIRECTORY + directory.name
`cp -R ${TS_CLIENT_DIRECTORY + directory.name}/* ${MODULE_DIRECTORY + directory.name
}/`
);
});
Expand Down

0 comments on commit 16b1b20

Please sign in to comment.