foobara-typescript-remote-command-generator 1.1.1 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 265c685d5ad8b7cf3aeea1b469a82769efe696b03344ccef3953d99876bd8ce9
4
- data.tar.gz: ddbc74ac856ac6b1b24a23ff562a274aaa5f0f3ab487e2e4b30b6ad0b4f95cdd
3
+ metadata.gz: 51cebebceac9000f074c9999aa80695848d7e48518e3df2d3eed5d157643dd2b
4
+ data.tar.gz: 68f1941caadecded3b50655ffa57b08f7da76b6f9fb32a53f160fbe7dd0a5452
5
5
  SHA512:
6
- metadata.gz: 1ed2865200374f3684b7862a105f3fdfd3c7a92f161ae924f27e7a6159402a672eddb526a05de5517f92ae49fa520c174710fdf0a20a2f64e1ccf408d3256d29
7
- data.tar.gz: 8681e6eb77cea62297a3c0366aa6a2278fc28616b4e7495c4ac0ee6ed6a503291ec2e8df93615e58b2a4e480ce449d90775188d55a9ead47833ee2dc782b0285
6
+ metadata.gz: a0bf3da27127bf8a29fa4ae53e9365379f071059455cd151611acaf34b2740749e13f16a7ee258c2ed3984de8b7fbeef23a2a88e1ae37c50254cea45d48bb7ba
7
+ data.tar.gz: 167351266404f8957ef204ca7b203641aa8d0c69ba3fa401e9a6a4782ad0896d856159e076f5a2305c830ba0778e1b0d7a05c05c670103541cf518eb7d09a0e4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.1.3] - 2025-10-02
2
+
3
+
4
+
5
+ ## [1.1.2] - 2025-09-27
6
+
7
+ - Fix busted Atom/Aggregate entity import generation
8
+
1
9
  ## [1.1.1] - 2025-08-25
2
10
 
3
11
  - Improve location of generated types and their errors
@@ -43,6 +43,10 @@ module Foobara
43
43
  *prefix, name = scoped_full_path
44
44
  [*prefix, "#{name}Aggregate"]
45
45
  end
46
+
47
+ def import_destructure
48
+ "{ #{scoped_short_name}Aggregate }"
49
+ end
46
50
  end
47
51
  end
48
52
  end
@@ -41,6 +41,10 @@ module Foobara
41
41
  *prefix, name = scoped_full_path
42
42
  [*prefix, "#{name}Atom"]
43
43
  end
44
+
45
+ def import_destructure
46
+ "{ #{scoped_short_name}Atom }"
47
+ end
44
48
  end
45
49
  end
46
50
  end
@@ -77,8 +77,19 @@ module Foobara
77
77
 
78
78
  def warn_about_adding_setup_to_index
79
79
  if paths_to_source_code.key?("setup.ts")
80
- warn "WARNING: you should add the following to src/index.ts:\n\n" \
81
- "import './domains/setup'"
80
+ index_tsx_path = "#{output_directory}/index.tsx"
81
+
82
+ if File.exist?(index_tsx_path)
83
+ unless File.read(index_tsx_path) =~ /import.*domains\/setup/
84
+ warn "WARNING: you should add the following to src/index.tsx:\n\n" \
85
+ "import './domains/setup'"
86
+ end
87
+ else
88
+ # :nocov:
89
+ warn "WARNING: Make sure you add the following somewhere:\n\n" \
90
+ "import './domains/setup'"
91
+ # :nocov:
92
+ end
82
93
  end
83
94
  end
84
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-typescript-remote-command-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.4
18
+ version: 0.1.14
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 0.1.4
28
+ version: 0.1.14
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: 2.0.0