@vitejs/release-scripts 1.7.0 → 1.7.1

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.
Files changed (3) hide show
  1. package/README.md +2 -7
  2. package/dist/index.js +229 -285
  3. package/package.json +16 -17
package/README.md CHANGED
@@ -12,15 +12,10 @@ release({
12
12
  repo: "release-scripts",
13
13
  // List of options. Choice will be available in following callback as `pkg`
14
14
  packages: ["release-scripts"],
15
- toTag: (pkg, version) =>
16
- pkg === "vite" ? `v${version}` : `${pkg}@${version}`,
15
+ toTag: (pkg, version) => (pkg === "vite" ? `v${version}` : `${pkg}@${version}`),
17
16
  // Not shared until we find a new changelog process
18
17
  logChangelog: (pkg) =>
19
- console.log(
20
- execSync(
21
- "git log $(git describe --tags --abbrev=0)..HEAD --oneline",
22
- ).toString(),
23
- ),
18
+ console.log(execSync("git log $(git describe --tags --abbrev=0)..HEAD --oneline").toString()),
24
19
  generateChangelog: (pkg, version) => {},
25
20
  // Use getPkgDir when not using a monorepo. Default to `packages/${pkg}`
26
21
  getPkgDir: (pkg) => ".",
package/dist/index.js CHANGED
@@ -1,293 +1,243 @@
1
- // src/publish.ts
2
- import * as semver2 from "semver";
3
-
4
- // src/utils.ts
5
- import { writeFileSync, readFileSync } from "node:fs";
1
+ import * as semver$1 from "semver";
2
+ import semver from "semver";
3
+ import fs, { readFileSync, writeFileSync } from "node:fs";
6
4
  import path from "node:path";
7
5
  import colors from "picocolors";
8
6
  import { exec } from "tinyexec";
9
- import * as semver from "semver";
10
7
  import mri from "mri";
11
- var args = mri(process.argv.slice(2));
12
- var isDryRun = !!args.dry;
8
+ import prompts from "prompts";
9
+ import { publint } from "publint";
10
+ import { formatMessage } from "publint/utils";
11
+ import { ConventionalChangelog } from "conventional-changelog";
12
+ import createPreset, { DEFAULT_COMMIT_TYPES } from "conventional-changelog-conventionalcommits";
13
+ //#region src/utils.ts
14
+ const args = mri(process.argv.slice(2));
15
+ const isDryRun = !!args.dry;
13
16
  if (isDryRun) {
14
- console.log(colors.inverse(colors.yellow(" DRY RUN ")));
15
- console.log();
17
+ console.log(colors.inverse(colors.yellow(" DRY RUN ")));
18
+ console.log();
16
19
  }
17
20
  function getPackageInfo(pkgName, getPkgDir = (pkg) => `packages/${pkg}`) {
18
- const pkgDir = path.resolve(getPkgDir(pkgName));
19
- const pkgPath = path.resolve(pkgDir, "package.json");
20
- const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
21
- if (pkg.private) {
22
- throw new Error(`Package ${pkgName} is private`);
23
- }
24
- return { pkg, pkgDir, pkgPath };
21
+ const pkgDir = path.resolve(getPkgDir(pkgName));
22
+ const pkgPath = path.resolve(pkgDir, "package.json");
23
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
24
+ if (pkg.private) throw new Error(`Package ${pkgName} is private`);
25
+ return {
26
+ pkg,
27
+ pkgDir,
28
+ pkgPath
29
+ };
25
30
  }
26
- async function run(bin, args2, opts = {}) {
27
- return exec(bin, args2, {
28
- throwOnError: true,
29
- ...opts,
30
- nodeOptions: {
31
- stdio: "inherit",
32
- ...opts.nodeOptions
33
- }
34
- });
31
+ async function run(bin, args, opts = {}) {
32
+ return exec(bin, args, {
33
+ throwOnError: true,
34
+ ...opts,
35
+ nodeOptions: {
36
+ stdio: "inherit",
37
+ ...opts.nodeOptions
38
+ }
39
+ });
35
40
  }
36
- async function dryRun(bin, args2, opts) {
37
- return console.log(
38
- colors.blue(`[dryrun] ${bin} ${args2.join(" ")}`),
39
- opts || ""
40
- );
41
+ async function dryRun(bin, args, opts) {
42
+ return console.log(colors.blue(`[dryrun] ${bin} ${args.join(" ")}`), opts || "");
41
43
  }
42
- var runIfNotDry = isDryRun ? dryRun : run;
44
+ const runIfNotDry = isDryRun ? dryRun : run;
43
45
  function step(msg) {
44
- return console.log(colors.cyan(msg));
46
+ return console.log(colors.cyan(msg));
45
47
  }
46
48
  function getVersionChoices(currentVersion) {
47
- const currentBeta = currentVersion.includes("beta");
48
- const currentAlpha = currentVersion.includes("alpha");
49
- const isStable = !currentBeta && !currentAlpha;
50
- function inc2(i, tag = currentAlpha ? "alpha" : "beta") {
51
- return semver.inc(currentVersion, i, tag);
52
- }
53
- let versionChoices = [
54
- {
55
- title: "next",
56
- value: inc2(isStable ? "patch" : "prerelease")
57
- }
58
- ];
59
- if (isStable) {
60
- versionChoices.push(
61
- {
62
- title: "beta-minor",
63
- value: inc2("preminor")
64
- },
65
- {
66
- title: "beta-major",
67
- value: inc2("premajor")
68
- },
69
- {
70
- title: "alpha-minor",
71
- value: inc2("preminor", "alpha")
72
- },
73
- {
74
- title: "alpha-major",
75
- value: inc2("premajor", "alpha")
76
- },
77
- {
78
- title: "minor",
79
- value: inc2("minor")
80
- },
81
- {
82
- title: "major",
83
- value: inc2("major")
84
- }
85
- );
86
- } else if (currentAlpha) {
87
- versionChoices.push({
88
- title: "beta",
89
- value: inc2("patch") + "-beta.0"
90
- });
91
- } else {
92
- versionChoices.push({
93
- title: "stable",
94
- value: inc2("patch")
95
- });
96
- }
97
- versionChoices.push({ value: "custom", title: "custom" });
98
- versionChoices = versionChoices.map((i) => {
99
- i.title = `${i.title} (${i.value})`;
100
- return i;
101
- });
102
- return versionChoices;
49
+ const currentBeta = currentVersion.includes("beta");
50
+ const currentAlpha = currentVersion.includes("alpha");
51
+ const isStable = !currentBeta && !currentAlpha;
52
+ function inc(i, tag = currentAlpha ? "alpha" : "beta") {
53
+ return semver$1.inc(currentVersion, i, tag);
54
+ }
55
+ let versionChoices = [{
56
+ title: "next",
57
+ value: inc(isStable ? "patch" : "prerelease")
58
+ }];
59
+ if (isStable) versionChoices.push({
60
+ title: "beta-minor",
61
+ value: inc("preminor")
62
+ }, {
63
+ title: "beta-major",
64
+ value: inc("premajor")
65
+ }, {
66
+ title: "alpha-minor",
67
+ value: inc("preminor", "alpha")
68
+ }, {
69
+ title: "alpha-major",
70
+ value: inc("premajor", "alpha")
71
+ }, {
72
+ title: "minor",
73
+ value: inc("minor")
74
+ }, {
75
+ title: "major",
76
+ value: inc("major")
77
+ });
78
+ else if (currentAlpha) versionChoices.push({
79
+ title: "beta",
80
+ value: inc("patch") + "-beta.0"
81
+ });
82
+ else versionChoices.push({
83
+ title: "stable",
84
+ value: inc("patch")
85
+ });
86
+ versionChoices.push({
87
+ value: "custom",
88
+ title: "custom"
89
+ });
90
+ versionChoices = versionChoices.map((i) => {
91
+ i.title = `${i.title} (${i.value})`;
92
+ return i;
93
+ });
94
+ return versionChoices;
103
95
  }
104
96
  function updateVersion(pkgPath, version) {
105
- const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
106
- pkg.version = version;
107
- writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
97
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
98
+ pkg.version = version;
99
+ writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
108
100
  }
109
101
  async function publishPackage(pkgDir, tag, provenance, packageManager = "npm") {
110
- const publicArgs = ["publish", "--access", "public"];
111
- if (tag) {
112
- publicArgs.push(`--tag`, tag);
113
- }
114
- if (provenance) {
115
- publicArgs.push(`--provenance`);
116
- }
117
- if (packageManager === "pnpm") {
118
- publicArgs.push(`--no-git-checks`);
119
- }
120
- await runIfNotDry(packageManager, publicArgs, {
121
- nodeOptions: { cwd: pkgDir }
122
- });
102
+ const publicArgs = [
103
+ "publish",
104
+ "--access",
105
+ "public"
106
+ ];
107
+ if (tag) publicArgs.push(`--tag`, tag);
108
+ if (provenance) publicArgs.push(`--provenance`);
109
+ if (packageManager === "pnpm") publicArgs.push(`--no-git-checks`);
110
+ await runIfNotDry(packageManager, publicArgs, { nodeOptions: { cwd: pkgDir } });
123
111
  }
124
112
  async function getActiveVersion(npmName) {
125
- try {
126
- const { stdout } = await run(
127
- "npm",
128
- ["info", npmName, "version", "--json"],
129
- { nodeOptions: { stdio: "pipe" } }
130
- );
131
- return JSON.parse(stdout);
132
- } catch (e) {
133
- if (e.stdout) {
134
- const stdout = JSON.parse(e.stdout);
135
- if (stdout.error.code === "E404") {
136
- return;
137
- }
138
- }
139
- throw e;
140
- }
113
+ try {
114
+ const { stdout } = await run("npm", [
115
+ "info",
116
+ npmName,
117
+ "version",
118
+ "--json"
119
+ ], { nodeOptions: { stdio: "pipe" } });
120
+ return JSON.parse(stdout);
121
+ } catch (e) {
122
+ if (e.stdout) {
123
+ if (JSON.parse(e.stdout).error.code === "E404") return;
124
+ }
125
+ throw e;
126
+ }
141
127
  }
142
-
143
- // src/publish.ts
144
- var publish = async ({
145
- defaultPackage,
146
- getPkgDir,
147
- provenance,
148
- packageManager
149
- }) => {
150
- const tag = args._[0];
151
- if (!tag) throw new Error("No tag specified");
152
- let pkgName = defaultPackage;
153
- let version;
154
- if (tag.includes("@")) [pkgName, version] = tag.split("@");
155
- else version = tag;
156
- if (version.startsWith("v")) version = version.slice(1);
157
- if (pkgName === void 0)
158
- throw new Error(
159
- `Package name should be specified in tag "${tag}" when defaultPackage is not set`
160
- );
161
- const { pkg, pkgDir } = getPackageInfo(pkgName, getPkgDir);
162
- if (pkg.version !== version)
163
- throw new Error(
164
- `Package version from tag "${version}" mismatches with current version "${pkg.version}"`
165
- );
166
- const activeVersion = await getActiveVersion(pkg.name);
167
- step("Publishing package...");
168
- const releaseTag = version.includes("beta") ? "beta" : version.includes("alpha") ? "alpha" : activeVersion && semver2.lt(pkg.version, activeVersion) ? "previous" : void 0;
169
- await publishPackage(pkgDir, releaseTag, provenance, packageManager);
128
+ //#endregion
129
+ //#region src/publish.ts
130
+ const publish = async ({ defaultPackage, getPkgDir, provenance, packageManager }) => {
131
+ const tag = args._[0];
132
+ if (!tag) throw new Error("No tag specified");
133
+ let pkgName = defaultPackage;
134
+ let version;
135
+ if (tag.includes("@")) [pkgName, version] = tag.split("@");
136
+ else version = tag;
137
+ if (version.startsWith("v")) version = version.slice(1);
138
+ if (pkgName === void 0) throw new Error(`Package name should be specified in tag "${tag}" when defaultPackage is not set`);
139
+ const { pkg, pkgDir } = getPackageInfo(pkgName, getPkgDir);
140
+ if (pkg.version !== version) throw new Error(`Package version from tag "${version}" mismatches with current version "${pkg.version}"`);
141
+ const activeVersion = await getActiveVersion(pkg.name);
142
+ step("Publishing package...");
143
+ await publishPackage(pkgDir, version.includes("beta") ? "beta" : version.includes("alpha") ? "alpha" : activeVersion && semver$1.lt(pkg.version, activeVersion) ? "previous" : void 0, provenance, packageManager);
170
144
  };
171
-
172
- // src/release.ts
173
- import prompts from "prompts";
174
- import semver3 from "semver";
175
- import colors2 from "picocolors";
176
- import { publint } from "publint";
177
- import { formatMessage } from "publint/utils";
178
- var release = async ({
179
- org = "vitejs",
180
- repo,
181
- packages,
182
- logChangelog,
183
- generateChangelog: generateChangelog2,
184
- toTag,
185
- getPkgDir
186
- }) => {
187
- let targetVersion;
188
- const selectedPkg = packages.length === 1 ? packages[0] : (await prompts({
189
- type: "select",
190
- name: "pkg",
191
- message: "Select package",
192
- choices: packages.map((i) => ({ value: i, title: i }))
193
- })).pkg;
194
- if (!selectedPkg) return;
195
- await logChangelog(selectedPkg);
196
- const { pkg, pkgPath, pkgDir } = getPackageInfo(selectedPkg, getPkgDir);
197
- const { messages } = await publint({ pkgDir });
198
- if (messages.length) {
199
- for (const message of messages) console.log(formatMessage(message, pkg));
200
- const { yes: yes2 } = await prompts({
201
- type: "confirm",
202
- name: "yes",
203
- message: `${messages.length} messages from publint. Continue anyway?`
204
- });
205
- if (!yes2) process.exit(1);
206
- }
207
- if (!targetVersion) {
208
- const { release: release2 } = await prompts({
209
- type: "select",
210
- name: "release",
211
- message: "Select release type",
212
- choices: getVersionChoices(pkg.version)
213
- });
214
- if (release2 === "custom") {
215
- const res = await prompts({
216
- type: "text",
217
- name: "version",
218
- message: "Input custom version",
219
- initial: pkg.version
220
- });
221
- targetVersion = res.version;
222
- } else {
223
- targetVersion = release2;
224
- }
225
- }
226
- if (!semver3.valid(targetVersion)) {
227
- throw new Error(`invalid target version: ${targetVersion}`);
228
- }
229
- const tag = toTag(selectedPkg, targetVersion);
230
- if (targetVersion.includes("beta") && !args.tag) {
231
- args.tag = "beta";
232
- }
233
- if (targetVersion.includes("alpha") && !args.tag) {
234
- args.tag = "alpha";
235
- }
236
- const { yes } = await prompts({
237
- type: "confirm",
238
- name: "yes",
239
- message: `Releasing ${colors2.yellow(tag)} Confirm?`
240
- });
241
- if (!yes) return;
242
- step("\nUpdating package version...");
243
- updateVersion(pkgPath, targetVersion);
244
- await generateChangelog2(selectedPkg, targetVersion);
245
- const { stdout } = await run("git", ["diff"], {
246
- nodeOptions: { stdio: "pipe" }
247
- });
248
- if (stdout) {
249
- step("\nCommitting changes...");
250
- await runIfNotDry("git", ["add", "-A"]);
251
- await runIfNotDry("git", ["commit", "-m", `release: ${tag}`]);
252
- await runIfNotDry("git", ["tag", "-a", "-m", tag, tag]);
253
- } else {
254
- console.log("No changes to commit.");
255
- return;
256
- }
257
- step("\nPushing to GitHub...");
258
- await runIfNotDry("git", ["push", "origin", `refs/tags/${tag}`]);
259
- await runIfNotDry("git", ["push"]);
260
- if (isDryRun) {
261
- console.log(`
262
- Dry run finished - run git diff to see package changes.`);
263
- } else {
264
- console.log(
265
- colors2.green(
266
- `
145
+ //#endregion
146
+ //#region src/release.ts
147
+ const release = async ({ org = "vitejs", repo, packages, logChangelog, generateChangelog, toTag, getPkgDir }) => {
148
+ let targetVersion;
149
+ const selectedPkg = packages.length === 1 ? packages[0] : (await prompts({
150
+ type: "select",
151
+ name: "pkg",
152
+ message: "Select package",
153
+ choices: packages.map((i) => ({
154
+ value: i,
155
+ title: i
156
+ }))
157
+ })).pkg;
158
+ if (!selectedPkg) return;
159
+ await logChangelog(selectedPkg);
160
+ const { pkg, pkgPath, pkgDir } = getPackageInfo(selectedPkg, getPkgDir);
161
+ const { messages } = await publint({ pkgDir });
162
+ if (messages.length) {
163
+ for (const message of messages) console.log(formatMessage(message, pkg));
164
+ const { yes } = await prompts({
165
+ type: "confirm",
166
+ name: "yes",
167
+ message: `${messages.length} messages from publint. Continue anyway?`
168
+ });
169
+ if (!yes) process.exit(1);
170
+ }
171
+ if (!targetVersion) {
172
+ const { release } = await prompts({
173
+ type: "select",
174
+ name: "release",
175
+ message: "Select release type",
176
+ choices: getVersionChoices(pkg.version)
177
+ });
178
+ if (release === "custom") targetVersion = (await prompts({
179
+ type: "text",
180
+ name: "version",
181
+ message: "Input custom version",
182
+ initial: pkg.version
183
+ })).version;
184
+ else targetVersion = release;
185
+ }
186
+ if (!semver.valid(targetVersion)) throw new Error(`invalid target version: ${targetVersion}`);
187
+ const tag = toTag(selectedPkg, targetVersion);
188
+ if (targetVersion.includes("beta") && !args.tag) args.tag = "beta";
189
+ if (targetVersion.includes("alpha") && !args.tag) args.tag = "alpha";
190
+ const { yes } = await prompts({
191
+ type: "confirm",
192
+ name: "yes",
193
+ message: `Releasing ${colors.yellow(tag)} Confirm?`
194
+ });
195
+ if (!yes) return;
196
+ step("\nUpdating package version...");
197
+ updateVersion(pkgPath, targetVersion);
198
+ await generateChangelog(selectedPkg, targetVersion);
199
+ const { stdout } = await run("git", ["diff"], { nodeOptions: { stdio: "pipe" } });
200
+ if (stdout) {
201
+ step("\nCommitting changes...");
202
+ await runIfNotDry("git", ["add", "-A"]);
203
+ await runIfNotDry("git", [
204
+ "commit",
205
+ "-m",
206
+ `release: ${tag}`
207
+ ]);
208
+ await runIfNotDry("git", [
209
+ "tag",
210
+ "-a",
211
+ "-m",
212
+ tag,
213
+ tag
214
+ ]);
215
+ } else {
216
+ console.log("No changes to commit.");
217
+ return;
218
+ }
219
+ step("\nPushing to GitHub...");
220
+ await runIfNotDry("git", [
221
+ "push",
222
+ "origin",
223
+ `refs/tags/${tag}`
224
+ ]);
225
+ await runIfNotDry("git", ["push"]);
226
+ if (isDryRun) console.log(`\nDry run finished - run git diff to see package changes.`);
227
+ else console.log(colors.green(`
267
228
  Pushed, publishing should starts shortly on CI.
268
- https://github.com/${org}/${repo}/actions/workflows/publish.yml`
269
- )
270
- );
271
- }
272
- console.log();
229
+ https://github.com/${org}/${repo}/actions/workflows/publish.yml`));
230
+ console.log();
273
231
  };
274
-
275
- // src/changelog.ts
276
- import fs from "node:fs";
277
- import path2 from "node:path";
278
- import { ConventionalChangelog } from "conventional-changelog";
279
- import createPreset, {
280
- DEFAULT_COMMIT_TYPES
281
- } from "conventional-changelog-conventionalcommits";
282
- var generateChangelog = async ({
283
- getPkgDir,
284
- tagPrefix
285
- }) => {
286
- const preset = await createPreset({
287
- types: DEFAULT_COMMIT_TYPES.map((t) => ({ ...t, hidden: false }))
288
- });
289
- preset.writer ??= {};
290
- preset.writer.headerPartial = `
232
+ //#endregion
233
+ //#region src/changelog.ts
234
+ const generateChangelog = async ({ getPkgDir, tagPrefix }) => {
235
+ const preset = await createPreset({ types: DEFAULT_COMMIT_TYPES.map((t) => ({
236
+ ...t,
237
+ hidden: false
238
+ })) });
239
+ preset.writer ??= {};
240
+ preset.writer.headerPartial = `
291
241
  ## {{#if isPatch~}} <small> {{~/if~}}
292
242
  {{#if @root.linkCompare~}}
293
243
  [{{version}}](
@@ -312,12 +262,12 @@ var generateChangelog = async ({
312
262
  {{~/if}}
313
263
  {{~#if isPatch~}} </small> {{~/if}}
314
264
  `.trim();
315
- preset.writer.mainTemplate = `
265
+ preset.writer.mainTemplate = `
316
266
  {{> header}}
317
267
  {{#if noteGroups}}
318
268
  {{#each noteGroups}}
319
269
 
320
- ### \u26A0 {{title}}
270
+ ### {{title}}
321
271
 
322
272
  {{#each notes}}
323
273
  * {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{commit.subject}} {{#if commit.hash}}([{{commit.shortHash}}](https://github.com/{{@root.owner}}/{{@root.repository}}/commit/{{commit.hash}})){{/if}}
@@ -334,20 +284,14 @@ var generateChangelog = async ({
334
284
  {{> commit root=@root}}
335
285
  {{/each}}
336
286
  {{/each}}`.trim() + "\n";
337
- const pkgDir = getPkgDir();
338
- const generator = new ConventionalChangelog(pkgDir).readPackage().config(preset).options({ releaseCount: 1 });
339
- if (tagPrefix) {
340
- generator.tags({ prefix: tagPrefix });
341
- }
342
- const originalChangelog = fs.existsSync(path2.join(pkgDir, "CHANGELOG.md")) ? fs.readFileSync(path2.join(pkgDir, "CHANGELOG.md"), "utf-8") : "";
343
- const writeStream = fs.createWriteStream(path2.join(pkgDir, "CHANGELOG.md"));
344
- for await (const chunk of generator.write()) {
345
- writeStream.write(chunk);
346
- }
347
- writeStream.write(originalChangelog);
348
- };
349
- export {
350
- generateChangelog,
351
- publish,
352
- release
287
+ const pkgDir = getPkgDir();
288
+ const generator = new ConventionalChangelog(pkgDir).readPackage().config(preset).options({ releaseCount: 1 }).commits({ path: "." });
289
+ if (tagPrefix) generator.tags({ prefix: tagPrefix });
290
+ const originalChangelog = fs.existsSync(path.join(pkgDir, "CHANGELOG.md")) ? fs.readFileSync(path.join(pkgDir, "CHANGELOG.md"), "utf-8") : "";
291
+ const writeStream = fs.createWriteStream(path.join(pkgDir, "CHANGELOG.md"));
292
+ for await (const chunk of generator.write()) writeStream.write(chunk);
293
+ writeStream.write("\n");
294
+ writeStream.write(originalChangelog);
353
295
  };
296
+ //#endregion
297
+ export { generateChangelog, publish, release };
package/package.json CHANGED
@@ -1,23 +1,22 @@
1
1
  {
2
2
  "name": "@vitejs/release-scripts",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "@vitejs release scripts",
5
5
  "license": "MIT",
6
- "type": "module",
7
- "files": [
8
- "dist"
9
- ],
10
- "exports": "./dist/index.js",
11
6
  "repository": {
12
7
  "type": "git",
13
8
  "url": "git+https://github.com/vitejs/release-scripts.git"
14
9
  },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "type": "module",
14
+ "exports": "./dist/index.js",
15
15
  "scripts": {
16
- "build": "node scripts/build.ts",
16
+ "build": "rolldown -c",
17
17
  "test": "vitest",
18
- "prettier": "pnpm prettier-ci --write",
19
- "prettier-ci": "prettier --cache --ignore-path=.gitignore --check '**/*.{ts,json,md,yml}'",
20
- "qa": "tsc && pnpm prettier-ci && pnpm build && vitest run",
18
+ "format": "oxfmt",
19
+ "qa": "tsc && pnpm format --check && pnpm build && vitest run",
21
20
  "release": "node scripts/release.ts"
22
21
  },
23
22
  "dependencies": {
@@ -26,19 +25,19 @@
26
25
  "mri": "^1.2.0",
27
26
  "picocolors": "^1.1.1",
28
27
  "prompts": "^2.4.2",
29
- "publint": "^0.3.18",
30
- "semver": "^7.7.4",
31
- "tinyexec": "^1.1.1"
28
+ "publint": "^0.3.20",
29
+ "semver": "^7.8.0",
30
+ "tinyexec": "^1.1.2"
32
31
  },
33
32
  "devDependencies": {
34
- "@types/node": "^24.12.2",
33
+ "@types/node": "^24.12.3",
35
34
  "@types/prompts": "^2.4.9",
36
35
  "@types/semver": "^7.7.1",
37
- "esbuild": "^0.28.0",
38
36
  "fs-fixture": "^2.13.0",
39
- "prettier": "^3.8.3",
37
+ "oxfmt": "^0.48.0",
38
+ "rolldown": "^1.0.0",
40
39
  "typescript": "^6.0.3",
41
40
  "vitest": "^4.1.5"
42
41
  },
43
- "packageManager": "pnpm@10.33.0"
42
+ "packageManager": "pnpm@10.33.4"
44
43
  }