primate 0.33.1 → 0.33.3

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.
@@ -11,8 +11,19 @@
11
11
  "erasableSyntaxOnly": true,
12
12
  "exactOptionalPropertyTypes": true,
13
13
  "allowImportingTsExtensions": true,
14
+ "jsx": "react-jsx",
14
15
  "paths": {
15
16
  "#route/*": ["routes/*"],
17
+ "#lib/*": [
18
+ "lib/*.tsx",
19
+ "lib/*.jsx",
20
+ "lib/*.vue",
21
+ "lib/*.svelte",
22
+ "lib/*.component.ts",
23
+ "lib/*.ts",
24
+ "lib/*.js",
25
+ "lib/*"
26
+ ],
16
27
  "#component/*": [
17
28
  "components/*.tsx",
18
29
  "components/*.jsx",
@@ -37,7 +37,7 @@ const DATABASE_OPTIONS = [
37
37
  ];
38
38
  // peer deps per frontend (npm names)
39
39
  const FRONTEND_PEER_DEPS = {
40
- angular: [],
40
+ angular: ["@angular/core", "@angular/common", "@angular/compiler"],
41
41
  eta: [],
42
42
  html: [],
43
43
  htmx: [],
@@ -325,18 +325,31 @@ function buildInstallCommand(runtime, packages, dir) {
325
325
  }
326
326
  const cd = `cd ${shQuote(dir)} && `;
327
327
  if (runtime === "bun") {
328
- const depCmd = dependencies.length > 0 ? `bun add ${dependencies.join(" ")}` : "";
329
- const devCmd = devDependencies.length > 0 ? `bun add -d ${devDependencies.join(" ")}` : "";
328
+ const depCmd = dependencies.length > 0
329
+ ? `bun add ${dependencies.join(" ")}`
330
+ : "";
331
+ const devCmd = devDependencies.length > 0
332
+ ? `bun add -d ${devDependencies.join(" ")}`
333
+ : "";
330
334
  const commands = [depCmd, devCmd].filter(Boolean);
331
335
  return { print: cd + commands.join(" && "), run: "" };
332
336
  }
333
337
  if (runtime === "deno") {
334
- const inner = `deno add ${allPkgs.map((p) => `npm:${p}`).join(" ")}`;
335
- return { print: cd + inner, run: "" };
338
+ const depCmd = dependencies.length > 0
339
+ ? `deno add ${dependencies.map(d => `npm:${d}`).join(" ")}`
340
+ : "";
341
+ const devCmd = devDependencies.length > 0
342
+ ? `deno add -D ${devDependencies.map(d => `npm:${d}`).join(" ")}`
343
+ : "";
344
+ const commands = [depCmd, devCmd].filter(Boolean);
345
+ return { print: cd + commands.join(" && "), run: "" };
336
346
  }
337
- // default: Node
338
- const depCmd = dependencies.length > 0 ? `npm install ${dependencies.join(" ")}` : "";
339
- const devCmd = devDependencies.length > 0 ? `npm install -D ${devDependencies.join(" ")}` : "";
347
+ const depCmd = dependencies.length > 0 ?
348
+ `npm install ${dependencies.join(" ")}`
349
+ : "";
350
+ const devCmd = devDependencies.length > 0
351
+ ? `npm install -D ${devDependencies.join(" ")}`
352
+ : "";
340
353
  const commands = [depCmd, devCmd].filter(Boolean);
341
354
  return { print: cd + commands.join(" && "), run: "" };
342
355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primate",
3
- "version": "0.33.1",
3
+ "version": "0.33.3",
4
4
  "description": "The universal web framework",
5
5
  "homepage": "https://primate.run",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -30,7 +30,7 @@
30
30
  "@rcompat/runtime": "^0.6.0",
31
31
  "@rcompat/string": "^0.10.0",
32
32
  "@rcompat/test": "^0.5.0",
33
- "@primate/core": "^0.2.1"
33
+ "@primate/core": "^0.2.4"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=20"