resuxjs 0.3.3 → 0.3.5
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/README.md +150 -892
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/compiler/implementation.js +12 -4
- package/dist/compiler/index.js.map +1 -1
- package/dist/core/config.d.ts +9 -0
- package/dist/core/config.js +16 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/hooks.js +4 -1
- package/dist/core/hooks.js.map +1 -1
- package/dist/create.js +34 -1
- package/dist/create.js.map +1 -1
- package/dist/deploy/common.js +9 -5
- package/dist/deploy/common.js.map +1 -1
- package/dist/deploy/vercel.js +35 -9
- package/dist/deploy/vercel.js.map +1 -1
- package/dist/halal-core/ai/classifyRuntimeContent.d.ts +3 -0
- package/dist/halal-core/ai/classifyRuntimeContent.js +123 -0
- package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -0
- package/dist/halal-core/index.d.ts +2 -0
- package/dist/halal-core/index.js +2 -0
- package/dist/halal-core/index.js.map +1 -1
- package/dist/halal-core/runtime/guard.d.ts +19 -0
- package/dist/halal-core/runtime/guard.js +203 -0
- package/dist/halal-core/runtime/guard.js.map +1 -0
- package/dist/halal-core/runtime/index.d.ts +4 -0
- package/dist/halal-core/runtime/index.js +5 -0
- package/dist/halal-core/runtime/index.js.map +1 -0
- package/dist/halal-core/runtime/reviewedMemory.d.ts +5 -0
- package/dist/halal-core/runtime/reviewedMemory.js +131 -0
- package/dist/halal-core/runtime/reviewedMemory.js.map +1 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +13 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.js +170 -0
- package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -0
- package/dist/halal-core/runtime/types.d.ts +57 -0
- package/dist/halal-core/runtime/types.js +2 -0
- package/dist/halal-core/runtime/types.js.map +1 -0
- package/dist/halal.d.ts +1 -0
- package/dist/halal.js +2 -0
- package/dist/halal.js.map +1 -0
- package/dist/i18n/index.js +3 -3
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/shared.js +15 -11
- package/dist/i18n/shared.js.map +1 -1
- package/dist/icons/index.d.ts +6 -6
- package/dist/kit/index.js +6 -11
- package/dist/kit/index.js.map +1 -1
- package/dist/reactivity/reactive.js +5 -1
- package/dist/reactivity/reactive.js.map +1 -1
- package/dist/reactivity/scheduler.js +13 -1
- package/dist/reactivity/scheduler.js.map +1 -1
- package/dist/runtime/index.js +334 -42
- package/dist/runtime/index.js.map +1 -1
- package/dist/ui/index.d.ts +29 -16
- package/dist/ui/index.js +274 -258
- package/dist/ui/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -6,6 +6,7 @@ import { createRequire } from "node:module";
|
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
8
|
import { createResux } from "./core/resux.js";
|
|
9
|
+
import { normalizeResuxGeneratedPath } from "./core/config.js";
|
|
9
10
|
import { runCreateResux } from "./create.js";
|
|
10
11
|
import { applyDeploymentPostBuild, resolveDeployment, } from "./deploy/index.js";
|
|
11
12
|
import { loadResuxDeployConfig, readJsonRecord } from "./deploy/common.js";
|
|
@@ -110,7 +111,7 @@ export async function runResuxCli(args) {
|
|
|
110
111
|
const subcommand = commandArgs[0];
|
|
111
112
|
const cliOptions = readCliOptions(commandArgs.slice(1), subcommand);
|
|
112
113
|
const appRoot = path.resolve(cliOptions.appRoot);
|
|
113
|
-
const resolvedBuildDir = await resolveConfiguredBuildDir(appRoot);
|
|
114
|
+
const resolvedBuildDir = normalizeResuxGeneratedPath(await resolveConfiguredBuildDir(appRoot));
|
|
114
115
|
const outDir = path.resolve(appRoot, resolvedBuildDir);
|
|
115
116
|
if (subcommand === "check") {
|
|
116
117
|
const ok = await runHalalCheck(appRoot, outDir);
|
|
@@ -141,7 +142,7 @@ export async function runResuxCli(args) {
|
|
|
141
142
|
}
|
|
142
143
|
const cliOptions = readCliOptions(commandArgs, command);
|
|
143
144
|
const appRoot = path.resolve(cliOptions.appRoot);
|
|
144
|
-
const resolvedBuildDir = await resolveConfiguredBuildDir(appRoot);
|
|
145
|
+
const resolvedBuildDir = normalizeResuxGeneratedPath(await resolveConfiguredBuildDir(appRoot));
|
|
145
146
|
const outDir = path.resolve(appRoot, resolvedBuildDir);
|
|
146
147
|
const buildOptions = {
|
|
147
148
|
traceBuild: cliOptions.traceBuild === true
|
|
@@ -1417,7 +1418,7 @@ async function ensureNitroBuildFiles(appRoot) {
|
|
|
1417
1418
|
if (!(await exists(path.join(appRoot, ".resux-nitro", "handler.ts")))) {
|
|
1418
1419
|
await writeDeploymentFile(appRoot, ".resux-nitro/handler.ts", createNitroHandler(), false);
|
|
1419
1420
|
}
|
|
1420
|
-
const resolvedBuildDir = await resolveConfiguredBuildDir(appRoot);
|
|
1421
|
+
const resolvedBuildDir = normalizeResuxGeneratedPath(await resolveConfiguredBuildDir(appRoot));
|
|
1421
1422
|
const outDir = path.resolve(appRoot, resolvedBuildDir);
|
|
1422
1423
|
await updateNitroConfigPrerenderRoutes(appRoot, outDir);
|
|
1423
1424
|
}
|