refactor: derp
This commit is contained in:
parent
262a988c5b
commit
da18a35446
|
@ -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,
|
||||
);
|
||||
}),
|
||||
);
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user