Skip to content

Commit 73e5e78

Browse files
committed
adjust paths
1 parent 4b69aa3 commit 73e5e78

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tools/scripts/generate-soba-json.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ const externalsMap = {
1919
OrbitControls: 'node_modules/three-stdlib/controls/OrbitControls.d.ts',
2020
};
2121

22-
const sobaRoot = 'libs/soba';
23-
24-
const controlsRoot = 'controls/src';
25-
const abstractionsRoot = 'abstractions/src';
26-
27-
const abstractions = ['billboard/billboard.ts', 'text/text.ts'].map((path) => join(sobaRoot, abstractionsRoot, path));
28-
const controls = ['orbit-controls/orbit-controls.ts'].map((path) => join(sobaRoot, controlsRoot, path));
22+
const entryPoints = {
23+
controls: ['orbit-controls'],
24+
abstractions: ['billboard', 'text'],
25+
};
2926

30-
const paths = [].concat(abstractions, controls);
27+
const paths = [];
28+
for (const [entryPoint, entryPointEntities] of Object.entries(entryPoints)) {
29+
for (const entity of entryPointEntities) {
30+
paths.push(join('libs/soba', entryPoint, 'src', entity, `${entity}.ts`));
31+
}
32+
}
3133

3234
const { metadataJson, webTypesJson, write } = createBareJsons('angular-three-soba', 'soba');
3335

0 commit comments

Comments
 (0)