Skip to content

Commit

Permalink
Merge pull request #6 from pineapplemachine/fix-nye-issue
Browse files Browse the repository at this point in the history
Fix New Year's Eve issue related to Date.setUTCMonth
  • Loading branch information
pineapplemachine authored Dec 31, 2019
2 parents 8bea097 + decdf87 commit d07cb0a
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 1,677 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ typings/

# next.js build output
.next

dist/
10 changes: 8 additions & 2 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const fs = require("fs");
const UglifyJS = require("uglify-es");

const sourceDirectoryPath = __dirname + "/../src/";
const releasePath = __dirname + "/../dist/strtime.js";
const uglyPath = __dirname + "/../dist/strtime.min.js";
const distPath = __dirname + "/../dist/";
const releasePath = distPath + "strtime.js";
const uglyPath = distPath + "strtime.min.js";

const sourceOrder = [
"format-time.js",
Expand Down Expand Up @@ -53,6 +54,11 @@ for(let sourceFilePath of sourceOrder){
}
source += sourceFooter;

console.log("Ensuring dist/ directory is present.");
if(!fs.existsSync(distPath)) {
fs.mkdirSync(distPath);
}

console.log("Writing verbose source to dist/ directory.");
fs.writeFileSync(releasePath, source);

Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.1.2

Fourth release. 31 December 2019.

- Fix issue related to calling Date.setUTCMonth on the 31st day of the month.

# v1.1.1

Third release. 10 June 2018.
Expand Down
Loading

0 comments on commit d07cb0a

Please sign in to comment.