Skip to content

Commit ded0d8b

Browse files
🐛 Import join in path, add template dir
1 parent c53202a commit ded0d8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.releaserc.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
const dateFormat = require("dateformat");
22
const readFileAsync = require("fs").promises.readFile;
3+
const { join } = require("path");
34

4-
const template = readFileAsync(path.join(TEMPLATE_DIR, "default-template.hbs"));
5-
const commitTemplate = readFileAsync(
6-
path.join(TEMPLATE_DIR, "commit-template.hbs")
7-
);
5+
const TEMPLATE_DIR =
6+
"node_modules/semantic-release-gitmoji/lib/assets/templates";
7+
const template = readFileAsync(join(TEMPLATE_DIR, "default-template.hbs"));
8+
const commitTemplate = readFileAsync(join(TEMPLATE_DIR, "commit-template.hbs"));
89

910
module.exports = {
1011
plugins: [

0 commit comments

Comments
 (0)