Skip to content

Commit

Permalink
fix: fixed the throw error when the dist folder don't exist
Browse files Browse the repository at this point in the history
fix: fixed the throw error when the dist folder don't exist
  • Loading branch information
matteobertoldo authored Feb 14, 2023
2 parents e6c5c36 + 656eb11 commit 6f99e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ jobs:
node-version: 18.12.0 # from .nvmrc file
- run: npm i
- run: npm run parse
- run: npm run build
- run: npx semantic-release
2 changes: 1 addition & 1 deletion src/webpack-mjml-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ WebpackMjmlStore.prototype.readFile = function (file) {
try {
fs.readFile(file, 'utf8', function (err, data) {
if (err) {
throw err;
resolve(true);
}
resolve(data);
});
Expand Down

0 comments on commit 6f99e1c

Please sign in to comment.