@effect-app/cli 2.0.1-beta.5 → 2.0.1-beta.6

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @effect-app/cli
2
2
 
3
+ ## 2.0.1-beta.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a37aa38: Update to effect beta 43
8
+
3
9
  ## 2.0.1-beta.5
4
10
 
5
11
  ### Patch Changes
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 | Config.ConfigError | GistYAMLError | Schema.SchemaError | GistCacheOfCompanyNotFound, never>;
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 | Config.ConfigError | GistYAMLError | Schema.SchemaError | GistCacheOfCompanyNotFound, never>;
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.5",
3
+ "version": "2.0.1-beta.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,8 +9,8 @@
9
9
  "effect-app-cli": "./bin.js"
10
10
  },
11
11
  "dependencies": {
12
- "@effect/platform-node": "^4.0.0-beta.40",
13
- "effect": "^4.0.0-beta.40",
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
  },
@@ -20,8 +20,8 @@
20
20
  "json5": "^2.2.3",
21
21
  "typescript": "~6.0.2",
22
22
  "vitest": "^4.0.18",
23
- "effect-app": "4.0.0-beta.34",
24
- "@effect-app/eslint-shared-config": "0.5.7-beta.2"
23
+ "@effect-app/eslint-shared-config": "0.5.7-beta.3",
24
+ "effect-app": "4.0.0-beta.44"
25
25
  },
26
26
  "typesVersions": {
27
27
  "*": {
@@ -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", '--outDir="dist/build"')
54
+ const argv = make("index-multi", "tsc", "--outDir=\"dist/build\"")
55
55
  patchArgvForWrapCommands(argv)
56
- expect(argv).toEqual(make("index-multi", 'tsc --outDir="dist/build"'))
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", 'cmd --x="abc" --y plain'))
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", '--msg="hello world"', "--verbose")
72
+ const argv = make("packagejson-packages", "cmd", "--msg=\"hello world\"", "--verbose")
73
73
  patchArgvForWrapCommands(argv)
74
- expect(argv).toEqual(make("packagejson-packages", 'cmd --msg="hello world" --verbose'))
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", '--x="abc"', "--y")
196
- expect(out).toContain('Spawning child command: echo --x="abc" --y')
195
+ const out = run("packagejson", "echo", "--x=\"abc\"", "--y")
196
+ expect(out).toContain("Spawning child command: echo --x=\"abc\" --y")
197
197
  })
198
198
  })