@tricoteuses/senat 2.5.4 → 2.5.5

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.
@@ -192,7 +192,9 @@ async function convertDatasetSens(dataDir) {
192
192
  console.log(`Converting ${organisme.code} file…`);
193
193
  }
194
194
  const organismeFileName = `${organisme.code}.json`;
195
- fs.writeJSONSync(path.join(organismesReorganizedDir, organismeFileName), organisme, { spaces: 2 });
195
+ const organismeDir = path.join(organismesReorganizedDir, organisme.type_code);
196
+ fs.ensureDirSync(organismeDir);
197
+ fs.writeJSONSync(path.join(organismeDir, organismeFileName), organisme, { spaces: 2 });
196
198
  }
197
199
  }
198
200
  convertData()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/senat",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Handle French Sénat's open data",
5
5
  "keywords": [
6
6
  "France",