@objectstack/cli 2.0.2 → 2.0.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.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +14 -0
- package/dist/bin.js +7 -0
- package/dist/index.js +7 -0
- package/package.json +9 -9
- package/src/commands/serve.ts +11 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/cli@2.0.
|
|
2
|
+
> @objectstack/cli@2.0.3 build /home/runner/work/spec/spec/packages/cli
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
[34mCLI[39m Building entry: src/
|
|
5
|
+
[34mCLI[39m Building entry: src/bin.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/spec/spec/packages/cli/tsup.config.ts
|
|
9
|
-
[34mCLI[39m Building entry: src/
|
|
9
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
10
10
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
11
11
|
[34mCLI[39m tsup v8.5.1
|
|
12
12
|
[34mCLI[39m Using tsup config: /home/runner/work/spec/spec/packages/cli/tsup.config.ts
|
|
13
13
|
[34mCLI[39m Target: es2022
|
|
14
|
-
[34mESM[39m Build start
|
|
15
14
|
[34mCLI[39m Target: es2022
|
|
15
|
+
[34mESM[39m Build start
|
|
16
16
|
[34mCLI[39m Cleaning output folder
|
|
17
17
|
[34mESM[39m Build start
|
|
18
|
-
[32mESM[39m [1mdist/
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
20
|
-
[32mESM[39m [1mdist/
|
|
21
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m [1mdist/bin.js [22m[32m61.55 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 148ms
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m58.94 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 164ms
|
|
22
22
|
[34mDTS[39m Build start
|
|
23
|
-
[32mDTS[39m ⚡️ Build success in
|
|
23
|
+
[32mDTS[39m ⚡️ Build success in 7756ms
|
|
24
24
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.93 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @objectstack/cli
|
|
2
2
|
|
|
3
|
+
## 2.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Patch release for maintenance and stability improvements
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @objectstack/spec@2.0.3
|
|
10
|
+
- @objectstack/core@2.0.3
|
|
11
|
+
- @objectstack/objectql@2.0.3
|
|
12
|
+
- @objectstack/runtime@2.0.3
|
|
13
|
+
- @objectstack/rest@2.0.3
|
|
14
|
+
- @objectstack/driver-memory@2.0.3
|
|
15
|
+
- @objectstack/plugin-hono-server@2.0.3
|
|
16
|
+
|
|
3
17
|
## 2.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bin.js
CHANGED
|
@@ -986,6 +986,13 @@ var serveCommand = new Command5("serve").description("Start ObjectStack server w
|
|
|
986
986
|
throw new Error(`Failed to import plugin '${plugin}': ${importError.message}`);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
+
if (pluginToLoad && typeof pluginToLoad === "object" && !pluginToLoad.init) {
|
|
990
|
+
try {
|
|
991
|
+
const { AppPlugin } = await import("@objectstack/runtime");
|
|
992
|
+
pluginToLoad = new AppPlugin(pluginToLoad);
|
|
993
|
+
} catch (e) {
|
|
994
|
+
}
|
|
995
|
+
}
|
|
989
996
|
await kernel.use(pluginToLoad);
|
|
990
997
|
const pluginName = plugin.name || plugin.constructor?.name || "unnamed";
|
|
991
998
|
trackPlugin(pluginName);
|
package/dist/index.js
CHANGED
|
@@ -1538,6 +1538,13 @@ var serveCommand = new Command8("serve").description("Start ObjectStack server w
|
|
|
1538
1538
|
throw new Error(`Failed to import plugin '${plugin}': ${importError.message}`);
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
+
if (pluginToLoad && typeof pluginToLoad === "object" && !pluginToLoad.init) {
|
|
1542
|
+
try {
|
|
1543
|
+
const { AppPlugin } = await import("@objectstack/runtime");
|
|
1544
|
+
pluginToLoad = new AppPlugin(pluginToLoad);
|
|
1545
|
+
} catch (e) {
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1541
1548
|
await kernel.use(pluginToLoad);
|
|
1542
1549
|
const pluginName = plugin.name || plugin.constructor?.name || "unnamed";
|
|
1543
1550
|
trackPlugin(pluginName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Command Line Interface for ObjectStack Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"commander": "^14.0.3",
|
|
23
23
|
"tsx": "^4.7.1",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@objectstack/core": "2.0.
|
|
26
|
-
"@objectstack/driver-memory": "^2.0.
|
|
27
|
-
"@objectstack/objectql": "^2.0.
|
|
28
|
-
"@objectstack/plugin-hono-server": "2.0.
|
|
29
|
-
"@objectstack/rest": "2.0.
|
|
30
|
-
"@objectstack/runtime": "^2.0.
|
|
31
|
-
"@objectstack/spec": "2.0.
|
|
25
|
+
"@objectstack/core": "2.0.3",
|
|
26
|
+
"@objectstack/driver-memory": "^2.0.3",
|
|
27
|
+
"@objectstack/objectql": "^2.0.3",
|
|
28
|
+
"@objectstack/plugin-hono-server": "2.0.3",
|
|
29
|
+
"@objectstack/rest": "2.0.3",
|
|
30
|
+
"@objectstack/runtime": "^2.0.3",
|
|
31
|
+
"@objectstack/spec": "2.0.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@objectstack/core": "2.0.
|
|
34
|
+
"@objectstack/core": "2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^25.2.2",
|
package/src/commands/serve.ts
CHANGED
|
@@ -207,6 +207,17 @@ export const serveCommand = new Command('serve')
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
// Wrap raw config objects (no init/start) into AppPlugin
|
|
211
|
+
// This handles plugins defined as plain { name, objects, ... } bundles
|
|
212
|
+
if (pluginToLoad && typeof pluginToLoad === 'object' && !pluginToLoad.init) {
|
|
213
|
+
try {
|
|
214
|
+
const { AppPlugin } = await import('@objectstack/runtime');
|
|
215
|
+
pluginToLoad = new AppPlugin(pluginToLoad);
|
|
216
|
+
} catch (e: any) {
|
|
217
|
+
// Fall through to kernel.use which will report the error
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
210
221
|
await kernel.use(pluginToLoad);
|
|
211
222
|
const pluginName = plugin.name || plugin.constructor?.name || 'unnamed';
|
|
212
223
|
trackPlugin(pluginName);
|