create-bw-app 0.3.0 → 0.4.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/bin/create-bw-app.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/generator.mjs
CHANGED
|
@@ -115,10 +115,10 @@ async function getVersionMap(workspaceRoot) {
|
|
|
115
115
|
return versionMap;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
const
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
Object.assign(versionMap,
|
|
118
|
+
const previewManifestPath = path.join(workspaceRoot, "apps", "platform-preview", "package.json");
|
|
119
|
+
const previewManifest = await readJsonIfPresent(previewManifestPath);
|
|
120
|
+
if (previewManifest) {
|
|
121
|
+
Object.assign(versionMap, previewManifest.dependencies || {}, previewManifest.devDependencies || {});
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
for (const packageName of [
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
AUTH_RESEND_COOLDOWN_SECONDS,
|
|
6
6
|
buildResetPasswordRedirectUrl,
|
|
7
7
|
buildSignupCallbackUrl,
|
|
8
|
-
useCooldownTimer,
|
|
9
8
|
validateEmail,
|
|
10
9
|
validatePassword,
|
|
11
|
-
} from "@brightweblabs/core-auth/
|
|
10
|
+
} from "@brightweblabs/core-auth/shared";
|
|
11
|
+
import { useCooldownTimer } from "@brightweblabs/core-auth/client";
|
|
12
12
|
|
|
13
13
|
export function AuthPlayground() {
|
|
14
14
|
const [email, setEmail] = useState("hello@brightweblabs.pt");
|
|
@@ -39,7 +39,7 @@ export function AuthPlayground() {
|
|
|
39
39
|
<p className="eyebrow">Core Auth</p>
|
|
40
40
|
<h1>Auth package playground</h1>
|
|
41
41
|
<p className="muted">
|
|
42
|
-
This page exercises the external `@brightweblabs/core-auth` client
|
|
42
|
+
This page exercises the external `@brightweblabs/core-auth` shared and client entrypoints directly.
|
|
43
43
|
</p>
|
|
44
44
|
</div>
|
|
45
45
|
</article>
|