@livestore/cli 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.2 → 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.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/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +12 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -10
- package/dist/cli.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -6
- package/src/bin.ts +19 -0
- package/src/cli.ts +2 -17
- package/.claude/settings.local.json +0 -12
- package/tsconfig.json +0 -10
package/package.json
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/cli",
|
|
3
|
-
"version": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.
|
|
3
|
+
"version": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.4",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"files": [
|
|
7
|
+
"package.json",
|
|
8
|
+
"src",
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
5
11
|
"exports": {
|
|
6
12
|
".": "./dist/mod.js"
|
|
7
13
|
},
|
|
8
14
|
"bin": {
|
|
9
|
-
"livestore": "./dist/
|
|
15
|
+
"livestore": "./dist/bin.js"
|
|
10
16
|
},
|
|
11
17
|
"publishConfig": {
|
|
12
18
|
"access": "public"
|
|
13
19
|
},
|
|
14
20
|
"dependencies": {
|
|
15
21
|
"@effect/ai-openai": "^0.29.0",
|
|
16
|
-
"@livestore/
|
|
17
|
-
"@livestore/
|
|
18
|
-
"@livestore/utils-dev": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.
|
|
22
|
+
"@livestore/utils": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.4",
|
|
23
|
+
"@livestore/common": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.4",
|
|
24
|
+
"@livestore/utils-dev": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.4"
|
|
19
25
|
},
|
|
20
26
|
"devDependencies": {
|
|
21
27
|
"@types/node": "24.2.0",
|
|
@@ -23,6 +29,6 @@
|
|
|
23
29
|
},
|
|
24
30
|
"scripts": {
|
|
25
31
|
"build": "tsc",
|
|
26
|
-
"dev": "bun src/
|
|
32
|
+
"dev": "bun src/bin.ts"
|
|
27
33
|
}
|
|
28
34
|
}
|
package/src/bin.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { liveStoreVersion } from '@livestore/common'
|
|
4
|
+
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect'
|
|
5
|
+
import { Cli, PlatformNode } from '@livestore/utils/node'
|
|
6
|
+
import { command } from './cli.ts'
|
|
7
|
+
|
|
8
|
+
const cli = Cli.Command.run(command, {
|
|
9
|
+
name: 'livestore',
|
|
10
|
+
version: liveStoreVersion,
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const layer = Layer.mergeAll(
|
|
14
|
+
PlatformNode.NodeContext.layer,
|
|
15
|
+
FetchHttpClient.layer,
|
|
16
|
+
Logger.minimumLogLevel(LogLevel.Info),
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain)
|
package/src/cli.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { liveStoreVersion } from '@livestore/common'
|
|
4
|
-
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect'
|
|
5
|
-
import { Cli, PlatformNode } from '@livestore/utils/node'
|
|
1
|
+
import { Effect } from '@livestore/utils/effect'
|
|
2
|
+
import { Cli } from '@livestore/utils/node'
|
|
6
3
|
import { mcpCommand } from './commands/mcp.ts'
|
|
7
4
|
import { newProjectCommand } from './commands/new-project.ts'
|
|
8
5
|
|
|
@@ -21,16 +18,4 @@ export const command = Cli.Command.make('livestore', {
|
|
|
21
18
|
}).pipe(Cli.Command.withSubcommands([helloCommand, mcpCommand, newProjectCommand]))
|
|
22
19
|
|
|
23
20
|
if (import.meta.main) {
|
|
24
|
-
const cli = Cli.Command.run(command, {
|
|
25
|
-
name: 'livestore',
|
|
26
|
-
version: liveStoreVersion,
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const layer = Layer.mergeAll(
|
|
30
|
-
PlatformNode.NodeContext.layer,
|
|
31
|
-
FetchHttpClient.layer,
|
|
32
|
-
Logger.minimumLogLevel(LogLevel.Info),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain)
|
|
36
21
|
}
|
package/tsconfig.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo",
|
|
6
|
-
"rootDir": "src"
|
|
7
|
-
},
|
|
8
|
-
"include": ["src/**/*"],
|
|
9
|
-
"references": [{ "path": "../common" }, { "path": "../utils" }, { "path": "../utils-dev" }]
|
|
10
|
-
}
|