@cerema/cadriciel 1.4.31 → 1.4.33

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.
@@ -73,7 +73,11 @@ module.exports = (args) => {
73
73
  },
74
74
  start: () => {
75
75
  var spinner = ora('📥 Téléchargement du patch...').start();
76
- const info = require(`${process.cwd()}/.cadriciel/version.json`);
76
+ try {
77
+ var info = require(`${process.cwd()}/.cadriciel/version.json`);
78
+ } catch (e) {
79
+ var info = require(`${process.cwd()}/.cadriciel/bin/version.json`);
80
+ }
77
81
  const title = 'cadriciel-' + info.name;
78
82
  download(title, async () => {
79
83
  spinner.succeed(chalk.bold('Téléchargement OK.'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.4.31",
3
+ "version": "1.4.33",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",