Skip to content

Commit

Permalink
Update maintenance file snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Nov 4, 2024
1 parent d7b4155 commit bdaa693
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,5 @@ function checkConstraint(exampleConfiguration, depName, constraint, version) {
* @param {string} version
*/
function splitVersion(version) {
return version
.split('.')
.map((n) => Number.parseInt(n, 10));
return version.split('.').map((n) => Number.parseInt(n, 10));
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ function copyPreviewToExample(pathToPreviewFolder) {
fs.copySync(pathToPreviewFolder, pathToExampleFolder, {overwrite: true});

const pathToElmJson = path.resolve(pathToExampleFolder, 'elm.json');
const elmJson =
/** @type {ApplicationElmJson} */ (
fs.readJsonSync(pathToElmJson)
);
const elmJson = /** @type {ApplicationElmJson} */ (
fs.readJsonSync(pathToElmJson)
);

// Remove the source directory pointing to the package's src/
elmJson['source-directories'] = elmJson['source-directories'].filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,5 @@ function checkConstraint(exampleConfiguration, depName, constraint, version) {
* @param {string} version
*/
function splitVersion(version) {
return version
.split('.')
.map((n) => Number.parseInt(n, 10));
return version.split('.').map((n) => Number.parseInt(n, 10));
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ function copyPreviewToExample(pathToPreviewFolder) {
fs.copySync(pathToPreviewFolder, pathToExampleFolder, {overwrite: true});

const pathToElmJson = path.resolve(pathToExampleFolder, 'elm.json');
const elmJson =
/** @type {ApplicationElmJson} */ (
fs.readJsonSync(pathToElmJson)
);
const elmJson = /** @type {ApplicationElmJson} */ (
fs.readJsonSync(pathToElmJson)
);

// Remove the source directory pointing to the package's src/
elmJson['source-directories'] = elmJson['source-directories'].filter(
Expand Down

0 comments on commit bdaa693

Please sign in to comment.