@bionicjs/core 0.1.0 → 0.2.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/README.md +5 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -5
- package/package.json +1 -7
- package/src/index.ts +0 -1
- package/bin/bionicjs.js +0 -20
package/README.md
CHANGED
|
@@ -13,7 +13,11 @@ intelligence (AI and background jobs).
|
|
|
13
13
|
- `BionicJSRouter` — mounts the app's filesystem routes
|
|
14
14
|
- `@bionicjs/core/server` — generated server exports (`auth`, `db`, `ai`, `jobs`)
|
|
15
15
|
- `@bionicjs/core/router` — route parser, generator, and layout adapter
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
The `bionicjs dev` CLI and `runDevServer` live in
|
|
18
|
+
[`@bionicjs/dev`](https://www.npmjs.com/package/@bionicjs/dev), which depends on
|
|
19
|
+
this package. Core itself has no workspace dependencies, keeping the package
|
|
20
|
+
graph acyclic.
|
|
17
21
|
|
|
18
22
|
## Config
|
|
19
23
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -35,9 +35,6 @@ var api = new Proxy({}, {
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
// src/index.ts
|
|
39
|
-
import { runDevServer } from "@bionicjs/dev";
|
|
40
|
-
|
|
41
38
|
// src/config.ts
|
|
42
39
|
function defineConfig(config) {
|
|
43
40
|
return config;
|
|
@@ -83,6 +80,5 @@ export {
|
|
|
83
80
|
createAuthPlugin,
|
|
84
81
|
createDatabasePlugin,
|
|
85
82
|
createJobsPlugin,
|
|
86
|
-
defineConfig
|
|
87
|
-
runDevServer
|
|
83
|
+
defineConfig
|
|
88
84
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bionicjs/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The full-stack React framework for the AI era: React UI and Python intelligence in one codebase",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,19 +27,13 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
29
|
"src",
|
|
30
|
-
"bin",
|
|
31
30
|
"README.md",
|
|
32
31
|
"!src/**/*.test.ts"
|
|
33
32
|
],
|
|
34
33
|
"imports": {
|
|
35
34
|
"#bionicjs-api": "./src/api-client.ts"
|
|
36
35
|
},
|
|
37
|
-
"bin": {
|
|
38
|
-
"bionicjs": "./bin/bionicjs.js"
|
|
39
|
-
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@bionicjs/dev": "0.1.0",
|
|
42
|
-
"jiti": "^2.7.0",
|
|
43
37
|
"react-router": "^7"
|
|
44
38
|
},
|
|
45
39
|
"peerDependencies": {
|
package/src/index.ts
CHANGED
package/bin/bionicjs.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { createJiti } from "jiti";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
6
|
-
const jiti = createJiti(fileURLToPath(import.meta.url));
|
|
7
|
-
|
|
8
|
-
const command = process.argv[2];
|
|
9
|
-
|
|
10
|
-
if (command === "dev" || !command) {
|
|
11
|
-
const { runDevServer } = await jiti.import("@bionicjs/dev");
|
|
12
|
-
runDevServer().catch((err) => {
|
|
13
|
-
console.error("Error starting BionicJS dev server:", err);
|
|
14
|
-
process.exit(1);
|
|
15
|
-
});
|
|
16
|
-
} else {
|
|
17
|
-
console.log(`Unknown command: ${command}`);
|
|
18
|
-
console.log("Usage: bionicjs dev");
|
|
19
|
-
process.exit(1);
|
|
20
|
-
}
|