@vyriy/create 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types.d.ts CHANGED
@@ -7,3 +7,11 @@ export type CreateOptions = {
7
7
  readonly verify: boolean;
8
8
  };
9
9
  export type Create = (options: CreateOptions) => Promise<number>;
10
+ export type CreateBinCommand = {
11
+ readonly type: 'help' | 'version';
12
+ } | ({
13
+ readonly type: 'create';
14
+ } & CreateOptions);
15
+ export type ParseCreateBinArgs = (args: readonly string[]) => CreateBinCommand;
16
+ export type CreateHelpText = (command?: string, alias?: false | string) => string;
17
+ export type RunCreateCli = (args?: readonly string[], command?: string, alias?: false | string) => Promise<void>;
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- import { create } from '../index.js';
3
- const args = process.argv.slice(2);
4
- const directory = args.find((arg) => !arg.startsWith('-')) ?? '';
5
- const dryRun = args.includes('--dry-run');
6
- const overwrite = args.includes('--overwrite');
7
- const skipExisting = args.includes('--skip-existing');
8
- const install = !args.includes('--no-install');
9
- const verify = install && !args.includes('--no-verify');
10
- process.exitCode = await create({
11
- directory,
12
- dryRun,
13
- overwrite,
14
- skipExisting,
15
- install,
16
- verify,
17
- });
package/prompt/scope.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type { PromptQuestion } from './types.js';
2
- export declare const scope: (question: PromptQuestion, preset: string, name: string) => Promise<string | undefined>;
package/prompt/scope.js DELETED
@@ -1,2 +0,0 @@
1
- import { prompt } from './prompt.js';
2
- export const scope = async (question, preset, name) => preset === 'library' ? prompt(question, 'Package scope', `@${name}`) : undefined;