Skip to content

Commit

Permalink
chore: use affected instead of run-many to publish packages to lo…
Browse files Browse the repository at this point in the history
…cal regisry
  • Loading branch information
tinesoft committed Feb 18, 2024
1 parent 32b8fbf commit 841227d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/scripts/run-all-e2e-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import stopRegistry from './stop-local-registry';
const nx = require.resolve('nx');
execFileSync(
nx,
['run-many', '-t', 'e2e', '--runInBand'],
['affected', '-t', 'e2e', '--runInBand'],
{
env: {
...process.env,
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/start-local-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { execFileSync } from 'child_process';

export default async () => {
if(process.env.SKIP_LOCAL_REGISTRY_GLOBAL_SETUP && process.env.SKIP_LOCAL_REGISTRY_GLOBAL_SETUP !== 'false') {
console.log("Envionment variable 'SKIP_LOCAL_REGISTRY_GLOBAL_SETUP' is set. Skipping global setup of Verdaccio's Local Registrty...");
console.log("Environment variable 'SKIP_LOCAL_REGISTRY_GLOBAL_SETUP' is set. Skipping global setup of Verdaccio's Local Registry...");
return;
}

Expand All @@ -23,7 +23,7 @@ export default async () => {
const nx = require.resolve('nx');
execFileSync(
nx,
['run-many', '--targets', 'publish', '--ver', '0.0.0-e2e', '--tag', 'latest', '--output-style', 'stream'],
['affected', '--target', 'publish', '--ver', '0.0.0-e2e', '--tag', 'latest', '--output-style', 'stream'],
{ env: process.env, stdio: 'inherit' }
);
};
2 changes: 1 addition & 1 deletion tools/scripts/stop-local-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

export default () => {
if(process.env.SKIP_LOCAL_REGISTRY_GLOBAL_SETUP && process.env.SKIP_LOCAL_REGISTRY_GLOBAL_SETUP !== 'false') {
console.log("\nEnvionment variable 'SKIP_LOCAL_REGISTRY_GLOBAL_SETUP' is set. Skipping global teardown of Verdaccio's Local Registrty...");
console.log("\nEnvironment variable 'SKIP_LOCAL_REGISTRY_GLOBAL_SETUP' is set. Skipping global teardown of Verdaccio's Local Registry...");
return;
}

Expand Down

0 comments on commit 841227d

Please sign in to comment.