foobara-typescript-remote-command-generator 1.1.2 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0438fe657fab016fa3afdf25448e54fe00b5dde8dd019bac8dc7fcbe498c999
4
- data.tar.gz: 17e37d6e0b59083d9fdc4408fd7006bd68eb2fef44c87f3cdbe2694b982be3bb
3
+ metadata.gz: 5730e34976cb1769563181451bbde187218e84e4abbf6d48af05951dbab07b61
4
+ data.tar.gz: b97e1b7a5e7ccc4c136bc722f81ca694b40f954779b6ad1c6e980a2d2d10a8aa
5
5
  SHA512:
6
- metadata.gz: 671c4948a97424e330c1104bd4c9cdc238aecc43c639ddeef9b436d1c496df60871b4b2c401a39a8824575ebaa0546af662966d41db97022aa18cc9498a4c754
7
- data.tar.gz: 31adaca051c4a4e1ab642ef0877f9c4e1c4d5cc162c230d4bc668721b6221e9a5a19c2e55059c926b4dc218ca2bd6b78b93afb16f287139b2f9c673046346dab
6
+ metadata.gz: 67632d61f05b1a7613f40c22efbc90e77b828e3cbe89e9c1adaef4ff3627f645c3465714ddf9edb8e86853d762f0b5188ac7d6794d9eb0b6fc2d22aaf43c204c
7
+ data.tar.gz: 513ad99446b01309740aba890c8faa53cb4047becfbc5a81a466fd536b7543c8e2c3a8fcd926a835b0f5cb9f6801e29c78680da039f6237ad57a06fbb70a0751
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.1.4] - 2025-10-02
2
+
3
+ - Don't give warning about importing domain/setup.ts if it already has been added to index.tsx
4
+
1
5
  ## [1.1.2] - 2025-09-27
2
6
 
3
7
  - Fix busted Atom/Aggregate entity import generation
@@ -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.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi