Move rome package into public-packages
RENAME
internal/rome/LICENSE
public-packages/rome/LICENSE
RENAME
internal/rome/README.md
public-packages/rome/README.md
RENAME
internal/rome/bin/rome.ts
public-packages/rome/bin/rome.ts
RENAME
internal/rome/index.ts
public-packages/rome/index.ts
RENAME
internal/rome/package.json
public-packages/rome/package.json
MODIFY
scripts/_utils.ts
scripts/_utils.ts
@@ -12,6 +12,7 @@ export const integrationWorker = createMockWorker();
export const ROOT = findRoot();
export const INTERNAL = ROOT.append("internal");
+export const PUBLIC_PACKAGES = ROOT.append("public-packages");
const COMMENT_REGEX = /(\/\/|<!--) EVERYTHING BELOW IS AUTOGENERATED\. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS([\s\S]+)$/;
const COMMENT_TEXT = "EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS";

MODIFY
scripts/build-release.ts
scripts/build-release.ts
-import {ROOT, execDev} from "./_utils";
+import {PUBLIC_PACKAGES, execDev} from "./_utils";
export async function main(args: Array<string>) {
- await execDev(["bundle", ROOT.append("internal", "rome").join(), ...args]);
+ await execDev(["bundle", PUBLIC_PACKAGES.append("rome").join(), ...args]);
}

MODIFY
scripts/changelog.ts
scripts/changelog.ts
@@ -2,7 +2,7 @@ import {markup} from "@internal/markup";
import {parseCommit} from "@internal/commit-parser";
import {readFileText} from "@internal/fs";
import {AbsoluteFilePath} from "@internal/path";
-import {INTERNAL, ROOT, reporter} from "./_utils";
+import {PUBLIC_PACKAGES, ROOT, reporter} from "./_utils";
import child = require("child_process");
import fs = require("fs");
@@ -351,7 +351,7 @@ export async function main() {
);
// Update the rome package version
- updateVersion(newVersion, INTERNAL.append("rome"));
+ updateVersion(newVersion, PUBLIC_PACKAGES.append("rome"));
reporter.success(
markup`The rome package version was updated to <emphasis>${newVersion}</emphasis>.`,
);

Move rome package into public-packages