Skip to content

Commit

Permalink
Remove locale snapshots from the package
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Aug 31, 2020
1 parent c5db2d0 commit 76aaede
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This change log follows the format documented in [Keep a CHANGELOG].
[semantic versioning]: http://semver.org/
[keep a changelog]: http://keepachangelog.com/

## [2.16.1] - 2020-07-31

### Fixed

- Removed locale snapshots from the npm package making it lighter.

## [2.16.0] - 2020-08-27

Kudos to [@jvpelt](https://github.com/jvpelt), [@piotrl](https://github.com/piotrl), [@yotamofek](https://github.com/yotamofek), [@dwaxweiler](https://github.com/dwaxweiler), [@leedriscoll](https://github.com/leedriscoll) and [@bradevans](https://github.com/bradevans) for working on the release. Also thanks to [@PascalHonegger](https://github.com/PascalHonegger), [@pickfire](https://github.com/pickfire), [@TheJaredWilcurt](https://github.com/TheJaredWilcurt), [@SidKH](https://github.com/SidKH) and [@nfantone](https://github.com/nfantone) for improving the documentation.
Expand Down Expand Up @@ -669,7 +675,7 @@ If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https

eachDayOfInterval({
start: new Date(2014, 0, 10),
end: new Date(2014, 0, 20),
end: new Date(2014, 0, 20)
})

getOverlappingDaysInIntervals(
Expand All @@ -679,7 +685,7 @@ If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https

isWithinInterval(new Date(2014, 0, 3), {
start: new Date(2014, 0, 1),
end: new Date(2014, 0, 7),
end: new Date(2014, 0, 7)
})
```

Expand Down Expand Up @@ -911,10 +917,10 @@ If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https
const dates = [
new Date(2017, 0 /* Jan */, 1),
new Date(2017, 1 /* Feb */, 11),
new Date(2017, 6 /* Jul */, 2),
new Date(2017, 6 /* Jul */, 2)
]

const formattedDates = dates.map((date) => dateToString(addFiveYears(date)))
const formattedDates = dates.map(date => dateToString(addFiveYears(date)))
//=> ['1 januaro 2022', '11 februaro 2022', '2 julio 2022']
```

Expand Down
5 changes: 3 additions & 2 deletions scripts/build/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ rm -rf "$dir"
mkdir -p "$dir"

# Traspile CommonJS versions of files
env TARGET='commonjs' babel src --source-root src --out-dir "$dir" --ignore test.js,benchmark.js --copy-files --quiet
env TARGET='commonjs' babel src --source-root src --out-dir "$dir" --ignore test.js,benchmark.js,snapshot.md --copy-files --quiet

# Traspile ESM versions of files
env TARGET='esm' babel src --source-root src --out-dir "$dir/esm" --ignore test.js,benchmark.js,package.json --copy-files --quiet
env TARGET='esm' babel src --source-root src --out-dir "$dir/esm" --ignore test.js,benchmark.js,snapshot.md,package.json --copy-files --quiet

# Copy basic files
for pattern in CHANGELOG.md \
Expand All @@ -42,6 +42,7 @@ done
# Clean up dev code
find "$dir" -type f -name "test.js" -delete
find "$dir" -type f -name "benchmark.js" -delete
find "$dir" -type f -name "snapshot.md" -delete

# Clean up package.json pointing to the modules
find "$dir/esm" -type f -name "package.json" -delete
Expand Down

0 comments on commit 76aaede

Please sign in to comment.