@nx-devkit/prepare-for-release 0.1.9 → 0.1.11

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.
package/README.md CHANGED
@@ -10,7 +10,7 @@ Part of [nx-devkit](https://github.com/nx-devkit/nx.ts).
10
10
  bun add -D @nx-devkit/prepare-for-release
11
11
  ```
12
12
 
13
- Requires `@nx/devkit` `^22 || ^23` (peer).
13
+ Depends on `@nx/devkit` `^22 || ^23` — installed automatically.
14
14
 
15
15
  ## Bootstrap
16
16
 
@@ -222,7 +222,7 @@ function readNpmAuthToken(registry, cwd) {
222
222
  const url = new URL(registry);
223
223
  const registryKey = `//${url.host}${url.pathname.replace(/\/+$/, "")}`;
224
224
  const keyRe = new RegExp(`${registryKey.replace(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`)}/:_authToken=(\\S+)`);
225
- const candidates = [join(cwd, ".npmrc"), join(homedir(), ".npmrc")];
225
+ const home = process.env.HOME || homedir(), candidates = [join(cwd, ".npmrc"), join(home, ".npmrc")];
226
226
  for (const rcPath of candidates) {
227
227
  let text;
228
228
  try {
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "@nx-devkit/prepare-for-release",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "license": "MIT",
5
+ "description": "Nx plugin that bootstraps npm publishing: 0.0.0 placeholder releases for unpublished packages plus OIDC trusted-publishing setup.",
6
+ "keywords": [
7
+ "nx",
8
+ "nx-plugin",
9
+ "npm",
10
+ "npm-publish",
11
+ "oidc",
12
+ "trusted-publishing",
13
+ "release",
14
+ "monorepo"
15
+ ],
5
16
  "private": false,
6
17
  "type": "module",
7
18
  "main": "./dist/index.mjs",
@@ -34,16 +45,14 @@
34
45
  ],
35
46
  "scripts": {
36
47
  "build": "tsdown",
48
+ "prepublishOnly": "npm run build -- --clean",
37
49
  "test": "vitest run"
38
50
  },
39
- "peerDependencies": {
40
- "@nx/devkit": "^22.0.0 || ^23.0.0"
41
- },
42
51
  "dependencies": {
43
- "tinyglobby": "^0.2.0"
52
+ "tinyglobby": "^0.2.0",
53
+ "@nx/devkit": "^22.0.0 || ^23.0.0"
44
54
  },
45
55
  "devDependencies": {
46
- "@nx/devkit": "23.2.1",
47
56
  "@types/node": "^20.19.0",
48
57
  "memfs": "^4.50.0",
49
58
  "tsdown": "^0.22.3",
@@ -54,5 +63,9 @@
54
63
  "type": "git",
55
64
  "url": "https://github.com/nx-devkit/nx.ts",
56
65
  "directory": "packages/prepare-for-release"
57
- }
66
+ },
67
+ "bugs": {
68
+ "url": "https://github.com/nx-devkit/nx.ts/issues"
69
+ },
70
+ "homepage": "https://github.com/nx-devkit/nx.ts/tree/main/packages/prepare-for-release"
58
71
  }