mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
14 lines
296 B
JavaScript
14 lines
296 B
JavaScript
const path = require('path');
|
|
const pkg = require('./package.json');
|
|
|
|
const alias = Object.keys(pkg.dependencies).concat([
|
|
'object-assign',
|
|
'whatwg-fetch',
|
|
]);
|
|
|
|
module.exports = alias.reduce((acc, curr) => {
|
|
acc[curr] = path.resolve(__dirname, 'node_modules', curr);
|
|
|
|
return acc;
|
|
}, {});
|