create-payloadpack-auth 0.1.1 → 0.2.0

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ import * as p from "@clack/prompts";
3
3
  import pc from "picocolors";
4
4
 
5
5
  // src/constants.ts
6
- var REGISTRY_URL = "https://payloadpack.nodejs.pub";
6
+ var REGISTRY_URL = "https://registry.payloadpack.com";
7
7
  var PACKAGE_NAME = "@payloadpack/auth";
8
8
  var DOCS_URL = "https://payloadpack.com/docs";
9
- var TOKEN_ENV_VAR = "PAYLOADPACK_AUTH_TOKEN";
9
+ var TOKEN_ENV_VAR = "PAYLOADPACK_TOKEN";
10
10
  var DEPENDENCIES = ["@payloadpack/auth", "better-auth", "@better-auth/passkey"];
11
11
  var DEV_DEPENDENCIES = ["dotenv-cli"];
12
- var NPMRC_CONTENT = `@payloadpack:registry=https://payloadpack.nodejs.pub
13
- //payloadpack.nodejs.pub/:_authToken=\${PAYLOADPACK_AUTH_TOKEN}
12
+ var NPMRC_CONTENT = `@payloadpack:registry=https://registry.payloadpack.com
13
+ //registry.payloadpack.com/:_authToken=\${PAYLOADPACK_TOKEN}
14
14
  `;
15
15
 
16
16
  // src/validators/license.ts
@@ -217,7 +217,7 @@ async function configureNpmrc(cwd) {
217
217
  if (await fs4.pathExists(npmrcPath)) {
218
218
  const existing = await fs4.readFile(npmrcPath, "utf-8");
219
219
  const hasRegistry = existing.includes("@payloadpack:registry");
220
- const hasTokenLine = existing.includes("//payloadpack.nodejs.pub/:_authToken");
220
+ const hasTokenLine = existing.includes("//registry.payloadpack.com/:_authToken");
221
221
  if (hasRegistry && hasTokenLine) {
222
222
  return { created: false, updated: false, alreadyConfigured: true };
223
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-payloadpack-auth",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "CLI to set up @payloadpack/auth in Payload CMS projects",
5
5
  "type": "module",
6
6
  "bin": {