Skip to content

Commit

Permalink
🐛 Import join in path, add template dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 19, 2020
1 parent c53202a commit ded0d8b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const dateFormat = require("dateformat");
const readFileAsync = require("fs").promises.readFile;
const { join } = require("path");

const template = readFileAsync(path.join(TEMPLATE_DIR, "default-template.hbs"));
const commitTemplate = readFileAsync(
path.join(TEMPLATE_DIR, "commit-template.hbs")
);
const TEMPLATE_DIR =
"node_modules/semantic-release-gitmoji/lib/assets/templates";
const template = readFileAsync(join(TEMPLATE_DIR, "default-template.hbs"));
const commitTemplate = readFileAsync(join(TEMPLATE_DIR, "commit-template.hbs"));

module.exports = {
plugins: [
Expand Down

0 comments on commit ded0d8b

Please sign in to comment.