Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PROD\CGriffit committed Dec 2, 2024
1 parent fbc94b3 commit ab4498c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imxweb/install-local-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const readline = require('readline').createInterface({ input: process.stdin, out

// --skip-dialog will auto overwrite feeds if imx-modules are present

let isWin = process.platform === 'win32';
const imxDir = 'imx-modules';
const question = (str) => new Promise((resolve) => readline.question(str, resolve));
const steps = {
Expand Down Expand Up @@ -42,16 +43,16 @@ function overwrite() {
.filter((file) => file.endsWith('.tgz'))
.forEach((file) => {
if (file.includes('imx-')) {
const filePath = path.join(__dirname, imxDir, file);
const filePath = isWin ? path.join(imxDir, file) : path.join(__dirname, imxDir, file);
const baseName = path.parse(file).name;
installArg += ['@', path.join(imxDir, baseName), '@', filePath, ' '].join('');
console.log(filePath);
} else if (file.includes('cadence-icon')) {
const filePath = path.join(__dirname, imxDir, file);
const filePath = isWin ? path.join(imxDir, file) : path.join(__dirname, imxDir, file);
installArg += [path.join('@elemental-ui', 'cadence-icon'), '@', filePath, ' '].join('');
console.log(filePath);
} else if (file.includes('core')) {
const filePath = path.join(__dirname, imxDir, file);
const filePath = isWin ? path.join(imxDir, file) : path.join(__dirname, imxDir, file);
installArg += [path.join('@elemental-ui', 'core'), '@', filePath, ' '].join('');
console.log(filePath);
}
Expand All @@ -61,7 +62,6 @@ function overwrite() {
encoding: 'utf8',
shell: true,
});
console.log(child);
if (child.status === 0) {
console.log('Overwrite Finished');
} else {
Expand Down

0 comments on commit ab4498c

Please sign in to comment.