rattail 2.0.2 → 2.0.4

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/bin.mjs CHANGED
@@ -23,9 +23,18 @@ program.command("hook").description("Install git hooks from config").action(asyn
23
23
  const { hook } = await import("../hook-DzxvFQRx.mjs").then((n) => n.r);
24
24
  return hook();
25
25
  });
26
- program.command("release").description("Release all packages and generate changelogs").action(async () => {
26
+ program.command("release").description("Release all packages and generate changelogs").option("-t, --npmTag <tag>", "npm dist-tag (e.g. beta, next)").option("-r, --remote <remote>", "Git remote name for pushing").option("--skip-npm-publish", "Skip npm publish").option("--skip-changelog", "Skip changelog generation").option("--skip-git-tag", "Skip git tag").option("-c, --check-remote-version", "Skip publish if the current version already exists on npm").action(async (options) => {
27
+ const { getConfig } = await import("../config-DqfOxl3N.mjs").then((n) => n.t);
27
28
  const { release } = await import("../release-BFEGCZ4T.mjs").then((n) => n.n);
28
- return release();
29
+ return release({
30
+ ...(await getConfig()).release ?? {},
31
+ ...options.npmTag != null ? { npmTag: options.npmTag } : {},
32
+ ...options.remote != null ? { remote: options.remote } : {},
33
+ ...options.skipNpmPublish ? { skipNpmPublish: true } : {},
34
+ ...options.skipChangelog ? { skipChangelog: true } : {},
35
+ ...options.skipGitTag ? { skipGitTag: true } : {},
36
+ ...options.checkRemoteVersion ? { checkRemoteVersion: true } : {}
37
+ });
29
38
  });
30
39
  program.command("publish").description("Publish workspace packages to npm (pnpm recursive publish)").option("-c, --checkRemoteVersion", "Skip publish if the current version already exists on npm").option("-t, --npmTag <tag>", "npm dist-tag (e.g. beta, next); ignored when --pre-release is set").option("--pre-release", "Publish with alpha dist-tag").action(async (options) => {
31
40
  const { getConfig } = await import("../config-DqfOxl3N.mjs").then((n) => n.t);
@@ -1,6 +1,6 @@
1
1
  import { n as RattailConfig, t as HookConfig } from "../config-DSUWeyjT.mjs";
2
+ import { ConfigEnv, UserConfig } from "vite-plus";
2
3
  import { CreateVueConfigOptions, DummyRule, FmtOptions, LintOptions, LintOptionsVue, OxlintConfig, OxlintOverride, StagedConfig, fmt, lint, staged } from "@configurajs/vite-plus";
3
- import { ConfigEnv, UserConfig } from "@voidzero-dev/vite-plus-core";
4
4
 
5
5
  //#region src/vite-plus/index.d.ts
6
6
  type RattailUserConfig = UserConfig & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rattail",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A Vite+ oriented, AI Agent friendly front-end toolchain",
5
5
  "keywords": [
6
6
  "ai-agent",
@@ -91,7 +91,7 @@
91
91
  }
92
92
  },
93
93
  "dependencies": {
94
- "@configurajs/vite-plus": "0.2.4",
94
+ "@configurajs/vite-plus": "0.2.5",
95
95
  "@varlet/axle": "1.0.2",
96
96
  "@varlet/release": "^2.2.1",
97
97
  "api-farmer": "0.1.5",