Skip to content

Commit

Permalink
Remove obsolete 'publish' option
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Jan 24, 2024
1 parent bd5851e commit 6587b2e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Alternatively, you can pass your answers to the `init` command directly as flags

```sh
-o, --openSource Whether the project is open-source [boolean]
--publish Whether to publish to NPM [boolean]
-c, --configDir The directory to write configs to [string] [default: "."]
--overwrite Whether to overwrite existing config files
[boolean] [default: false]
Expand Down
1 change: 0 additions & 1 deletion src/cli/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ import { InitOptions } from '../types/shared';
export const DEFAULT_OPTIONS: InitOptions = {
configDir: '.',
openSource: false,
publish: false,
overwrite: false,
};
4 changes: 0 additions & 4 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ void yargs
desc: 'Whether the project is open-source',
type: 'boolean',
},
publish: {
desc: 'Whether to publish to NPM',
type: 'boolean',
},
configDir: {
alias: 'c',
desc: 'The directory to write configs to',
Expand Down
1 change: 0 additions & 1 deletion src/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import { DEFAULT_OPTIONS } from './defaults';
export interface InitParams {
configDir: string;
openSource?: boolean;
publish?: boolean;
overwrite?: boolean;
$0?: string;
_?: string[];
Expand Down
1 change: 0 additions & 1 deletion src/lib/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export function getOptions(): Required<Options> {
frameworks: pick(config.frameworks, detectFrameworks),
plugins: pick(config.plugins, detectPlugins),
openSource: pick(config.openSource, detectOpenSource),
publish: Boolean(config.publish),
};
}

Expand Down
1 change: 0 additions & 1 deletion src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export interface Options {
frameworks?: Framework[];
plugins?: Plugin[];
openSource?: boolean;
publish?: boolean;
}

export interface InitOptions extends Options {
Expand Down

0 comments on commit 6587b2e

Please sign in to comment.