We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfa9902 + 91135f2 commit f05ab42Copy full SHA for f05ab42
accessibility/plugin/index.js
@@ -1,4 +1,5 @@
1
const fs = require("fs");
2
+const path = require('path');
3
const Accessibility = (on, config) => {
4
5
on('task', {
@@ -7,6 +8,10 @@ const Accessibility = (on, config) => {
7
8
return null
9
},
10
initializeFile(filePath) {
11
+ const dir = path.dirname(filePath);
12
+ if (!fs.existsSync(dir)) {
13
+ fs.mkdirSync(dir, { recursive: true });
14
+ }
15
if (!fs.existsSync(filePath)) {
16
fs.writeFileSync(filePath, '[]');
17
}
0 commit comments