Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
PROD\CGriffit committed Dec 3, 2024
1 parent 2a2850f commit 9e04ccd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Currently only can run ubuntu on github agents, windows isn't correctly installing packages
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
node-version: [20.x]

steps:
Expand Down
7 changes: 4 additions & 3 deletions imxweb/install-local-packages.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const child_process = require('child_process');
const fs = require('fs');
const path = require('upath');
const path = require('path');

const readline = require('readline').createInterface({ input: process.stdin, output: process.stdout });

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

const isWin = process.platform === 'win32';
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 @@ -47,7 +47,7 @@ function overwrite() {
filePath = isWin ? path.join(imxDir, file) : path.join(__dirname, imxDir, file);
if (file.includes('imx-')) {
const baseName = path.parse(file).name;
installArg += ['@', path.join(imxDir, baseName), '@', filePath, ' '].join('');
installArg += ['@', imxDir, '/', baseName, '@', filePath, ' '].join('');
} else if (file.includes('cadence-icon')) {
installArg += ['@elemental-ui/cadence-icon@', filePath, ' '].join('');
} else if (file.includes('core')) {
Expand All @@ -56,6 +56,7 @@ function overwrite() {
console.log(filePath);
});

console.log(`Running command npm i ${installArg} --save=false`);
const child = child_process.spawnSync('npm', ['i', installArg, '--save=false'], {
encoding: 'utf8',
shell: true,
Expand Down

0 comments on commit 9e04ccd

Please sign in to comment.