@arkstack/console 0.3.2 → 0.3.4
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/dist/index.js +5 -4
- package/dist/prepare.js +5 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as ArkstackConsoleApp } from "./app-DtecNuLP.js";
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
|
-
import {
|
|
4
|
+
import { loadPrototypes, outputDir } from "@arkstack/common";
|
|
5
|
+
import path, { join } from "node:path";
|
|
5
6
|
import { MakeResource } from "resora";
|
|
6
7
|
import { realpathSync } from "node:fs";
|
|
7
8
|
import { Command, Kernel } from "@h3ravel/musket";
|
|
@@ -10,7 +11,6 @@ import { resolve } from "path";
|
|
|
10
11
|
import { writeFile } from "fs/promises";
|
|
11
12
|
import { CliApp as CliApp$1, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateRollbackCommand, MigrationHistoryCommand, ModelsSyncCommand, SeedCommand } from "arkormx";
|
|
12
13
|
import chalk from "chalk";
|
|
13
|
-
import { loadPrototypes } from "@arkstack/common";
|
|
14
14
|
|
|
15
15
|
//#region dist/commands/BuildCommand.js
|
|
16
16
|
var BuildCommand = class extends Command {
|
|
@@ -364,6 +364,7 @@ const loadCoreApp = async () => {
|
|
|
364
364
|
const runConsoleKernel = async (options = {}) => {
|
|
365
365
|
loadPrototypes();
|
|
366
366
|
const app = await loadCoreApp();
|
|
367
|
+
const dist = path.relative(process.cwd(), outputDir());
|
|
367
368
|
const stubsDir = process.env.ARKSTACK_STUBS_DIR;
|
|
368
369
|
globalThis.app = () => app;
|
|
369
370
|
await Kernel.init(await new ArkstackConsoleApp(app, { stubsDir }).loadConfig(), {
|
|
@@ -391,8 +392,8 @@ const runConsoleKernel = async (options = {}) => {
|
|
|
391
392
|
join(process.cwd(), "src", "app", "console", "commands/*.js"),
|
|
392
393
|
join(process.cwd(), "src", "app/console/commands/*.js"),
|
|
393
394
|
join(process.cwd(), "src", "app/console/commands/*.mjs"),
|
|
394
|
-
join(process.cwd(),
|
|
395
|
-
join(process.cwd(),
|
|
395
|
+
join(process.cwd(), dist, "app/console/commands/*.js"),
|
|
396
|
+
join(process.cwd(), dist, "app/console/commands/*.mjs"),
|
|
396
397
|
join(process.cwd(), "node_modules", "@arkstack/*", "dist", "commands", "*.js")
|
|
397
398
|
],
|
|
398
399
|
exceptionHandler(exception) {
|
package/dist/prepare.js
CHANGED
|
@@ -9,14 +9,17 @@ const child = spawn(process.platform === "win32" ? "pnpm.cmd" : "pnpm", [
|
|
|
9
9
|
], {
|
|
10
10
|
cwd: process.cwd(),
|
|
11
11
|
stdio: "inherit",
|
|
12
|
-
env: Object.assign({}, process.env, {
|
|
12
|
+
env: Object.assign({}, process.env, {
|
|
13
|
+
NODE_ENV: process.env.NODE_ENV || "development",
|
|
14
|
+
CLI_BUILD: "true"
|
|
15
|
+
})
|
|
13
16
|
});
|
|
14
17
|
child.on("error", (error) => {
|
|
15
18
|
throw error;
|
|
16
19
|
});
|
|
17
20
|
child.on("exit", (code) => {
|
|
18
21
|
if (code === 0 || code === null) {
|
|
19
|
-
console.log(chalk.green(
|
|
22
|
+
console.log(chalk.green(`Arkstak is ready for ${process.env.NODE_ENV === "production" ? "deployment" : process.env.NODE_ENV}!`));
|
|
20
23
|
return;
|
|
21
24
|
}
|
|
22
25
|
throw new Error(`tsdown exited with code ${code}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Console package for Arkstack providing console-specific implementations of core Arkstack features such as routing, middleware, and database integration.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@h3ravel/musket": "^0.10.1",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"resora": "^0.2.14",
|
|
52
|
-
"@arkstack/common": "^0.3.
|
|
53
|
-
"@arkstack/contract": "^0.3.
|
|
52
|
+
"@arkstack/common": "^0.3.4",
|
|
53
|
+
"@arkstack/contract": "^0.3.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|