mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Revert "builtin.ts: treat EXAMPLES_PATH as relative to app root." (#6246)
Reverts compiler-explorer/compiler-explorer#6237. This PR broke the recommended `make run` workflow. When using `make run`, the dist folder does not contain the needed resources.
This commit is contained in:
@@ -26,12 +26,11 @@ import fs from 'fs';
|
||||
import fsp from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
||||
import * as utils from '../utils.js';
|
||||
import * as props from '../properties.js';
|
||||
|
||||
import type {Source, SourceEntry} from './index.js';
|
||||
|
||||
const EXAMPLES_PATH = utils.resolvePathFromAppRoot(props.get('builtin', 'sourcePath', './examples/'));
|
||||
const EXAMPLES_PATH = props.get('builtin', 'sourcePath', './examples/');
|
||||
const NAME_SUBSTUTION_PATTERN = new RegExp('_', 'g');
|
||||
const ALL_EXAMPLES: SourceEntry[] = fs.readdirSync(EXAMPLES_PATH).flatMap(folder => {
|
||||
// Recurse through the language folders
|
||||
|
||||
Reference in New Issue
Block a user