refactor: derp

This commit is contained in:
cha0s 2024-01-27 03:51:03 -06:00
parent 262a988c5b
commit da18a35446

View File

@ -1,20 +0,0 @@
const {dirname, join} = require('path');
exports.hooks = {
'@flecks/build.config': async (target, config, env, argv, flecks) => {
await Promise.all(
[
'remark-mdx',
'remark-parse',
'unified',
'unist-util-visit-parents',
].map(async (path) => {
config.resolve.alias[path] = join(
dirname(await flecks.resolver.resolve('@avocado/dialog/package.json')),
'node_modules',
path,
);
}),
);
},
};