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.
- package/dist/index.js +5 -5
- 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.
|
|
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 = "
|
|
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.
|
|
13
|
-
//payloadpack.
|
|
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.
|
|
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
|
}
|