Skip to content

Commit

Permalink
Merge pull request #7089 from tech-conferences/typescript-valid-locat…
Browse files Browse the repository at this point in the history
…ions

Fix updateValidLocations
  • Loading branch information
cgrail authored Jul 30, 2024
2 parents 4a48c67 + b8d4b4b commit ff109be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"start": "tsx --watch scripts/conferences.test.ts",
"test": "npm run format && tsx scripts/conferences.test.ts",
"updateValidLocations": "tsx ./scripts/updateValidLocations.ts",
"reorder-confs": "tsx ./scripts/reorderConferencesByDate.ts",
"updateValidLocations": "tsx ./scripts/updateValidLocations.ts && npm run format",
"reorder-confs": "tsx ./scripts/reorderConferencesByDate.ts && npm run format",
"format": "prettier scripts --write",
"lint": "prettier scripts --check"
},
Expand Down
3 changes: 1 addition & 2 deletions scripts/config/validLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export const validLocations = {
Scotland: ['Edinburgh', 'Glasgow', 'Perthshire'],
Serbia: ['Belgrade', 'Novi Sad'],
Singapore: ['Singapore'],
Slovakia: ['Bratislava', 'Jasna', 'Liptovský Mikuláš', 'Nitra', 'Tatras'],
Slovakia: ['Bratislava', 'Jasna', 'Nitra', 'Tatras'],
Slovenia: ['Laško', 'Ljubljana', 'Portorož'],
'South Africa': ['Cape Town', 'Johannesburg', 'Pretoria'],
'South Korea': ['Busan', 'Incheon', 'Pohang', 'Seoul', 'Suwon'],
Expand Down Expand Up @@ -375,7 +375,6 @@ export const validLocations = {
'Milwaukee, WI',
'Minneapolis, MN',
'Modesto, CA',
'Morrisville, NC',
'Mountain View, CA',
'Nashville, TN',
'New Haven, CT',
Expand Down
2 changes: 1 addition & 1 deletion scripts/updateValidLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const locations: { [key: string]: string[] } = {};
}
});
console.log(JSON.stringify(sortedLocations, null, ' '));
fs.writeFile('config/validLocations.js', 'export const validLocations = ' + JSON.stringify(sortedLocations, null, 2), err => {
fs.writeFile('scripts/config/validLocations.ts', 'export const validLocations = ' + JSON.stringify(sortedLocations, null, 2), err => {
if (err) {
console.error(err);
}
Expand Down

0 comments on commit ff109be

Please sign in to comment.