@effect-app/cli 2.0.1-beta.5 → 2.0.1-beta.7
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/CHANGELOG.md +12 -0
- package/dist/gist.d.ts +2 -2
- package/package.json +7 -7
- package/test/argv-patch.test.ts +8 -8
package/CHANGELOG.md
CHANGED
package/dist/gist.d.ts
CHANGED
|
@@ -380,12 +380,12 @@ declare class GHGistService extends GHGistService_base {
|
|
|
380
380
|
declare const GistHandler_base: ServiceMap.ServiceClass<GistHandler, "GistHandler", {
|
|
381
381
|
handler: (args_0: {
|
|
382
382
|
YAMLPath: string;
|
|
383
|
-
}) => Effect.Effect<undefined, import("effect/PlatformError").PlatformError | GistError |
|
|
383
|
+
}) => Effect.Effect<undefined, import("effect/PlatformError").PlatformError | GistError | GistCacheOfCompanyNotFound | GistYAMLError | Schema.SchemaError | Config.ConfigError, never>;
|
|
384
384
|
}> & {
|
|
385
385
|
readonly make: Effect.Effect<{
|
|
386
386
|
handler: (args_0: {
|
|
387
387
|
YAMLPath: string;
|
|
388
|
-
}) => Effect.Effect<undefined, import("effect/PlatformError").PlatformError | GistError |
|
|
388
|
+
}) => Effect.Effect<undefined, import("effect/PlatformError").PlatformError | GistError | GistCacheOfCompanyNotFound | GistYAMLError | Schema.SchemaError | Config.ConfigError, never>;
|
|
389
389
|
}, never, Path.Path | FileSystem.FileSystem | GHGistService>;
|
|
390
390
|
};
|
|
391
391
|
export declare class GistHandler extends GistHandler_base {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/cli",
|
|
3
|
-
"version": "2.0.1-beta.
|
|
3
|
+
"version": "2.0.1-beta.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
"effect-app-cli": "./bin.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@effect/platform-node": "^4.0.0-beta.
|
|
13
|
-
"effect": "^4.0.0-beta.
|
|
12
|
+
"@effect/platform-node": "^4.0.0-beta.43",
|
|
13
|
+
"effect": "^4.0.0-beta.43",
|
|
14
14
|
"js-yaml": "4.1.1",
|
|
15
15
|
"node-watch": "^0.7.4"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/js-yaml": "^4.0.9",
|
|
19
|
-
"@types/node": "25.
|
|
19
|
+
"@types/node": "25.5.0",
|
|
20
20
|
"json5": "^2.2.3",
|
|
21
21
|
"typescript": "~6.0.2",
|
|
22
|
-
"vitest": "^4.
|
|
23
|
-
"effect-app": "
|
|
24
|
-
"
|
|
22
|
+
"vitest": "^4.1.2",
|
|
23
|
+
"@effect-app/eslint-shared-config": "0.5.7-beta.4",
|
|
24
|
+
"effect-app": "4.0.0-beta.45"
|
|
25
25
|
},
|
|
26
26
|
"typesVersions": {
|
|
27
27
|
"*": {
|
package/test/argv-patch.test.ts
CHANGED
|
@@ -51,15 +51,15 @@ describe("patchArgvForWrapCommands", () => {
|
|
|
51
51
|
})
|
|
52
52
|
|
|
53
53
|
it("wrap args with --flag=\"quoted value\" syntax", () => {
|
|
54
|
-
const argv = make("index-multi", "tsc",
|
|
54
|
+
const argv = make("index-multi", "tsc", "--outDir=\"dist/build\"")
|
|
55
55
|
patchArgvForWrapCommands(argv)
|
|
56
|
-
expect(argv).toEqual(make("index-multi",
|
|
56
|
+
expect(argv).toEqual(make("index-multi", "tsc --outDir=\"dist/build\""))
|
|
57
57
|
})
|
|
58
58
|
|
|
59
59
|
it("wrap args with mixed quoted and unquoted flags", () => {
|
|
60
60
|
const argv = make("packagejson", "cmd", "--x=\"abc\"", "--y", "plain")
|
|
61
61
|
patchArgvForWrapCommands(argv)
|
|
62
|
-
expect(argv).toEqual(make("packagejson",
|
|
62
|
+
expect(argv).toEqual(make("packagejson", "cmd --x=\"abc\" --y plain"))
|
|
63
63
|
})
|
|
64
64
|
|
|
65
65
|
it("wrap args with single-quoted value in flag", () => {
|
|
@@ -69,9 +69,9 @@ describe("patchArgvForWrapCommands", () => {
|
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
it("wrap args with spaces inside quoted flag value", () => {
|
|
72
|
-
const argv = make("packagejson-packages", "cmd",
|
|
72
|
+
const argv = make("packagejson-packages", "cmd", "--msg=\"hello world\"", "--verbose")
|
|
73
73
|
patchArgvForWrapCommands(argv)
|
|
74
|
-
expect(argv).toEqual(make("packagejson-packages",
|
|
74
|
+
expect(argv).toEqual(make("packagejson-packages", "cmd --msg=\"hello world\" --verbose"))
|
|
75
75
|
})
|
|
76
76
|
})
|
|
77
77
|
|
|
@@ -148,7 +148,7 @@ describe("patchArgvForWrapCommands", () => {
|
|
|
148
148
|
})
|
|
149
149
|
})
|
|
150
150
|
|
|
151
|
-
describe("e2e: CLI spawns wrap command correctly", () => {
|
|
151
|
+
describe.skip("e2e: CLI spawns wrap command correctly", () => {
|
|
152
152
|
const binPath = path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), "../bin.js")
|
|
153
153
|
|
|
154
154
|
const run = (...args: Array<string>) =>
|
|
@@ -192,7 +192,7 @@ describe("e2e: CLI spawns wrap command correctly", () => {
|
|
|
192
192
|
})
|
|
193
193
|
|
|
194
194
|
it("packagejson spawns command with --flag=\"value\" syntax", () => {
|
|
195
|
-
const out = run("packagejson", "echo",
|
|
196
|
-
expect(out).toContain(
|
|
195
|
+
const out = run("packagejson", "echo", "--x=\"abc\"", "--y")
|
|
196
|
+
expect(out).toContain("Spawning child command: echo --x=\"abc\" --y")
|
|
197
197
|
})
|
|
198
198
|
})
|