create-typescript-app 1.46.0 → 1.47.0

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.
@@ -8,4 +8,4 @@ interface PromptedMode {
8
8
  }
9
9
  declare function promptForMode(auto: boolean, input: boolean | string | undefined): Promise<PromptedMode>;
10
10
 
11
- export { PromptedMode, promptForMode };
11
+ export { type PromptedMode, promptForMode };
@@ -5,4 +5,4 @@ interface OutroGroup {
5
5
  }
6
6
  declare function outro(groups: OutroGroup[]): void;
7
7
 
8
- export { OutroGroup, outro };
8
+ export { type OutroGroup, outro };
@@ -3,4 +3,4 @@ type LabeledSpinnerTask<Return> = [string, SpinnerTask<Return>];
3
3
  declare function withSpinner<Return>(label: string, task: SpinnerTask<Return>): Promise<Return>;
4
4
  declare function withSpinners(label: string, tasks: LabeledSpinnerTask<void>[]): Promise<void>;
5
5
 
6
- export { LabeledSpinnerTask, SpinnerTask, withSpinner, withSpinners };
6
+ export { type LabeledSpinnerTask, type SpinnerTask, withSpinner, withSpinners };
@@ -5,4 +5,4 @@ declare const StatusCodes: {
5
5
  };
6
6
  type StatusCode = (typeof StatusCodes)[keyof typeof StatusCodes];
7
7
 
8
- export { StatusCode, StatusCodes };
8
+ export { type StatusCode, StatusCodes };
@@ -6,4 +6,4 @@ interface DoesRepositoryExistOptions {
6
6
  }
7
7
  declare function doesRepositoryExist(octokit: Octokit, options: DoesRepositoryExistOptions): Promise<boolean>;
8
8
 
9
- export { DoesRepositoryExistOptions, doesRepositoryExist };
9
+ export { type DoesRepositoryExistOptions, doesRepositoryExist };
@@ -6,4 +6,4 @@ type ExclusionKey = keyof Options & `exclude${string}`;
6
6
  declare function getExclusions(options: Partial<Options>, base?: OptionsBase): Partial<Options>;
7
7
  declare function augmentOptionsWithExcludes(options: Options): Promise<Options | undefined>;
8
8
 
9
- export { ExclusionKey, augmentOptionsWithExcludes, getExclusions };
9
+ export { type ExclusionKey, augmentOptionsWithExcludes, getExclusions };
@@ -7,4 +7,4 @@ interface CreateRepositoryWithApiOptions {
7
7
  }
8
8
  declare function createRepositoryWithApi(octokit: Octokit, options: CreateRepositoryWithApiOptions): Promise<void>;
9
9
 
10
- export { CreateRepositoryWithApiOptions, createRepositoryWithApi };
10
+ export { type CreateRepositoryWithApiOptions, createRepositoryWithApi };
@@ -5,4 +5,4 @@ interface EmailValues {
5
5
  }
6
6
  declare function detectEmailRedundancy(values: EmailValues): "--email should not be specified if both --email-github and --email-npm are specified." | "If --email-github is specified, either --email or --email-npm should be." | "If --email-npm is specified, either --email or --email-github should be." | undefined;
7
7
 
8
- export { EmailValues, detectEmailRedundancy };
8
+ export { type EmailValues, detectEmailRedundancy };
@@ -11,4 +11,4 @@ interface RepositoryExistsResult {
11
11
  }
12
12
  declare function ensureRepositoryExists(github: GitHub | undefined, options: EnsureRepositoryExistsOptions): Promise<Partial<RepositoryExistsResult>>;
13
13
 
14
- export { EnsureRepositoryExistsOptions, RepositoryExistsResult, ensureRepositoryExists };
14
+ export { type EnsureRepositoryExistsOptions, type RepositoryExistsResult, ensureRepositoryExists };
@@ -6,4 +6,4 @@ interface GitHub {
6
6
  }
7
7
  declare function getGitHub(): Promise<GitHub | undefined>;
8
8
 
9
- export { GitHub, getGitHub };
9
+ export { type GitHub, getGitHub };
@@ -5,4 +5,4 @@ import '../codes.js';
5
5
  type InferredOptions = Pick<Options, "description" | "email" | "guide" | "logo" | "owner" | "repository" | "title">;
6
6
  declare function logInferredOptions(augmentedOptions: InferredOptions): void;
7
7
 
8
- export { InferredOptions, logInferredOptions };
8
+ export { type InferredOptions, logInferredOptions };
@@ -19,4 +19,4 @@ interface OptionsParseSuccess extends GitHubAndOptions {
19
19
  type OptionsParseResult = OptionsParseCancelled | OptionsParseSuccess;
20
20
  declare function readOptions(args: string[], mode: Mode, promptedOptions?: PromptedOptions): Promise<OptionsParseResult>;
21
21
 
22
- export { GitHubAndOptions, OptionsParseCancelled, OptionsParseResult, OptionsParseSuccess, readOptions };
22
+ export { type GitHubAndOptions, type OptionsParseCancelled, type OptionsParseResult, type OptionsParseSuccess, readOptions };
@@ -4,4 +4,4 @@ interface RunOrRestoreOptions {
4
4
  }
5
5
  declare function runOrRestore({ run, skipRestore }: RunOrRestoreOptions): Promise<0 | 2>;
6
6
 
7
- export { RunOrRestoreOptions, runOrRestore };
7
+ export { type RunOrRestoreOptions, runOrRestore };
@@ -105,4 +105,4 @@ interface ModeResult {
105
105
  type ModeRunner = (args: string[], promptedOptions?: PromptedOptions) => Promise<ModeResult>;
106
106
  type Mode = "create" | "initialize" | "migrate";
107
107
 
108
- export { AllContributorContributor, AllContributorsData, Mode, ModeResult, ModeRunner, Options, OptionsAccess, OptionsBase, OptionsEmail, OptionsGuide, OptionsLogo, PartialPackageData, PromptedOptions };
108
+ export type { AllContributorContributor, AllContributorsData, Mode, ModeResult, ModeRunner, Options, OptionsAccess, OptionsBase, OptionsEmail, OptionsGuide, OptionsLogo, PartialPackageData, PromptedOptions };
@@ -3,12 +3,14 @@ const globPaths = [
3
3
  ...extensions(".babelrc", "cjs", "cts", "js", "json", "mjs"),
4
4
  ...extensions(".eslintrc", "js", "json", "yml"),
5
5
  ...extensions(".prettierrc", "json", "json5", "yaml", "yml"),
6
+ ...extensions("prettier.config", "js", "mjs", "cjs"),
6
7
  ...extensions("babel.config", "cjs", "cts", "js", "json", "mjs"),
7
8
  ...extensions("jest.config", "cjs", "js", "json", "mjs", "ts"),
8
9
  "./src/**/*.js",
9
10
  ".circleci/config.yml",
10
11
  ".babelrc",
11
12
  ".npmignore",
13
+ ".eslintrc",
12
14
  "CODE_OF_CONDUCT.md",
13
15
  "CONTRIBUTING.md",
14
16
  "codecov.yml",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/steps/clearUnnecessaryFiles.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nconst globPaths = [\n\t...extensions(\".babelrc\", \"cjs\", \"cts\", \"js\", \"json\", \"mjs\"),\n\t...extensions(\".eslintrc\", \"js\", \"json\", \"yml\"),\n\t...extensions(\".prettierrc\", \"json\", \"json5\", \"yaml\", \"yml\"),\n\t...extensions(\"babel.config\", \"cjs\", \"cts\", \"js\", \"json\", \"mjs\"),\n\t...extensions(\"jest.config\", \"cjs\", \"js\", \"json\", \"mjs\", \"ts\"),\n\t\"./src/**/*.js\",\n\t\".circleci/config.yml\",\n\t\".babelrc\",\n\t\".npmignore\",\n\t\"CODE_OF_CONDUCT.md\",\n\t\"CONTRIBUTING.md\",\n\t\"codecov.yml\",\n\t\"DEVELOPMENT.md\",\n\t\"dist\",\n\t\"lib\",\n\t\"package-lock.json\",\n\t\"travis.yml\",\n\t\"yarn.lock\",\n];\n\nfunction extensions(base: string, ...extensions: string[]) {\n\treturn extensions.map((extension) => [base, extension].join(\".\"));\n}\n\nexport async function clearUnnecessaryFiles() {\n\tfor (const globPath of globPaths) {\n\t\tawait fs.rm(globPath, { force: true, recursive: true });\n\t}\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,MAAM,YAAY;AAAA,EACjB,GAAG,WAAW,YAAY,OAAO,OAAO,MAAM,QAAQ,KAAK;AAAA,EAC3D,GAAG,WAAW,aAAa,MAAM,QAAQ,KAAK;AAAA,EAC9C,GAAG,WAAW,eAAe,QAAQ,SAAS,QAAQ,KAAK;AAAA,EAC3D,GAAG,WAAW,gBAAgB,OAAO,OAAO,MAAM,QAAQ,KAAK;AAAA,EAC/D,GAAG,WAAW,eAAe,OAAO,MAAM,QAAQ,OAAO,IAAI;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,SAAS,WAAW,SAAiBA,aAAsB;AAC1D,SAAOA,YAAW,IAAI,CAAC,cAAc,CAAC,MAAM,SAAS,EAAE,KAAK,GAAG,CAAC;AACjE;AAEA,eAAsB,wBAAwB;AAC7C,aAAW,YAAY,WAAW;AACjC,UAAM,GAAG,GAAG,UAAU,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAAA,EACvD;AACD;","names":["extensions"]}
1
+ {"version":3,"sources":["../../src/steps/clearUnnecessaryFiles.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nconst globPaths = [\n\t...extensions(\".babelrc\", \"cjs\", \"cts\", \"js\", \"json\", \"mjs\"),\n\t...extensions(\".eslintrc\", \"js\", \"json\", \"yml\"),\n\t...extensions(\".prettierrc\", \"json\", \"json5\", \"yaml\", \"yml\"),\n\t...extensions(\"prettier.config\", \"js\", \"mjs\", \"cjs\"),\n\t...extensions(\"babel.config\", \"cjs\", \"cts\", \"js\", \"json\", \"mjs\"),\n\t...extensions(\"jest.config\", \"cjs\", \"js\", \"json\", \"mjs\", \"ts\"),\n\t\"./src/**/*.js\",\n\t\".circleci/config.yml\",\n\t\".babelrc\",\n\t\".npmignore\",\n\t\".eslintrc\",\n\t\"CODE_OF_CONDUCT.md\",\n\t\"CONTRIBUTING.md\",\n\t\"codecov.yml\",\n\t\"DEVELOPMENT.md\",\n\t\"dist\",\n\t\"lib\",\n\t\"package-lock.json\",\n\t\"travis.yml\",\n\t\"yarn.lock\",\n];\n\nfunction extensions(base: string, ...extensions: string[]) {\n\treturn extensions.map((extension) => [base, extension].join(\".\"));\n}\n\nexport async function clearUnnecessaryFiles() {\n\tfor (const globPath of globPaths) {\n\t\tawait fs.rm(globPath, { force: true, recursive: true });\n\t}\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,MAAM,YAAY;AAAA,EACjB,GAAG,WAAW,YAAY,OAAO,OAAO,MAAM,QAAQ,KAAK;AAAA,EAC3D,GAAG,WAAW,aAAa,MAAM,QAAQ,KAAK;AAAA,EAC9C,GAAG,WAAW,eAAe,QAAQ,SAAS,QAAQ,KAAK;AAAA,EAC3D,GAAG,WAAW,mBAAmB,MAAM,OAAO,KAAK;AAAA,EACnD,GAAG,WAAW,gBAAgB,OAAO,OAAO,MAAM,QAAQ,KAAK;AAAA,EAC/D,GAAG,WAAW,eAAe,OAAO,MAAM,QAAQ,OAAO,IAAI;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,SAAS,WAAW,SAAiBA,aAAsB;AAC1D,SAAOA,YAAW,IAAI,CAAC,cAAc,CAAC,MAAM,SAAS,EAAE,KAAK,GAAG,CAAC;AACjE;AAEA,eAAsB,wBAAwB;AAC7C,aAAW,YAAY,WAAW;AACjC,UAAM,GAAG,GAAG,UAAU,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAAA,EACvD;AACD;","names":["extensions"]}
@@ -5,4 +5,4 @@ interface GhLabelData {
5
5
  }
6
6
  declare function getExistingEquivalentLabels(existingLabels: GhLabelData[], outcomeLabelName: string): GhLabelData[];
7
7
 
8
- export { GhLabelData, getExistingEquivalentLabels };
8
+ export { type GhLabelData, getExistingEquivalentLabels };
@@ -2,4 +2,4 @@ interface Structure {
2
2
  [i: string]: Structure | string;
3
3
  }
4
4
 
5
- export { Structure };
5
+ export type { Structure };
package/lib/types.d.ts CHANGED
@@ -4,4 +4,4 @@ interface GreetOptions {
4
4
  times?: number;
5
5
  }
6
6
 
7
- export { GreetOptions };
7
+ export type { GreetOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 💝",
5
5
  "repository": {
6
6
  "type": "git",
@@ -90,7 +90,7 @@
90
90
  "globby": "^14.0.0",
91
91
  "husky": "^8.0.3",
92
92
  "jsonc-eslint-parser": "^2.3.0",
93
- "knip": "2.41.3",
93
+ "knip": "2.41.5",
94
94
  "lint-staged": "^15.0.0",
95
95
  "markdownlint": "^0.32.0",
96
96
  "markdownlint-cli": "^0.37.0",
@@ -101,7 +101,7 @@
101
101
  "release-it": "^17.0.0",
102
102
  "sentences-per-line": "^0.2.1",
103
103
  "should-semantic-release": "^0.2.0",
104
- "tsup": "^7.2.0",
104
+ "tsup": "^8.0.0",
105
105
  "tsx": "^4.0.0",
106
106
  "typescript": "^5.1.6",
107
107
  "vitest": "^0.34.3",