@ykdz/template 0.0.15 → 0.0.16

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/dist/cli.js CHANGED
@@ -29,15 +29,18 @@ function usage() {
29
29
  " template preset-source validate <path>",
30
30
  " template blueprint validate <path>",
31
31
  "",
32
- "Options:",
33
- " --preset <name> Project preset to generate",
32
+ "Init options:",
33
+ " --preset <name> Project preset to generate",
34
+ " --scope <name> Package scope for workspace package names",
35
+ " --yes Accept defaults for non-interactive generation",
36
+ " --dry-run Print the planned generation without writing files",
37
+ " --json Print machine-readable output",
38
+ "",
39
+ "Add package options:",
40
+ " --preset <name> Package preset to add",
34
41
  " --name <name> Package name to add",
35
42
  " --path <path> Two-segment Package Path to add",
36
43
  " --link-from <path> Existing consumer Package Path to link from; repeatable",
37
- " --scope <name> Package scope for workspace package names",
38
- " --yes Accept defaults for non-interactive generation",
39
- " --dry-run Print the planned generation without writing files",
40
- " --json Print machine-readable output",
41
44
  ].join("\n");
42
45
  }
43
46
  function printJson(value) {
@@ -1,3 +1,5 @@
1
+ import { fileURLToPath, URL } from "node:url";
2
+
1
3
  import tailwindcss from "@tailwindcss/vite";
2
4
  import vue from "@vitejs/plugin-vue";
3
5
  import telefunc from "telefunc/vite";
@@ -9,4 +11,9 @@ const telefuncPlugin = telefunc() as PluginOption;
9
11
 
10
12
  export default defineConfig({
11
13
  plugins: [vike(), telefuncPlugin, vue(), tailwindcss()],
14
+ resolve: {
15
+ alias: {
16
+ "#": fileURLToPath(new URL(".", import.meta.url)),
17
+ },
18
+ },
12
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ykdz/template",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "private": false,
5
5
  "description": "Project template generator for YKDZ starter projects.",
6
6
  "keywords": [