Skip to content

Commit

Permalink
chore(scripts): right file written in Dom-maps version (#5365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Dec 28, 2022
1 parent 573c478 commit 79b9213
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-instantsearch-dom-maps/scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
/* eslint-disable import/no-commonjs */

const fs = require('fs');
const path = require('path');

const package = require('../package.json');

package.peerDependencies['react-instantsearch-dom'] = package.version;

fs.writeFileSync('../package.json', JSON.stringify(package, null, 2));
fs.writeFileSync(
path.resolve(__dirname, '../package.json'),
JSON.stringify(package, null, 2)
);

0 comments on commit 79b9213

Please sign in to comment.