Skip to content

Commit

Permalink
fix: insert none default theme at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
jometzner committed Aug 22, 2021
1 parent 96a40c2 commit e2d7639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schematics/customization/add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const packageJson = parse(fs.readFileSync('./package.json', { encoding: 'UTF-8'
if (setDefault) {
packageJson.config['active-themes'] = theme;
} else {
packageJson.config['active-themes'] = `${theme},${packageJson.config['active-themes']}`;
packageJson.config['active-themes'] = `${packageJson.config['active-themes']},${theme}`;
}
fs.writeFileSync('./package.json', stringify(packageJson, null, 2));
execSync('npx prettier --write package.json');
Expand Down

0 comments on commit e2d7639

Please sign in to comment.