Skip to content

Commit

Permalink
Fixes code review issue
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn committed Oct 1, 2024
1 parent 2f8b654 commit af82a71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions scripts/tools/publish-nightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const base = path.resolve(__dirname, '..', '..');
const packagePaths = {
core: ['core'],
client: ['client'],
container: ['container'],
oauth2: ['plugins', 'auth', 'src', 'auth-oauth2'],
oidc: ['plugins', 'auth', 'src', 'auth-oidc'],
client_support_angular: ['client-frameworks-support', 'client-support-angular'],
Expand All @@ -46,13 +45,17 @@ const packagePaths = {
const publishPaths = {
core: ['core', 'public'],
client: ['client', 'public'],
container: ['container', 'public'],
oauth2: ['plugins', 'auth', 'public', 'auth-oauth2'],
oidc: ['plugins', 'auth', 'public', 'auth-oidc'],
client_support_angular: ['client-frameworks-support', 'client-support-angular', 'dist', 'client-support-angular'],
testing_utilities: ['client-frameworks-support', 'testing-utilities', 'dist']
};

if (process.env.NIGHTLY === 'true' && !process.env.NIGHTLY_VERSION) {
packagePaths.container = ['container'];
publishPaths.container = ['container', 'public'];
}

function execTrim(cmd) {
return require('child_process')
.execSync(cmd)
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/release-cli/release-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const installPaths = {
testing_utilities: path.resolve(base, 'client-frameworks-support', 'testing-utilities')
};

if (process.env.NIGHTLY === 'true') {
if (process.env.NIGHTLY === 'true' && !process.env.NIGHTLY_VERSION) {
pkgJsonPaths.container = path.resolve(base, 'container', 'public', 'package.json');
installPaths.container = path.resolve(base, 'container');
}
Expand Down

0 comments on commit af82a71

Please sign in to comment.