Skip to content

Commit

Permalink
chore: check if design-system directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Sep 29, 2023
1 parent e912bef commit aa42478
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ mix.setPublicPath('assets/dist')
const packageJson = require('./node_modules/@givewp/design-system-foundation/package.json');
const version = packageJson.version;

if (!fs.existsSync(__dirname + '/assets/dist/css/design-system')) {
fs.mkdirSync(__dirname + '/assets/dist/css/design-system');
}

fs.writeFileSync(__dirname + '/assets/dist/css/design-system/version', version);
})

Expand Down

0 comments on commit aa42478

Please sign in to comment.