From 794e9e12ea00e78da6b1c5eb71cb31fdffb7f6e7 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:52:34 +0200 Subject: [PATCH] fix(build): make package public --- .changeset/selfish-ways-leave.md | 5 +++++ incubator/build/package.json | 21 ++++++++++++++++++++- incubator/build/src/index.ts | 10 ++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .changeset/selfish-ways-leave.md diff --git a/.changeset/selfish-ways-leave.md b/.changeset/selfish-ways-leave.md new file mode 100644 index 000000000..13c0b5b69 --- /dev/null +++ b/.changeset/selfish-ways-leave.md @@ -0,0 +1,5 @@ +--- +"@rnx-kit/build": patch +--- + +Make `@rnx-kit/build` public diff --git a/incubator/build/package.json b/incubator/build/package.json index 8c805ed7e..274aae5ae 100644 --- a/incubator/build/package.json +++ b/incubator/build/package.json @@ -1,5 +1,4 @@ { - "private": true, "name": "@rnx-kit/build", "version": "0.7.2", "description": "EXPERIMENTAL - USE WITH CAUTION - @rnx-kit/build builds your app in the cloud", @@ -21,14 +20,34 @@ "types": "./lib/index.d.ts", "import": "./lib/index.js" }, + "./build": { + "types": "./lib/build.d.ts", + "import": "./lib/build.js" + }, + "./constants": { + "types": "./lib/constants.d.ts", + "import": "./lib/constants.js" + }, + "./distribution": { + "types": "./lib/distribution.d.ts", + "import": "./lib/distribution.js" + }, "./git": { "types": "./lib/git.d.ts", "import": "./lib/git.js" }, + "./packageManager": { + "types": "./lib/packageManager.d.ts", + "import": "./lib/packageManager.js" + }, "./qrcode": { "types": "./lib/qrcode.d.ts", "import": "./lib/qrcode.js" }, + "./remotes": { + "types": "./lib/remotes.d.ts", + "import": "./lib/remotes.js" + }, "./types": { "types": "./lib/types.d.ts" }, diff --git a/incubator/build/src/index.ts b/incubator/build/src/index.ts index feb15f7ad..fec9641de 100644 --- a/incubator/build/src/index.ts +++ b/incubator/build/src/index.ts @@ -1,5 +1,15 @@ +export { startBuild } from "./build.js"; +export { + DEPLOYMENT, + DEVICE_TYPES, + PLATFORMS, + USER_CONFIG_FILE, +} from "./constants.js"; +export { getDistribution } from "./distribution.js"; export { getRemoteUrl, getRepositoryRoot, stage } from "./git.js"; +export { detectPackageManager } from "./packageManager.js"; export { renderQRCode } from "./qrcode.js"; +export { getRemoteInfo } from "./remotes.js"; export type { BuildParams, Context,