@vizejs/create-fresco 0.718.0 → 0.720.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ubugeeei
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/cli.d.mts CHANGED
@@ -1,19 +1,31 @@
1
- import { r as PackageManager } from "./types-gfBHsajB.mjs";
1
+ import { r as PackageManager } from "./types-CoEXZ3qz.mjs";
2
2
 
3
3
  //#region src/version.d.ts
4
4
  /** The checked-out or installed create-fresco package version. */
5
5
  declare const CREATE_FRESCO_VERSION: string;
6
6
  //#endregion
7
7
  //#region src/cli.d.ts
8
+ /** Resolved command-line options for the create-fresco executable. */
8
9
  interface CliOptions {
10
+ /** Project directory, relative to the current process. @default "fresco-app" */
9
11
  directory: string;
12
+ /** Allow replacing scaffold-owned files in a non-empty directory. @default false */
10
13
  force: boolean;
14
+ /**
15
+ * Package manager written into setup instructions.
16
+ * @default auto-detected from npm_config_user_agent, otherwise "pnpm"
17
+ */
11
18
  packageManager?: PackageManager;
19
+ /** Print usage without creating a project. @default false */
12
20
  help: boolean;
21
+ /** Print the installed create-fresco version without creating a project. @default false */
13
22
  version: boolean;
14
23
  }
24
+ /** Parse create-fresco arguments or throw a stable `CREATE_FRESCO_*` diagnostic. */
15
25
  declare function parseCliArgs(args: readonly string[]): CliOptions;
26
+ /** Copyable usage text printed by `--help`. */
16
27
  declare const helpText = "create-fresco [directory] [options]\n\nOptions:\n --package-manager, --pm <name> npm, pnpm, yarn, or bun\n --force overwrite scaffold-owned files in a non-empty directory\n --help, -h show this help\n --version, -v show the package version";
28
+ /** Create a project from command-line arguments and print the next setup commands. */
17
29
  declare function runCli(args: readonly string[], output?: (message: string) => void): void;
18
30
  //#endregion
19
31
  export { CREATE_FRESCO_VERSION, CliOptions, helpText, parseCliArgs, runCli };
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as CREATE_FRESCO_VERSION, n as commandsFor, t as createFrescoProject } from "./scaffold-CuBjfy8n.mjs";
2
+ import { i as CREATE_FRESCO_VERSION, n as commandsFor, t as createFrescoProject } from "./scaffold-HROj6N2G.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
  //#region src/cli.ts
5
5
  const packageManagers = new Set([
@@ -12,6 +12,7 @@ function readPackageManager(value) {
12
12
  if (value && packageManagers.has(value)) return value;
13
13
  throw new Error(`CREATE_FRESCO_PACKAGE_MANAGER: expected npm, pnpm, yarn, or bun; received ${value ?? "nothing"}`);
14
14
  }
15
+ /** Parse create-fresco arguments or throw a stable `CREATE_FRESCO_*` diagnostic. */
15
16
  function parseCliArgs(args) {
16
17
  let directory;
17
18
  let force = false;
@@ -39,6 +40,7 @@ function parseCliArgs(args) {
39
40
  version
40
41
  };
41
42
  }
43
+ /** Copyable usage text printed by `--help`. */
42
44
  const helpText = `create-fresco [directory] [options]
43
45
 
44
46
  Options:
@@ -46,6 +48,7 @@ Options:
46
48
  --force overwrite scaffold-owned files in a non-empty directory
47
49
  --help, -h show this help
48
50
  --version, -v show the package version`;
51
+ /** Create a project from command-line arguments and print the next setup commands. */
49
52
  function runCli(args, output = console.log) {
50
53
  const options = parseCliArgs(args);
51
54
  if (options.help) {
package/dist/index.d.mts CHANGED
@@ -1,16 +1,20 @@
1
- import { n as CreateFrescoProjectResult, r as PackageManager, t as CreateFrescoProjectOptions } from "./types-gfBHsajB.mjs";
1
+ import { n as CreateFrescoProjectResult, r as PackageManager, t as CreateFrescoProjectOptions } from "./types-CoEXZ3qz.mjs";
2
2
 
3
3
  //#region src/scaffold.d.ts
4
4
  /** Create a project without installing dependencies or deleting unrelated files. */
5
5
  declare function createFrescoProject(options: CreateFrescoProjectOptions): CreateFrescoProjectResult;
6
6
  //#endregion
7
7
  //#region src/templates.d.ts
8
+ /** Inputs that make generated project files deterministic. */
8
9
  interface ProjectTemplateOptions {
10
+ /** Normalized npm package name written to the generated manifest. */
9
11
  packageName: string;
12
+ /** Package manager whose commands are written to generated instructions. */
10
13
  packageManager: PackageManager;
11
14
  }
12
15
  /** Materialize every deterministic file in a new Fresco project. */
13
16
  declare function projectTemplates(options: ProjectTemplateOptions): ReadonlyMap<string, string>;
17
+ /** Return the install and development commands for a supported package manager. */
14
18
  declare function commandsFor(packageManager: PackageManager): {
15
19
  install: string;
16
20
  dev: string;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as commandsFor, r as projectTemplates, t as createFrescoProject } from "./scaffold-CuBjfy8n.mjs";
1
+ import { n as commandsFor, r as projectTemplates, t as createFrescoProject } from "./scaffold-HROj6N2G.mjs";
2
2
  export { commandsFor, createFrescoProject, projectTemplates };
@@ -182,6 +182,7 @@ function projectTemplates(options) {
182
182
  ["src/main.ts", mainTs]
183
183
  ]);
184
184
  }
185
+ /** Return the install and development commands for a supported package manager. */
185
186
  function commandsFor(packageManager) {
186
187
  const commands = packageManagerCommands[packageManager];
187
188
  return {
@@ -0,0 +1,30 @@
1
+ //#region src/types.d.ts
2
+ /** Package managers whose commands can be emitted by create-fresco. */
3
+ type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
4
+ /** Options for materializing a Fresco project without installing dependencies. */
5
+ interface CreateFrescoProjectOptions {
6
+ /** Target directory, resolved from `cwd`. */
7
+ directory: string;
8
+ /** Base directory used to resolve `directory`. @default process.cwd() */
9
+ cwd?: string;
10
+ /**
11
+ * Package manager written into generated instructions.
12
+ * @default auto-detected from npm_config_user_agent, otherwise "pnpm"
13
+ */
14
+ packageManager?: PackageManager;
15
+ /** Allow replacing scaffold-owned files in a non-empty target. @default false */
16
+ force?: boolean;
17
+ }
18
+ /** Deterministic description of a materialized Fresco project. */
19
+ interface CreateFrescoProjectResult {
20
+ /** Absolute directory containing the generated project. */
21
+ targetDirectory: string;
22
+ /** Normalized npm package name written to `package.json`. */
23
+ packageName: string;
24
+ /** Package manager selected for generated instructions. */
25
+ packageManager: PackageManager;
26
+ /** Relative paths of every scaffold-owned file written by the operation. */
27
+ files: readonly string[];
28
+ }
29
+ //#endregion
30
+ export { CreateFrescoProjectResult as n, PackageManager as r, CreateFrescoProjectOptions as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/create-fresco",
3
- "version": "0.718.0",
3
+ "version": "0.720.0",
4
4
  "description": "Create a Vue-native Fresco terminal application",
5
5
  "keywords": [
6
6
  "create",
@@ -41,19 +41,11 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "scripts": {
45
- "build": "vp pack",
46
- "check": "vp check README.md package.json tsconfig.json src vite.config.ts && tsc --noEmit -p tsconfig.json",
47
- "check:fix": "vp check --fix README.md package.json tsconfig.json src vite.config.ts",
48
- "check:types": "tsc --noEmit -p tsconfig.json",
49
- "fmt": "vp fmt --write README.md package.json tsconfig.json src vite.config.ts",
50
- "test": "vp exec tsx --test src/**/*.test.ts"
51
- },
52
44
  "devDependencies": {
53
- "@types/node": "catalog:typescript",
54
- "tsx": "catalog:typescript",
55
- "typescript": "catalog:typescript",
56
- "vite-plus": "catalog:vite-stack"
45
+ "@types/node": "25.9.2",
46
+ "tsx": "4.23.15",
47
+ "typescript": "6.0.3",
48
+ "vite-plus": "0.1.24"
57
49
  },
58
50
  "engines": {
59
51
  "node": ">=22"
@@ -63,5 +55,13 @@
63
55
  "stability": "experimental",
64
56
  "stabilityDocs": "https://github.com/ubugeeei-prod/vize/blob/main/docs/content/stability.md#package-support-tiers"
65
57
  }
58
+ },
59
+ "scripts": {
60
+ "build": "vp pack",
61
+ "check": "vp check README.md package.json tsconfig.json src vite.config.ts && tsc --noEmit -p tsconfig.json",
62
+ "check:fix": "vp check --fix README.md package.json tsconfig.json src vite.config.ts",
63
+ "check:types": "tsc --noEmit -p tsconfig.json",
64
+ "fmt": "vp fmt --write README.md package.json tsconfig.json src vite.config.ts",
65
+ "test": "vp exec tsx --test src/**/*.test.ts"
66
66
  }
67
- }
67
+ }
@@ -1,16 +0,0 @@
1
- //#region src/types.d.ts
2
- type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
3
- interface CreateFrescoProjectOptions {
4
- directory: string;
5
- cwd?: string;
6
- packageManager?: PackageManager;
7
- force?: boolean;
8
- }
9
- interface CreateFrescoProjectResult {
10
- targetDirectory: string;
11
- packageName: string;
12
- packageManager: PackageManager;
13
- files: readonly string[];
14
- }
15
- //#endregion
16
- export { CreateFrescoProjectResult as n, PackageManager as r, CreateFrescoProjectOptions as t };