Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Jun 25, 2024
1 parent d55a819 commit d614005
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 82 deletions.
5 changes: 3 additions & 2 deletions scripts/debug/overrides-rspack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export async function overrides_rspack_handler(version, options) {

for (const name of workspaceNames) {
if (name.startsWith("@rspack/")) {
pkgJson["pnpm"]["overrides"][isSnapshot ? getNextName(name) : name] =
version;
pkgJson["pnpm"]["overrides"][name] = isSnapshot
? `npm:${getNextName(name)}@${version}`
: version;
}
}

Expand Down
65 changes: 0 additions & 65 deletions scripts/debug/update-rspack.mjs

This file was deleted.

8 changes: 1 addition & 7 deletions scripts/release/version.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import path from "path";
import { findWorkspacePackagesNoCheck } from "@pnpm/find-workspace-packages";
import semver from "semver";
import { getNextPkgJson } from "../debug/update-rspack.mjs";

async function getCommitId() {
const result = await $`git rev-parse --short HEAD`;
Expand Down Expand Up @@ -63,13 +62,8 @@ export async function version_handler(version) {

if (version === "snapshot") {
const nextName = getNextName(workspace.manifest.name);
const nextPkgJson = getNextPkgJson(
workspace.manifest,
"workspace:*",
true
);
newManifest = {
...nextPkgJson,
...workspace.manifest,
name: nextName,
version: nextVersion
};
Expand Down
8 changes: 0 additions & 8 deletions x.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
launchRspackCli
} from "./scripts/debug/launch.mjs";
import { overrides_rspack_handler } from "./scripts/debug/overrides-rspack.mjs";
import { update_rspack_handler } from "./scripts/debug/update-rspack.mjs";
import { publish_handler } from "./scripts/release/publish.mjs";
import { version_handler } from "./scripts/release/version.mjs";

Expand Down Expand Up @@ -245,13 +244,6 @@ program
await launchJestWithArgs(getVariadicArgs());
});

program
.command("update-rspack")
.argument("<version>", "version field")
.option("--path <char>", "path to package.json")
.description("update rspack related packages in package.json")
.action(update_rspack_handler);

program
.command("overrides-rspack")
.argument("<version>", "version field")
Expand Down

0 comments on commit d614005

Please sign in to comment.