primate 0.39.1 → 0.40.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/lib/commands/init.js +2 -16
- package/lib/public/events.d.ts +2 -0
- package/lib/public/events.js +2 -0
- package/lib/public/memorydb.d.ts +1 -1
- package/package.json +11 -12
package/lib/commands/init.js
CHANGED
|
@@ -283,9 +283,6 @@ function compute_packages(args) {
|
|
|
283
283
|
for (const extra of extras)
|
|
284
284
|
deps.add(extra);
|
|
285
285
|
}
|
|
286
|
-
if (args.frontends.includes("svelte")) {
|
|
287
|
-
dev_deps.add("@plsp/svelte");
|
|
288
|
-
}
|
|
289
286
|
// backends → @primate/<token>
|
|
290
287
|
for (const b of args.backends)
|
|
291
288
|
deps.add(`@primate/${b}`);
|
|
@@ -339,22 +336,12 @@ function build_install_command(runtime, packages, dir) {
|
|
|
339
336
|
}
|
|
340
337
|
async function tsconfig_json(root, opts) {
|
|
341
338
|
const is_react = opts.frontends.includes("react");
|
|
342
|
-
const is_svelte = opts.frontends.includes("svelte");
|
|
343
339
|
const ts_config = {
|
|
344
340
|
extends: "primate/tsconfig",
|
|
345
341
|
compilerOptions: {
|
|
346
342
|
baseUrl: "${configDir}",
|
|
347
343
|
paths: {
|
|
348
|
-
"
|
|
349
|
-
"#session": ["config/session"],
|
|
350
|
-
"#db": ["config/db"],
|
|
351
|
-
"#config/*": ["config/*"],
|
|
352
|
-
"#view/*": ["views/*"],
|
|
353
|
-
"#component/*": ["components/*"],
|
|
354
|
-
"#route/*": ["routes/*"],
|
|
355
|
-
"#store/*": ["stores/*"],
|
|
356
|
-
"#locale/*": ["locales/*"],
|
|
357
|
-
"#static/*": ["static/*"],
|
|
344
|
+
"@/*": ["*"],
|
|
358
345
|
},
|
|
359
346
|
},
|
|
360
347
|
include: [
|
|
@@ -365,14 +352,13 @@ async function tsconfig_json(root, opts) {
|
|
|
365
352
|
"routes",
|
|
366
353
|
"stores",
|
|
367
354
|
"locales",
|
|
355
|
+
"templates",
|
|
368
356
|
"static",
|
|
369
357
|
],
|
|
370
358
|
exclude: ["node_modules"],
|
|
371
359
|
};
|
|
372
360
|
if (is_react)
|
|
373
361
|
ts_config.compilerOptions.jsx = "react-jsx";
|
|
374
|
-
if (is_svelte)
|
|
375
|
-
ts_config.compilerOptions.plugins = [{ name: "@plsp/svelte" }];
|
|
376
362
|
await root.join("tsconfig.json").writeJSON(ts_config);
|
|
377
363
|
}
|
|
378
364
|
export default command_init;
|
package/lib/public/memorydb.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "The universal web framework",
|
|
5
5
|
"homepage": "https://primate.run",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -19,18 +19,17 @@
|
|
|
19
19
|
],
|
|
20
20
|
"types": "lib/index.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@rcompat/cli": "^0.
|
|
23
|
-
"@rcompat/dict": "^0.
|
|
24
|
-
"@rcompat/error": "^0.
|
|
25
|
-
"@rcompat/fs": "^0.
|
|
26
|
-
"@rcompat/http": "~0.
|
|
27
|
-
"@rcompat/is": "^0.
|
|
28
|
-
"@rcompat/runtime": "^0.
|
|
29
|
-
"@
|
|
30
|
-
"@primate/core": "^0.8.5"
|
|
22
|
+
"@rcompat/cli": "^0.25.0",
|
|
23
|
+
"@rcompat/dict": "^0.11.0",
|
|
24
|
+
"@rcompat/error": "^0.9.0",
|
|
25
|
+
"@rcompat/fs": "^0.35.1",
|
|
26
|
+
"@rcompat/http": "~0.31.0",
|
|
27
|
+
"@rcompat/is": "^0.12.0",
|
|
28
|
+
"@rcompat/runtime": "^0.17.0",
|
|
29
|
+
"@primate/core": "^0.9.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"@rcompat/type": "^0.
|
|
32
|
+
"@rcompat/type": "^0.18.0"
|
|
34
33
|
},
|
|
35
34
|
"engines": {
|
|
36
35
|
"node": ">=24"
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
59
|
"scripts": {
|
|
61
|
-
"build": "npm run clean &&
|
|
60
|
+
"build": "npm run clean && tsc && cp src/app.tsconfig.json lib && cp src/types/app.d.ts lib && cp src/types/index.d.ts lib",
|
|
62
61
|
"clean": "rm -rf ./lib",
|
|
63
62
|
"lint": "eslint ."
|
|
64
63
|
},
|