pep 0.0.2 → 0.0.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 +4 -4
- data/lib/pep.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f3d53e0b104c9e469fa55e2e57874c4dcd1917452850bcc24454991a757228
|
4
|
+
data.tar.gz: 14d2556a2832f205533a5e4dd3bbeb4575d76b4ec3dee232306d1f665c08df38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf47d8929de8a637bb4597ee918521051d0203f605e692d4a261b857796d0a0ef1d206487d6bba97d181737f227a46d3b3daaec529ffdd46c386f8be11de068c
|
7
|
+
data.tar.gz: fcd260fd88440314968607d46e4784a142ce3b749a87f5928475b96a19c2d8303e965da0bea1dfc06ad491e40f8b027921c1e8a5ed1b476c08a13c2e4fee2b77
|
data/lib/pep.rb
CHANGED
@@ -19,7 +19,7 @@ module NeaHelpers
|
|
19
19
|
package_json = JSON.parse(File.read("package.json"))
|
20
20
|
package_json["scripts"][name] = script
|
21
21
|
File.open("package.json", "w+") do |file|
|
22
|
-
file.write(JSON.pretty_generate(package_json))
|
22
|
+
file.write(JSON.pretty_generate(package_json) + "\n")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -128,7 +128,7 @@ class ConfigureTypescript
|
|
128
128
|
tsconfig_json["compilerOptions"][name] = value
|
129
129
|
end
|
130
130
|
File.open("tsconfig.json", "w+") do |file|
|
131
|
-
file.write(JSON.pretty_generate(tsconfig_json))
|
131
|
+
file.write(JSON.pretty_generate(tsconfig_json) + "\n")
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
@@ -255,7 +255,7 @@ class SetSrcAsRootDirectory
|
|
255
255
|
package_json = JSON.parse(File.read("tsconfig.json"))
|
256
256
|
package_json["compilerOptions"]["baseUrl"] = "src"
|
257
257
|
File.open("tsconfig.json", "w+") do |file|
|
258
|
-
file.write(JSON.pretty_generate(package_json))
|
258
|
+
file.write(JSON.pretty_generate(package_json) + "\n")
|
259
259
|
end
|
260
260
|
end
|
261
261
|
|
@@ -288,7 +288,7 @@ class SetSrcAsRootDirectory
|
|
288
288
|
else
|
289
289
|
lines + [current_line]
|
290
290
|
end
|
291
|
-
end.join("\n")
|
291
|
+
end.join("\n") + "\n"
|
292
292
|
end
|
293
293
|
|
294
294
|
def new_babel_config_js_lines
|
@@ -316,7 +316,7 @@ class SetSrcAsRootDirectory
|
|
316
316
|
current_lines = File.read(".eslintrc.js").split("\n")
|
317
317
|
new_lines = (
|
318
318
|
current_lines[0..-2] + new_eslintrc_lines + [current_lines[-1]]
|
319
|
-
).join("\n")
|
319
|
+
).join("\n") + "\n"
|
320
320
|
end
|
321
321
|
|
322
322
|
def new_eslintrc_lines
|