Browse Source

Format generated JSON (#3548)

Jason Crist 4 years ago
parent
commit
d4aa06eab5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      blank-canvas-blocks/build.js

+ 1 - 1
blank-canvas-blocks/build.js

@@ -11,7 +11,7 @@ chokidar.watch( childThemeJsonFileName ).on( 'all', ( event, path ) => {
 		parentThemeJson          = JSON.parse( parentThemeJsonFile );
 		parentThemeJson          = JSON.parse( parentThemeJsonFile );
 		childThemeJson           = JSON.parse( childThemeJsonFile );
 		childThemeJson           = JSON.parse( childThemeJsonFile );
 		mergedThemeJson          = merge( parentThemeJson, childThemeJson );
 		mergedThemeJson          = merge( parentThemeJson, childThemeJson );
-		fs.writeFile( '../' + childThemeName + '/experimental-theme.json', JSON.stringify( mergedThemeJson ), 'utf8', () => {
+		fs.writeFile( '../' + childThemeName + '/experimental-theme.json', JSON.stringify( mergedThemeJson, null, '\t' ), 'utf8', () => {
 			console.log( "\x1b[32m" + childThemeName + "/experimental-theme.json created successfully." );
 			console.log( "\x1b[32m" + childThemeName + "/experimental-theme.json created successfully." );
 		} )
 		} )