mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 15:25:25 +08:00
Relocate source files to package root
This commit is contained in:
parent
14825b58a7
commit
3c98e8e863
@ -10,12 +10,12 @@ module.exports = function(options = {}) {
|
|||||||
const entries = {};
|
const entries = {};
|
||||||
|
|
||||||
for (const app of ['forum', 'admin']) {
|
for (const app of ['forum', 'admin']) {
|
||||||
const file = path.resolve(process.cwd(), 'js/' + app + '/index.js');
|
const file = path.resolve(process.cwd(), app+'.js');
|
||||||
if (fs.existsSync(file)) {
|
if (fs.existsSync(file)) {
|
||||||
entries[app] = file;
|
entries[app] = file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
}(),
|
}(),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user