@lazarv/create-react-server 0.0.0-experimental-2dab5bb-20250522-222c3bcf → 0.0.0-experimental-c75b01a-20251226-122f8a22

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/package.json CHANGED
@@ -1,27 +1,32 @@
1
1
  {
2
2
  "name": "@lazarv/create-react-server",
3
- "version": "0.0.0-experimental-2dab5bb-20250522-222c3bcf",
4
- "bin": {
5
- "create-react-server": "index.mjs"
6
- },
7
- "type": "module",
3
+ "version": "0.0.0-experimental-c75b01a-20251226-122f8a22",
8
4
  "keywords": [
5
+ "create",
6
+ "esm",
9
7
  "react",
10
- "server",
11
8
  "rsc",
9
+ "server",
12
10
  "ssr",
13
- "esm",
14
- "vite",
15
- "create"
11
+ "vite"
16
12
  ],
17
- "author": "lazarv",
13
+ "bugs": {
14
+ "url": "https://github.com/lazarv/react-server/issues"
15
+ },
18
16
  "license": "MIT",
17
+ "author": "lazarv",
19
18
  "repository": {
20
19
  "type": "git",
21
20
  "url": "git+https://github.com/lazarv/react-server.git"
22
21
  },
23
- "bugs": {
24
- "url": "https://github.com/lazarv/react-server/issues"
22
+ "bin": {
23
+ "create-react-server": "index.mjs"
24
+ },
25
+ "type": "module",
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "provenance": true,
29
+ "tag": "latest"
25
30
  },
26
31
  "dependencies": {
27
32
  "@inquirer/checkbox": "^4.0.1",
@@ -39,7 +44,7 @@
39
44
  "picocolors": "^1.1.1",
40
45
  "prettier": "^3.0.0",
41
46
  "ts-morph": "^24.0.0",
42
- "@lazarv/react-server": "0.0.0-experimental-2dab5bb-20250522-222c3bcf"
47
+ "@lazarv/react-server": "0.0.0-experimental-c75b01a-20251226-122f8a22"
43
48
  },
44
49
  "engines": {
45
50
  "node": ">=20.10.0"
package/steps/alias.mjs CHANGED
@@ -10,7 +10,7 @@ export default [
10
10
  (!context.props.custom ||
11
11
  context.env.hasOptions ||
12
12
  context.props.preset?.alias
13
- ? context.props.preset?.alias ?? "~/*"
13
+ ? (context.props.preset?.alias ?? "~/*")
14
14
  : await input(
15
15
  {
16
16
  message: "TypeScript path alias",
@@ -107,7 +107,7 @@ export default async (context) => {
107
107
  ...(context.props.preset?.features ?? []),
108
108
  ...(context.env.options.features?.split(",") ??
109
109
  (!context.props.custom || context.env.hasOptions
110
- ? context.props.preset.features ?? []
110
+ ? (context.props.preset.features ?? [])
111
111
  : await checkbox(
112
112
  {
113
113
  message: "Enabled features",
@@ -7,5 +7,5 @@
7
7
  "quoteProps": "as-needed",
8
8
  "trailingComma": "es5",
9
9
  "bracketSpacing": true,
10
- "bracketSameLine": false
10
+ "bracketSameLine": false,
11
11
  }
@@ -7,9 +7,8 @@ export default function Confetti(props) {
7
7
  <Button
8
8
  {...props}
9
9
  onClick={async () => {
10
- const { default: confetti } = await import(
11
- "https://esm.sh/canvas-confetti"
12
- );
10
+ const { default: confetti } =
11
+ await import("https://esm.sh/canvas-confetti");
13
12
  confetti();
14
13
  }}
15
14
  >
@@ -7,9 +7,8 @@ export default function Confetti(props: ButtonProps) {
7
7
  <Button
8
8
  {...props}
9
9
  onClick={async () => {
10
- const { default: confetti } = await import(
11
- "https://esm.sh/canvas-confetti"
12
- );
10
+ const { default: confetti } =
11
+ await import("https://esm.sh/canvas-confetti");
13
12
  confetti();
14
13
  }}
15
14
  >
@@ -7,9 +7,8 @@ export default function Confetti(props: ButtonProps) {
7
7
  <Button
8
8
  {...props}
9
9
  onClick={async () => {
10
- const { default: confetti } = await import(
11
- "https://esm.sh/canvas-confetti"
12
- );
10
+ const { default: confetti } =
11
+ await import("https://esm.sh/canvas-confetti");
13
12
  confetti();
14
13
  }}
15
14
  >
@@ -2,6 +2,6 @@
2
2
  "devDependencies": {
3
3
  "babel-plugin-react-compiler": "0.0.0-experimental-a08709b-20250207",
4
4
  "eslint-plugin-react-compiler": "0.0.0-experimental-a08709b-20250207",
5
- "@vitejs/plugin-react": "^4.4.1"
5
+ "@vitejs/plugin-react": "^5.1.2"
6
6
  }
7
7
  }
@@ -39,9 +39,7 @@ export default function About() {
39
39
  CLI tool, setting up a fully functional React Server Components (RSC)
40
40
  app with file-system based routing and server functions out of the box.
41
41
  </p>
42
- <h2 className="text-xl font-semibold m-0">
43
- 🗂 File-system based routing
44
- </h2>
42
+ <h2 className="text-xl font-semibold m-0">🗂 File-system based routing</h2>
45
43
  <ul className="list-disc pl-6">
46
44
  <li>
47
45
  Add files to <b>/src/app</b> to{" "}
@@ -7,9 +7,8 @@ export default function Confetti(props: ButtonProps) {
7
7
  <Button
8
8
  {...props}
9
9
  onClick={async () => {
10
- const { default: confetti } = await import(
11
- "https://esm.sh/canvas-confetti"
12
- );
10
+ const { default: confetti } =
11
+ await import("https://esm.sh/canvas-confetti");
13
12
  confetti();
14
13
  }}
15
14
  >
package/wizard.mjs CHANGED
@@ -101,7 +101,7 @@ export async function wizard(env) {
101
101
  activeStep = prevStep;
102
102
  }
103
103
  } else {
104
- throw new Error();
104
+ throw new Error("Invalid wizard step", { cause: e });
105
105
  }
106
106
 
107
107
  abortController = new AbortController();