Skip to content

Commit dfff36a

Browse files
committed
Rename --force option to --restart on the validator
1 parent 7743ca4 commit dfff36a

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.changeset/thirty-cats-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-solana-program": patch
3+
---
4+
5+
Rename --force option to --restart on the validator

template/base/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"scripts": {
44
"programs:build": "zx ./scripts/program/build.mjs",
55
"programs:test": "zx ./scripts/program/test.mjs",
6-
"programs:debug": "zx ./scripts/program/test.mjs",
76
"programs:clean": "zx ./scripts/program/clean.mjs",
87
"programs:format": "zx ./scripts/program/format.mjs",
98
"programs:lint": "zx ./scripts/program/lint.mjs",

template/clients/base/scripts/start-validator.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import {
1010
} from './utils.mjs';
1111

1212
// Options and arguments.
13-
const force = argv['force'];
13+
const restart = argv['restart'];
1414

15-
// Keep the validator running when not using the force flag.
15+
// Keep the validator running when not using the restart flag.
1616
const isValidatorRunning = (await $`lsof -t -i:8899`.quiet().exitCode) === 0;
17-
if (!force && isValidatorRunning) {
17+
if (!restart && isValidatorRunning) {
1818
echo(chalk.yellow('Local validator is already running.'));
1919
process.exit();
2020
}

template/clients/js/scripts/client/test-js.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'zx/globals';
33
import { workingDirectory } from '../utils.mjs';
44

55
// Start the local validator if it's not already running.
6-
await $`pnpm validator --force`;
6+
await $`pnpm validator --restart`;
77

88
// Build the client and run the tests.
99
cd(path.join(workingDirectory, 'clients', 'js'));

template/clients/rust/scripts/client/test-rust.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'zx/globals';
33
import { workingDirectory } from '../utils.mjs';
44

55
// Start the local validator if it's not already running.
6-
await $`pnpm validator --force`;
6+
await $`pnpm validator --restart`;
77

88
// Run the tests.
99
cd(path.join(workingDirectory, 'clients', 'rust'));

0 commit comments

Comments
 (0)