mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Relocate source files to package root
This commit is contained in:
@@ -10,7 +10,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user