Skip to content

Commit

Permalink
LOLCODE workaround (not a final solution, just testing CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Aug 24, 2021
1 parent 0ecff24 commit 70da86c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/compat/src/v1-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,14 @@ export default class V1Addon {
private buildAddonStyles(built: IntermediateBuild) {
let addonStylesTree = this.addonStylesTree();
if (addonStylesTree) {
let destDir = (addonStylesTree as any).destDir;

if (typeof destDir === 'string' &&
destDir.endsWith('__COMPILED_STYLES__')) {
// TODO: remove the LOLWAT code
(addonStylesTree as any).destDir = '/';

}
let discoveredFiles: string[] = [];
let tree = new ObserveTree(addonStylesTree, outputPath => {
discoveredFiles = walkSync(outputPath, { globs: ['**/*.css'], directories: false });
Expand Down

0 comments on commit 70da86c

Please sign in to comment.