@nx-devkit/prepare-for-release 0.1.11 → 0.1.13
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.
|
@@ -113,6 +113,7 @@ async function buildPlaceholderTarball(pkgRoot, pkgName, placeholderVersion, reg
|
|
|
113
113
|
description: `Placeholder for ${pkgName} published by @nx-devkit/prepare-for-release.`,
|
|
114
114
|
homepage: original.homepage,
|
|
115
115
|
license: typeof original.license === "string" ? original.license : "MIT",
|
|
116
|
+
keywords: Array.isArray(original.keywords) ? original.keywords : void 0,
|
|
116
117
|
name: pkgName,
|
|
117
118
|
publishConfig: {
|
|
118
119
|
access: "public",
|
|
@@ -124,6 +125,7 @@ async function buildPlaceholderTarball(pkgRoot, pkgName, placeholderVersion, reg
|
|
|
124
125
|
};
|
|
125
126
|
const placeholderJson = JSON.stringify(placeholder, null, 2);
|
|
126
127
|
await writeFile(join(stagedPkgRoot, "package.json"), placeholderJson, "utf8");
|
|
128
|
+
await writeFile(join(stagedPkgRoot, "README.md"), `# ${pkgName}\n\n${placeholder.description}\n`, "utf8");
|
|
127
129
|
const packResult = spawnWithTimeout(resolveNpmCommand(), packArgs(tempDir), {
|
|
128
130
|
cwd: stagedPkgRoot,
|
|
129
131
|
encoding: "utf8"
|
|
@@ -278,7 +280,8 @@ async function pollForWebAuthOtp(doneUrl, token) {
|
|
|
278
280
|
}).catch(() => null);
|
|
279
281
|
if (res?.ok) {
|
|
280
282
|
const body = await res.json().catch(() => null);
|
|
281
|
-
|
|
283
|
+
const otp = body?.otp ?? body?.token;
|
|
284
|
+
if (otp) return otp;
|
|
282
285
|
}
|
|
283
286
|
await sleep(WEB_AUTH_POLL_MS);
|
|
284
287
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-devkit/prepare-for-release",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Nx plugin that bootstraps npm publishing: 0.0.0 placeholder releases for unpublished packages plus OIDC trusted-publishing setup.",
|
|
6
6
|
"keywords": [
|