Skip to content

Commit

Permalink
Drop --local flag, only allow setting it from node
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Aug 9, 2023
1 parent 518a5b5 commit bb8c2b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion node-src/lib/getOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function getOptions({ argv, env, flags, log, packageJson }: Conte
autoAcceptChanges: trueIfSet(flags.autoAcceptChanges),
exitZeroOnChanges: trueIfSet(flags.exitZeroOnChanges),
exitOnceUploaded: trueIfSet(flags.exitOnceUploaded),
isLocalBuild: !!flags.local,
isLocalBuild: false,
ignoreLastBuildOnBranch: flags.ignoreLastBuildOnBranch,
// deprecated
preserveMissingSpecs: flags.preserveMissing || !!flags.only,
Expand Down
2 changes: 0 additions & 2 deletions node-src/lib/parseArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function parseArgs(argv: string[]) {
--exit-zero-on-changes [branch] If all snapshots render but there are visual changes, exit with code 0 rather than the usual exit code 1. Only for [branch], if specified. Globs are supported via picomatch.
--externals <filepath> Disable TurboSnap when any of these files have changed since the baseline build. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--ignore-last-build-on-branch <branch> Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased). Globs are supported via picomatch.
--local Create a "local" build, that will not affect other user's baselines.
--only-changed [branch] Enables TurboSnap: Only run stories affected by files changed since the baseline build. Only for [branch], if specified. Globs are supported via picomatch. All other snapshots will be inherited from the prior commit.
--only-story-files <filepath> Only run a single story or a subset of stories by their filename(s). Specify the full path to the story file relative to the root of your Storybook project. Globs are supported via picomatch. This flag can be specified multiple times.
--only-story-names <storypath> Only run a single story or a subset of stories. Story paths typically look like "Path/To/Story". Globs are supported via picomatch. This flag can be specified multiple times.
Expand Down Expand Up @@ -75,7 +74,6 @@ export default function parseArgs(argv: string[]) {
exitOnceUploaded: { type: 'string' },
exitZeroOnChanges: { type: 'string' },
externals: { type: 'string', isMultiple: true },
local: { type: 'boolean' },
ignoreLastBuildOnBranch: { type: 'string' },
onlyChanged: { type: 'string' },
onlyStoryFiles: { type: 'string', isMultiple: true },
Expand Down
1 change: 0 additions & 1 deletion node-src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export interface Flags {
exitZeroOnChanges?: string;
externals?: string[];
ignoreLastBuildOnBranch?: string;
local?: string;
onlyChanged?: string;
onlyStoryFiles?: string[];
onlyStoryNames?: string[];
Expand Down

0 comments on commit bb8c2b9

Please sign in to comment.