Skip to content

Commit

Permalink
REVERT me, logging
Browse files Browse the repository at this point in the history
  • Loading branch information
venetrius committed Nov 7, 2024
1 parent a71efb4 commit 4efb0f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webapps/frontend/scripts/xlts.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ const registryConfigured = exec(`npm get @${scope}:registry`) !== 'undefined\n';

const {XLTS_REGISTRY, XLTS_AUTH_TOKEN} = process.env;

console.log({
configuredRegistry: !!XLTS_REGISTRY,
configuredToken: !!XLTS_AUTH_TOKEN
});

if (!registryConfigured && XLTS_REGISTRY && XLTS_AUTH_TOKEN) {
console.log('configuring XLTS registry');
exec(
`npm set @${scope}:registry https://${XLTS_REGISTRY}/`,
'XLTS registry configured.'
Expand All @@ -69,6 +75,7 @@ if (!registryConfigured && XLTS_REGISTRY && XLTS_AUTH_TOKEN) {
`npm set //${XLTS_REGISTRY}/:_authToken ${XLTS_AUTH_TOKEN}`,
'XLTS auth token configured.'
);
console.log('configured XLTS registry');
}

if (
Expand All @@ -84,8 +91,9 @@ if (
)
)
.join(' ');

console.log('XTLS installation started');
exec(`npm i --save-exact ${npmPackages}`);
console.log('XTLS installation finished successfully');
} else {
console.log('XLTS installation skipped.'); // eslint-disable-line
}

0 comments on commit 4efb0f7

Please sign in to comment.