Skip to content

Commit d784e79

Browse files
committed
chore: -
1 parent a7b4121 commit d784e79

File tree

3 files changed

+7
-26
lines changed

3 files changed

+7
-26
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ auto-imports.d.ts
22
node_modules
33
dist
44
components.d.ts
5+
./scripts/

.pnpm-debug.log

Lines changed: 0 additions & 20 deletions
This file was deleted.

scripts/release.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const fs = require("fs");
44
const path = require("path");
55
const chalk = require("chalk");
66
const semver = require("semver");
7-
const currentVersion = require("../package.json").version;
8-
const { prompt } = require("enquirer");
97
const execa = require("execa");
8+
const { prompt } = require("enquirer");
9+
const currentVersion = require("../package.json").version;
1010

1111
const preId =
1212
args.preid ||
@@ -16,7 +16,7 @@ const isDryRun = args.dry;
1616
const versionIncrements = ["repair", "patch", "minor", "major"];
1717

1818
const inc = (i) => {
19-
if (i == "repair") {
19+
if (i === "repair") {
2020
return preId
2121
? semver.inc(currentVersion, "prerelease", preId)
2222
: `${currentVersion}-1`;
@@ -85,15 +85,15 @@ async function main() {
8585
// // build all packages with types
8686
// step("\nBuilding all packages...");
8787
// if (!skipBuild && !isDryRun) {
88-
// await run("pnpm", ["run", "build"]);
88+
// await run("npm", ["run", "build"]);
8989
// // test generated dts files
9090
// } else {
9191
// console.log("(skipped)");
9292
// }
9393

9494
// generate changelog
9595
step("\nGenerating changelog...");
96-
await run("pnpm", ["run", "changelog"]);
96+
await run("npm", ["run", "changelog"]);
9797

9898
const { stdout } = await run("git", ["diff"], { stdio: "pipe" });
9999
if (stdout) {
@@ -116,7 +116,7 @@ async function main() {
116116
await syncPushCode();
117117

118118
step("publish all packages...");
119-
await run("pnpm", ["run", "publish-pkg"]);
119+
await run("npm", ["run", "publish-pkg"]);
120120

121121
if (isDryRun) {
122122
console.log("\nDry run finished - run git diff to see package changes.");

0 commit comments

Comments
 (0)