Skip to content

Commit c91d15e

Browse files
committed
build: add trailing newlines in generated JSON files
1 parent fabc251 commit c91d15e

File tree

18 files changed

+18
-18
lines changed

18 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/error/tools/id2pkg/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function main() {
9191
fopts = {
9292
'encoding': 'utf8'
9393
};
94-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
94+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
9595

9696
debug( 'Writing to CSV file...' );
9797
fopts = {

lib/node_modules/@stdlib/error/tools/pkg2id/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function main() {
144144
fopts = {
145145
'encoding': 'utf8'
146146
};
147-
writeFile( OUTPUT_JSON, JSON.stringify( data ), fopts );
147+
writeFile( OUTPUT_JSON, JSON.stringify( data )+'\n', fopts );
148148

149149
debug( 'Writing to CSV file...' );
150150
fopts = {

lib/node_modules/@stdlib/namespace/alias2pkg/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function main() {
6464
fopts = {
6565
'encoding': 'utf8'
6666
};
67-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
67+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
6868

6969
debug( 'Writing to CSV file...' );
7070
fopts = {

lib/node_modules/@stdlib/namespace/alias2related/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function main() {
7979
fopts = {
8080
'encoding': 'utf8'
8181
};
82-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
82+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
8383

8484
debug( 'Writing to CSV file...' );
8585
fopts = {

lib/node_modules/@stdlib/namespace/alias2standalone/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function main() {
7777
fopts = {
7878
'encoding': 'utf8'
7979
};
80-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
80+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
8181

8282
debug( 'Writing to CSV file...' );
8383
fopts = {

lib/node_modules/@stdlib/namespace/aliases/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function main() {
6161
fopts = {
6262
'encoding': 'utf8'
6363
};
64-
writeFile( OUTPUT_JSON, JSON.stringify( list ), fopts );
64+
writeFile( OUTPUT_JSON, JSON.stringify( list )+'\n', fopts );
6565

6666
debug( 'Writing list of namespace aliases to text file...' );
6767
fopts = {

lib/node_modules/@stdlib/namespace/pkg2alias/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function main() {
6464
fopts = {
6565
'encoding': 'utf8'
6666
};
67-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
67+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
6868

6969
debug( 'Writing to CSV file...' );
7070
fopts = {

lib/node_modules/@stdlib/namespace/pkg2related/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function main() {
8181
fopts = {
8282
'encoding': 'utf8'
8383
};
84-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
84+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
8585

8686
debug( 'Writing to CSV file...' );
8787
fopts = {

lib/node_modules/@stdlib/namespace/pkg2standalone/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function main() {
7979
fopts = {
8080
'encoding': 'utf8'
8181
};
82-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
82+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
8383

8484
debug( 'Writing to CSV file...' );
8585
fopts = {

lib/node_modules/@stdlib/namespace/standalone2pkg/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function main() {
7979
fopts = {
8080
'encoding': 'utf8'
8181
};
82-
writeFile( OUTPUT_JSON, JSON.stringify( json ), fopts );
82+
writeFile( OUTPUT_JSON, JSON.stringify( json )+'\n', fopts );
8383

8484
debug( 'Writing to CSV file...' );
8585
fopts = {

0 commit comments

Comments
 (0)