jekyll-tsc 0.0.3 → 0.0.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: 184b75117bbd184b30e19a72389e5f48ca8faaa997017ab79e813897d3230461
4
- data.tar.gz: 374ce6d9292b11c029bbb19530bf14936a5ba6e379e0677deac86c7c960667a0
3
+ metadata.gz: e24ecd74447bb64ef0bfb9b642eeff3df931d4dbdddee50bb44ab74cccb9f420
4
+ data.tar.gz: 749e9256bf1f1f1724f34f795a2524288c6e7b18241dae87c978c9d70fe3389e
5
5
  SHA512:
6
- metadata.gz: 3e1cdea38df605bfed34269cdb7cf3e49f38d5c1ba4c971d40d02c883ae47c284e8075de9f90b6abf5e106b7745a81cc6644b6122227bad24e5d36f146f41cc2
7
- data.tar.gz: b6dd17b86e2f594e91359f8f554804bfdef5b7261d18e36443628425aaf2200ecf1fb4251fd267562fd4993699adca05fcdf7ea3cece4c63caf652dedbf7ae46
6
+ metadata.gz: 277e4646736525704038bd8edb25ecdf50eb77edd2b1bd2bb940129ba403f6b16a5308bc793656da0bc571172dead4d1b9d93e12e6fe2183e66f9dc04ef149a9
7
+ data.tar.gz: 26b06c6f7b59687ba75ad602116e445ce128b8b1dcf41c684ab075c8e568d6b269cb469116e037332273e3846aacda2060d79018531a150e99f4605ca8dd679f
@@ -10,11 +10,11 @@ module Jekyll
10
10
  #
11
11
  module Config
12
12
  def ts_extensions
13
- @ts_extensions ||= Array(config['extensions']) || %w[.ts .tsx]
13
+ @ts_extensions ||= Array(config['extensions'] || %w[.ts .tsx])
14
14
  end
15
15
 
16
16
  def copy_extensions
17
- @copy_extensions ||= Array(config['copy_ext']) || []
17
+ @copy_extensions ||= Array(config['copy_ext'])
18
18
  end
19
19
 
20
20
  def temp_dir
@@ -22,7 +22,7 @@ module Jekyll
22
22
  end
23
23
 
24
24
  def tsc_command
25
- @tsc_command ||= Array(config['command']) || ['tsc']
25
+ @tsc_command ||= Array(config['command'] || ['tsc'])
26
26
  end
27
27
 
28
28
  def cache_enabled?
@@ -99,7 +99,8 @@ module Jekyll
99
99
  compile_output = IO.popen(command, &:read).chomp # spawn a cmd & read process output.
100
100
 
101
101
  unless $?.success?
102
- raise SyntaxError, "typescript failed to convert: #{page.path}\n" + compile_output
102
+ puts compile_output
103
+ raise SyntaxError, "typescript failed to convert: #{page.path}\n"
103
104
  end
104
105
 
105
106
  page.output = File.read(page_to_output_path(page))
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Typescript
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohsin Kaleem